IJwtServiceGenerateToken Method |
Generate the JWT token.
Namespace:
NetQuarry.Services
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax string GenerateToken(
Dictionary<string, string> jwtAttributes,
bool useIat = false,
bool useJti = false
)
Function GenerateToken (
jwtAttributes As Dictionary(Of String, String),
Optional useIat As Boolean = false,
Optional useJti As Boolean = false
) As String
Parameters
- jwtAttributes
- Type: System.Collections.GenericDictionaryString, String
A list of additional JWT claims. - useIat (Optional)
- Type: SystemBoolean
Specifies whether or not to use the JWT "iat" (Issued At) claim. - useJti (Optional)
- Type: SystemBoolean
Specifies whether or not to use the JWT "jti" (JWT ID) claim.
Return Value
Type:
StringThe JWT token.
See Also