Class JwtManager
public class JwtManager : IJwtManager
- Inheritance
-
objectJwtManager
- Implements
Methods
GenerateToken(Alias, ClaimsIdentity, string, string, string, int)
public string GenerateToken(Alias alias, ClaimsIdentity identity, string secret, string issuer, string audience, int lifetime)
Parameters
alias
Aliasidentity
ClaimsIdentitysecret
stringissuer
stringaudience
stringlifetime
int
Returns
- string
ValidateToken(string, string, string, string)
public ClaimsIdentity ValidateToken(string token, string secret, string issuer, string audience)
Parameters
token
stringsecret
stringissuer
stringaudience
string
Returns
- ClaimsIdentity