Class JWTBearer
static class for easy creation of jwt bearer tokens
Assembly: FastEndpoints.Security.dll
Syntax
public static class JWTBearer
Methods
CreateToken(string, TokenSigningStyle, string?, string?, DateTime?, IEnumerable<string>?, IEnumerable<string>?, params (string claimType, string claimValue)[])
Declaration
[Obsolete("Use JwtBearer.CreateToken() method.")]
public static string CreateToken(string signingKey, TokenSigningStyle signingStyle, string? issuer = null, string? audience = null, DateTime? expireAt = null, IEnumerable<string>? permissions = null, IEnumerable<string>? roles = null, params (string claimType, string claimValue)[] claims)
Parameters
Returns
CreateToken(string, Action<UserPrivileges>, string?, string?, DateTime?, TokenSigningStyle)
Declaration
[Obsolete("Use JwtBearer.CreateToken() method.")]
public static string CreateToken(string signingKey, Action<UserPrivileges> privileges, string? issuer = null, string? audience = null, DateTime? expireAt = null, TokenSigningStyle signingStyle = TokenSigningStyle.Symmetric)
Parameters
Returns
CreateToken(string, DateTime?, IEnumerable<string>?, IEnumerable<string>?, IEnumerable<Claim>?, string?, string?, TokenSigningStyle)
Declaration
[Obsolete("Use JwtBearer.CreateToken() method.")]
public static string CreateToken(string signingKey, DateTime? expireAt = null, IEnumerable<string>? permissions = null, IEnumerable<string>? roles = null, IEnumerable<Claim>? claims = null, string? issuer = null, string? audience = null, TokenSigningStyle signingStyle = TokenSigningStyle.Symmetric)
Parameters
Returns
CreateToken(string, DateTime?, IEnumerable<string>?, IEnumerable<string>?, params (string claimType, string claimValue)[])
Declaration
[Obsolete("Use JwtBearer.CreateToken() method.")]
public static string CreateToken(string signingKey, DateTime? expireAt = null, IEnumerable<string>? permissions = null, IEnumerable<string>? roles = null, params (string claimType, string claimValue)[] claims)
Parameters
Returns
CreateToken(string, string?, string?, DateTime?, IEnumerable<string>?, IEnumerable<string>?, params (string claimType, string claimValue)[])
Declaration
[Obsolete("Use JwtBearer.CreateToken() method.")]
public static string CreateToken(string signingKey, string? issuer, string? audience, DateTime? expireAt = null, IEnumerable<string>? permissions = null, IEnumerable<string>? roles = null, params (string claimType, string claimValue)[] claims)
Parameters
Returns