Method CarriesEveryScope
- Namespace
- MailFathom.Infrastructure.Security.OAuth
- Assembly
- MailFathom.Infrastructure.dll
CarriesEveryScope(ClaimsPrincipal, IReadOnlyCollection<string>)
Reports whether an authenticated principal carries every scope a request requires.
public static bool CarriesEveryScope(ClaimsPrincipal principal, IReadOnlyCollection<string> requiredScopes)
Parameters
principalClaimsPrincipalThe principal a validated credential produced.
requiredScopesIReadOnlyCollection<string>The scopes the deployment requires, empty when any valid token suffices.
Returns
Exceptions
- ArgumentNullException
Thrown when
principalorrequiredScopesis null.