|
|
@ -81,7 +81,7 @@ namespace OpenIddict.Server.AspNetCore |
|
|
public static OpenIddictServerHandlerDescriptor Descriptor { get; } |
|
|
public static OpenIddictServerHandlerDescriptor Descriptor { get; } |
|
|
= OpenIddictServerHandlerDescriptor.CreateBuilder<ExtractAuthorizationRequestContext>() |
|
|
= OpenIddictServerHandlerDescriptor.CreateBuilder<ExtractAuthorizationRequestContext>() |
|
|
.AddFilter<RequireHttpRequest>() |
|
|
.AddFilter<RequireHttpRequest>() |
|
|
.AddFilter<RequireAuthorizationEndpointCachingEnabled>() |
|
|
.AddFilter<RequireAuthorizationRequestCachingEnabled>() |
|
|
.UseSingletonHandler<RestoreCachedRequestParameters>() |
|
|
.UseSingletonHandler<RestoreCachedRequestParameters>() |
|
|
.SetOrder(ExtractGetOrPostRequest<ExtractAuthorizationRequestContext>.Descriptor.Order + 1_000) |
|
|
.SetOrder(ExtractGetOrPostRequest<ExtractAuthorizationRequestContext>.Descriptor.Order + 1_000) |
|
|
.SetType(OpenIddictServerHandlerType.BuiltIn) |
|
|
.SetType(OpenIddictServerHandlerType.BuiltIn) |
|
|
@ -182,7 +182,7 @@ namespace OpenIddict.Server.AspNetCore |
|
|
public static OpenIddictServerHandlerDescriptor Descriptor { get; } |
|
|
public static OpenIddictServerHandlerDescriptor Descriptor { get; } |
|
|
= OpenIddictServerHandlerDescriptor.CreateBuilder<ExtractAuthorizationRequestContext>() |
|
|
= OpenIddictServerHandlerDescriptor.CreateBuilder<ExtractAuthorizationRequestContext>() |
|
|
.AddFilter<RequireHttpRequest>() |
|
|
.AddFilter<RequireHttpRequest>() |
|
|
.AddFilter<RequireAuthorizationEndpointCachingEnabled>() |
|
|
.AddFilter<RequireAuthorizationRequestCachingEnabled>() |
|
|
.UseSingletonHandler<CacheRequestParameters>() |
|
|
.UseSingletonHandler<CacheRequestParameters>() |
|
|
.SetOrder(RestoreCachedRequestParameters.Descriptor.Order + 1_000) |
|
|
.SetOrder(RestoreCachedRequestParameters.Descriptor.Order + 1_000) |
|
|
.SetType(OpenIddictServerHandlerType.BuiltIn) |
|
|
.SetType(OpenIddictServerHandlerType.BuiltIn) |
|
|
@ -252,7 +252,7 @@ namespace OpenIddict.Server.AspNetCore |
|
|
// Note: the cache key is always prefixed with a specific marker
|
|
|
// Note: the cache key is always prefixed with a specific marker
|
|
|
// to avoid collisions with the other types of cached payloads.
|
|
|
// to avoid collisions with the other types of cached payloads.
|
|
|
await _cache.SetStringAsync(Cache.AuthorizationRequest + context.Request.RequestId, |
|
|
await _cache.SetStringAsync(Cache.AuthorizationRequest + context.Request.RequestId, |
|
|
token, _options.CurrentValue.AuthorizationEndpointCachingPolicy); |
|
|
token, _options.CurrentValue.AuthorizationRequestCachingPolicy); |
|
|
|
|
|
|
|
|
// Create a new GET authorization request containing only the request_id parameter.
|
|
|
// Create a new GET authorization request containing only the request_id parameter.
|
|
|
var address = QueryHelpers.AddQueryString( |
|
|
var address = QueryHelpers.AddQueryString( |
|
|
@ -286,7 +286,7 @@ namespace OpenIddict.Server.AspNetCore |
|
|
public static OpenIddictServerHandlerDescriptor Descriptor { get; } |
|
|
public static OpenIddictServerHandlerDescriptor Descriptor { get; } |
|
|
= OpenIddictServerHandlerDescriptor.CreateBuilder<ApplyAuthorizationResponseContext>() |
|
|
= OpenIddictServerHandlerDescriptor.CreateBuilder<ApplyAuthorizationResponseContext>() |
|
|
.AddFilter<RequireHttpRequest>() |
|
|
.AddFilter<RequireHttpRequest>() |
|
|
.AddFilter<RequireAuthorizationEndpointCachingEnabled>() |
|
|
.AddFilter<RequireAuthorizationRequestCachingEnabled>() |
|
|
.UseSingletonHandler<RemoveCachedRequest>() |
|
|
.UseSingletonHandler<RemoveCachedRequest>() |
|
|
.SetOrder(int.MinValue + 100_000) |
|
|
.SetOrder(int.MinValue + 100_000) |
|
|
.SetType(OpenIddictServerHandlerType.BuiltIn) |
|
|
.SetType(OpenIddictServerHandlerType.BuiltIn) |
|
|
|