Skip to content

Commit

Permalink
Added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Klaus committed Mar 24, 2024
1 parent 1f5a47f commit f149f87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OpenIdDict.Server/Authorisation/OpenIdDictTokenResolving.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ public ValidateCodeReferenceTokenHandler(IMemoryCache memoryCache)
= OpenIddictServerHandlerDescriptor.CreateBuilder<OpenIddictServerEvents.ValidateTokenContext>()
.AddFilter<RequireDegradedModeEnabled>()
.UseScopedHandler<ValidateCodeReferenceTokenHandler>()
/*
* NOTE that the order number below might need to be changed in future OpenIddict versions
* The auth code must be resolved cache before `OpenIddict.Server.OpenIddictServerHandlers.ValidateAuthorizationCode`
*/
.SetOrder(OpenIddictServerHandlers.Protection.ResolveTokenValidationParameters.Descriptor.Order + 990)
.SetType(OpenIddictServerHandlerType.BuiltIn)
.Build();
Expand Down

0 comments on commit f149f87

Please sign in to comment.