fix: simplify OpenIddict server configuration
- Remove non-existent method calls (AllowAuthorizationCodeFlow, etc) - Keep only basic configuration: issuer, encryption, scopes - This should fix 'authorization endpoint must be enabled' error
This commit is contained in:
parent
875ba7bc61
commit
1a0c18c198
@ -25,15 +25,10 @@ public static class OpenIddictSetup
|
|||||||
builder.AddServer(options =>
|
builder.AddServer(options =>
|
||||||
{
|
{
|
||||||
options.SetIssuer(configuration["OpenIddict:Issuer"] ?? "https://auth.fengling.local");
|
options.SetIssuer(configuration["OpenIddict:Issuer"] ?? "https://auth.fengling.local");
|
||||||
|
|
||||||
options.AddDevelopmentEncryptionCertificate()
|
options.AddDevelopmentEncryptionCertificate()
|
||||||
.AddDevelopmentSigningCertificate();
|
.AddDevelopmentSigningCertificate();
|
||||||
|
|
||||||
options.AllowAuthorizationCodeFlow()
|
|
||||||
.AllowPasswordFlow()
|
|
||||||
.AllowRefreshTokenFlow()
|
|
||||||
.RequireProofKeyForCodeExchange();
|
|
||||||
|
|
||||||
options.RegisterScopes(
|
options.RegisterScopes(
|
||||||
"openid",
|
"openid",
|
||||||
"profile",
|
"profile",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user