Skip to content

Instantly share code, notes, and snippets.

@nmchenry01
Created November 28, 2021 15:31
Show Gist options
  • Save nmchenry01/e6bdf39af49b380c2396170cd8d295ab to your computer and use it in GitHub Desktop.
Save nmchenry01/e6bdf39af49b380c2396170cd8d295ab to your computer and use it in GitHub Desktop.
public class HasScopeRequirement : IAuthorizationRequirement
{
public string Issuer { get; }
public string Scope { get; }
public HasScopeRequirement(string scope, string issuer)
{
Scope = scope ?? throw new ArgumentNullException(nameof(scope));
Issuer = issuer ?? throw new ArgumentNullException(nameof(issuer));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment