Browse Source

Use the correct exception message when the degraded mode is enabled without a custom PAR validation event handler being added

pull/2442/head
JarieTimmer 2 weeks ago
committed by GitHub
parent
commit
58b6dfb720
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/OpenIddict.Server/OpenIddictServerConfiguration.cs

2
src/OpenIddict.Server/OpenIddictServerConfiguration.cs

@ -406,7 +406,7 @@ public sealed class OpenIddictServerConfiguration : IPostConfigureOptions<OpenId
descriptor.Type is OpenIddictServerHandlerType.Custom && descriptor.Type is OpenIddictServerHandlerType.Custom &&
descriptor.FilterTypes.All(type => !typeof(RequireDegradedModeDisabled).IsAssignableFrom(type)))) descriptor.FilterTypes.All(type => !typeof(RequireDegradedModeDisabled).IsAssignableFrom(type))))
{ {
throw new InvalidOperationException(SR.GetResourceString(SR.ID0467)); throw new InvalidOperationException(SR.GetResourceString(SR.ID0466));
} }
if (options.RevocationEndpointUris.Count is not 0 && !options.Handlers.Exists(static descriptor => if (options.RevocationEndpointUris.Count is not 0 && !options.Handlers.Exists(static descriptor =>

Loading…
Cancel
Save