🐛 Fix discord oidc since it has no discovery endpoint

This commit is contained in:
2025-06-19 01:56:16 +08:00
parent ca2d37eb39
commit e40514e440
2 changed files with 13 additions and 2 deletions

View File

@ -65,7 +65,7 @@ public abstract class OidcService(
/// <summary>
/// Retrieves the OpenID Connect discovery document
/// </summary>
protected async Task<OidcDiscoveryDocument?> GetDiscoveryDocumentAsync()
protected virtual async Task<OidcDiscoveryDocument?> GetDiscoveryDocumentAsync()
{
// Construct a cache key unique to the current provider:
var cacheKey = $"oidc-discovery:{ProviderName}";