Table of Contents

Interface IJwtManager

Namespace
Oqtane.Security
Assembly
Oqtane.Server.dll
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 Alias
identity ClaimsIdentity
secret string
issuer string
audience string
lifetime int

Returns

string

ValidateToken(string, string, string, string)

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

Parameters

token string
secret string
issuer string
audience string

Returns

ClaimsIdentity