|
|
@ -681,8 +681,8 @@ namespace OpenIddict.Server |
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Only populate code_challenge_methods_supported if both the authorization and token endpoints are enabled.
|
|
|
// Only populate code_challenge_methods_supported if the code flow was enabled.
|
|
|
if (context.AuthorizationEndpoint != null && context.TokenEndpoint != null) |
|
|
if (context.GrantTypes.Contains(GrantTypes.AuthorizationCode)) |
|
|
{ |
|
|
{ |
|
|
// Note: supporting S256 is mandatory for authorization servers that implement PKCE.
|
|
|
// Note: supporting S256 is mandatory for authorization servers that implement PKCE.
|
|
|
// See https://tools.ietf.org/html/rfc7636#section-4.2 for more information.
|
|
|
// See https://tools.ietf.org/html/rfc7636#section-4.2 for more information.
|
|
|
|