protected override void ValidateLifetime(DateTime?notBefore, DateTime?expires, JwtSecurityToken jwt, TokenValidationParameters validationParameters) { DerivedJwtSecurityToken derivedJwt = jwt as DerivedJwtSecurityToken; Assert.NotNull(derivedJwt); ValidateLifetimeCalled = true; base.ValidateLifetime(notBefore, expires, jwt, validationParameters); }
protected override string ValidateIssuer(string issuer, JwtSecurityToken jwt, TokenValidationParameters validationParameters) { DerivedJwtSecurityToken derivedJwt = jwt as DerivedJwtSecurityToken; Assert.NotNull(derivedJwt); ValidateIssuerCalled = true; return(base.ValidateIssuer(issuer, jwt, validationParameters)); }
protected override void ValidateIssuerSecurityKey(SecurityKey securityKey, JwtSecurityToken securityToken, TokenValidationParameters validationParameters) { DerivedJwtSecurityToken derivedJwt = securityToken as DerivedJwtSecurityToken; Assert.NotNull(derivedJwt); ValidateIssuerSigningKeyCalled = true; base.ValidateIssuerSecurityKey(securityKey, securityToken, validationParameters); }
protected override void ValidateAudience(IEnumerable <string> audiences, JwtSecurityToken jwt, TokenValidationParameters validationParameters) { DerivedJwtSecurityToken derivedJwt = jwt as DerivedJwtSecurityToken; Assert.NotNull(derivedJwt); ValidateAudienceCalled = true; base.ValidateAudience(audiences, jwt, validationParameters); }
protected override JwtSecurityToken ValidateSignature(string securityToken, TokenValidationParameters validationParameters) { Jwt = base.ValidateSignature(securityToken, validationParameters); DerivedJwtSecurityToken derivedJwt = Jwt as DerivedJwtSecurityToken; Assert.NotNull(derivedJwt); ValidateSignatureCalled = true; return(Jwt); }