|
|
|
@ -118,9 +118,8 @@ namespace OpenIddict |
|
|
|
var logger = context.HttpContext.RequestServices.GetRequiredService<ILogger<OpenIddictProvider<TApplication, TAuthorization, TScope, TToken>>>(); |
|
|
|
|
|
|
|
// Note: the OpenID Connect server middleware supports authorization code, implicit, hybrid,
|
|
|
|
// none and custom flows but OpenIddict uses a stricter policy rejecting unknown flows.
|
|
|
|
if (!context.Request.IsAuthorizationCodeFlow() && !context.Request.IsHybridFlow() && |
|
|
|
!context.Request.IsImplicitFlow() && !context.Request.IsNoneFlow()) |
|
|
|
// none and custom flows but OpenIddict uses a stricter policy rejecting none and custum flows.
|
|
|
|
if (!context.Request.IsAuthorizationCodeFlow() && !context.Request.IsHybridFlow() && !context.Request.IsImplicitFlow()) |
|
|
|
{ |
|
|
|
logger.LogError("The authorization request was rejected because the '{ResponseType}' " + |
|
|
|
"response type is not supported.", context.Request.ResponseType); |
|
|
|
|