#102: Moving Models and constants to their own library

This commit is contained in:
kdeng00
2024-07-27 22:12:32 -04:00
parent 8900afdfd2
commit 8fdc3cfe40
50 changed files with 25 additions and 0 deletions
@@ -0,0 +1,18 @@
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));
}
}