public DenyAnonymousAuthorizationRequirementExtended( IValidOptionsMonitor <SecurityOptions> options, IValidOptionsMonitor <SuperUserOptions> superUser) { _options = options; _superUser = superUser; }
public ClaimsAuthorizationRequirementExtended( IValidOptionsMonitor <SecurityOptions> options, IValidOptionsMonitor <SuperUserOptions> superUser, string claimType, params string[] allowedValues) : this(options, superUser, claimType, allowedValues.AsEnumerable()) { }
public RolesAuthorizationRequirementExtended( IValidOptionsMonitor <SecurityOptions> options, IValidOptionsMonitor <SuperUserOptions> superUser, IEnumerable <string> allowedRoles) { _options = options; _superUser = superUser; AllowedRoles = allowedRoles ?? throw new ArgumentNullException(nameof(allowedRoles)); }
public ClaimsAuthorizationRequirementExtended( IValidOptionsMonitor <SecurityOptions> options, IValidOptionsMonitor <SuperUserOptions> superUser, string claimType, IEnumerable <string> allowedValues) { var values = allowedValues.ToArray(); _options = options; _superUser = superUser; ClaimType = claimType; AllowedValues = values; }