Skip to content

Commit

Permalink
Update src/Workleap.AspNetCore.Authentication.ClientCredentialsGrant/…
Browse files Browse the repository at this point in the history
…RequireClientCredentialsAttribute.cs

Co-authored-by: Anthony Simmon <[email protected]>
  • Loading branch information
PrincessMadMath and asimmon authored Jun 20, 2024
1 parent fc10110 commit 1c35ee7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public sealed class RequireClientCredentialsAttribute : AuthorizeAttribute
/// </example>
[SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments", Justification = "The arguments are transformed.")]
public RequireClientCredentialsAttribute(ClientCredentialsScope scope)
: this(EnumScopeNameMapping.GetValueOrDefault(scope) ?? throw new ArgumentException($"{scope} is not an valid scope value"))
: this(EnumScopeNameMapping.GetValueOrDefault(scope) ?? throw new ArgumentOutOfRangeException(nameof(scope), scope, $"'{scope}' is not an valid scope value"))
{
}

Expand Down

0 comments on commit 1c35ee7

Please sign in to comment.