a89580ac70
* #102: Moving Models and constants to their own library * #102: Updated sln file * #102: Updated README to include step install migration tool
19 lines
446 B
C#
19 lines
446 B
C#
using System;
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace Icarus.Authorization;
|
|
|
|
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));
|
|
}
|
|
}
|