Authorization functioning

This commit is contained in:
kdeng00
2021-12-24 16:45:40 -05:00
parent 471fa71789
commit f8d9c8e4a7
8 changed files with 44 additions and 64 deletions
+6 -6
View File
@@ -7,13 +7,13 @@ namespace Icarus.Authorization
public class HasScopeRequirement : IAuthorizationRequirement
{
public string Issuer { get; }
public string Scope { 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));
}
public HasScopeRequirement(string scope, string issuer)
{
Scope = scope ?? throw new ArgumentNullException(nameof(scope));
Issuer = issuer ?? throw new ArgumentNullException(nameof(issuer));
}
}
}