Share via


JwtSecurityTokenHandler.ValidateIssuer Method

Definition

Determines if the issuer found in a JwtSecurityToken is valid.

protected virtual string ValidateIssuer (string issuer, System.IdentityModel.Tokens.Jwt.JwtSecurityToken jwtToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ValidateIssuer : string * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> string
override this.ValidateIssuer : string * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> string
Protected Overridable Function ValidateIssuer (issuer As String, jwtToken As JwtSecurityToken, validationParameters As TokenValidationParameters) As String

Parameters

issuer
String

The issuer to validate

jwtToken
JwtSecurityToken

The JwtSecurityToken that is being validated.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Returns

The issuer to use when creating the Claim(s) in the ClaimsIdentity.

Remarks

ValidateIssuer(String, SecurityToken, TokenValidationParameters) for additional details.

Applies to