System.Security.Claims.ClaimsPrincipalExtensions.GetIssuerValue C# (CSharp) Method

GetIssuerValue() public static method

public static GetIssuerValue ( this principal, bool throwIfNotFound = true ) : string
principal this
throwIfNotFound bool
return string
        public static string GetIssuerValue(this ClaimsPrincipal principal, bool throwIfNotFound = true)
        {
            return principal.FindFirstValue(OpenIdConnectClaimTypes.IssuerValue, throwIfNotFound);
        }