Add afdian as OIDC provider

This commit is contained in:
2025-06-22 02:22:19 +08:00
parent c6450757be
commit 6b0e5f919d
4 changed files with 119 additions and 1 deletions

View File

@ -120,6 +120,7 @@ public class OidcController(
"microsoft" => serviceProvider.GetRequiredService<MicrosoftOidcService>(),
"discord" => serviceProvider.GetRequiredService<DiscordOidcService>(),
"github" => serviceProvider.GetRequiredService<GitHubOidcService>(),
"afdian" => serviceProvider.GetRequiredService<AfdianOidcService>(),
_ => throw new ArgumentException($"Unsupported provider: {provider}")
};
}