Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 427 Bytes

HasScopeRequirement.md

File metadata and controls

18 lines (16 loc) · 427 Bytes
name language
HasScopeRequirement.cs
csharp
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));
    }
}