Browse Source

Update OpenIddictClientWebIntegrationHandlers.cs

pull/2403/head
Kévin Chalet 4 weeks ago
parent
commit
4982250023
  1. 2
      src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs

2
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs

@ -626,7 +626,7 @@ public static partial class OpenIddictClientWebIntegrationHandlers
ArgumentNullException.ThrowIfNull(context);
// osu! requires at least one scope to be set for client credentials grant, as tokens without
// scopes are not valid. If no scope is explicitly specified, use the default value `public`.
// scopes are not valid. If no scope is explicitly specified, use the default value "public".
if (context.GrantType is GrantTypes.ClientCredentials &&
context.Registration.ProviderType is ProviderTypes.Osu &&
context.Scopes.Count is 0)

Loading…
Cancel
Save