Interface IJwtManager
public interface IJwtManager
Methods
GenerateToken(Alias, ClaimsIdentity, string, string, string, int)
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)
ClaimsIdentity ValidateToken(string token, string secret, string issuer, string audience)
Parameters
token
stringsecret
stringissuer
stringaudience
string
Returns
- ClaimsIdentity