|
|
|
@ -58,7 +58,19 @@ public static partial class OpenIddictClientAspNetCoreHandlers |
|
|
|
*/ |
|
|
|
ResolveHostSignOutProperties.Descriptor, |
|
|
|
ValidateTransportSecurityRequirementForSignOut.Descriptor, |
|
|
|
GenerateLogoutCorrelationCookie.Descriptor) |
|
|
|
GenerateLogoutCorrelationCookie.Descriptor, |
|
|
|
|
|
|
|
/* |
|
|
|
* Error processing: |
|
|
|
*/ |
|
|
|
// Note: these handler registrations are only used as a last resort for errors that are not
|
|
|
|
// returned by an OpenIddict endpoint (e.g errors returned during a failed challenge demand).
|
|
|
|
//
|
|
|
|
// Errors returned by an OpenIddict endpoint are handled via the Apply*Response events.
|
|
|
|
AttachHttpResponseCode<ProcessErrorContext>.Descriptor, |
|
|
|
AttachCacheControlHeader<ProcessErrorContext>.Descriptor, |
|
|
|
ProcessStatusCodePagesErrorResponse<ProcessErrorContext>.Descriptor, |
|
|
|
ProcessLocalErrorResponse<ProcessErrorContext>.Descriptor) |
|
|
|
.AddRange(Authentication.DefaultHandlers) |
|
|
|
.AddRange(Session.DefaultHandlers); |
|
|
|
|
|
|
|
@ -1035,7 +1047,7 @@ public static partial class OpenIddictClientAspNetCoreHandlers |
|
|
|
= OpenIddictClientHandlerDescriptor.CreateBuilder<TContext>() |
|
|
|
.AddFilter<RequireHttpRequest>() |
|
|
|
.UseSingletonHandler<AttachHttpResponseCode<TContext>>() |
|
|
|
.SetOrder(100_000) |
|
|
|
.SetOrder(int.MaxValue - 100_000) |
|
|
|
.SetType(OpenIddictClientHandlerType.BuiltIn) |
|
|
|
.Build(); |
|
|
|
|
|
|
|
@ -1122,7 +1134,7 @@ public static partial class OpenIddictClientAspNetCoreHandlers |
|
|
|
.AddFilter<RequireErrorPassthroughEnabled>() |
|
|
|
.AddFilter<TFilter>() |
|
|
|
.UseSingletonHandler<ProcessPassthroughErrorResponse<TContext, TFilter>>() |
|
|
|
.SetOrder(100_000) |
|
|
|
.SetOrder(AttachCacheControlHeader<TContext>.Descriptor.Order + 1_000) |
|
|
|
.SetType(OpenIddictClientHandlerType.BuiltIn) |
|
|
|
.Build(); |
|
|
|
|
|
|
|
|