Table of Contents

Class JwtManager

Namespace
Oqtane.Security
Assembly
Oqtane.Server.dll
public class JwtManager : IJwtManager
Inheritance
object
JwtManager
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 Alias
identity ClaimsIdentity
secret string
issuer string
audience string
lifetime int

Returns

string

ValidateToken(string, string, string, string)

public ClaimsIdentity ValidateToken(string token, string secret, string issuer, string audience)

Parameters

token string
secret string
issuer string
audience string

Returns

ClaimsIdentity