diff --git a/Configuration/OpenIddictSetup.cs b/Configuration/OpenIddictSetup.cs index 2ff0ee3..7f6f5a2 100644 --- a/Configuration/OpenIddictSetup.cs +++ b/Configuration/OpenIddictSetup.cs @@ -25,15 +25,10 @@ public static class OpenIddictSetup builder.AddServer(options => { options.SetIssuer(configuration["OpenIddict:Issuer"] ?? "https://auth.fengling.local"); - + options.AddDevelopmentEncryptionCertificate() .AddDevelopmentSigningCertificate(); - - options.AllowAuthorizationCodeFlow() - .AllowPasswordFlow() - .AllowRefreshTokenFlow() - .RequireProofKeyForCodeExchange(); - + options.RegisterScopes( "openid", "profile",