IAuthApiClientGetJwtTokenAsync Method (String, String) |
Gets a JSON Web Token generated by the ArangoDB server.
Namespace:
ArangoDBNetStandard.AuthApi
Assembly:
ArangoDBNetStandard (in ArangoDBNetStandard.dll) Version: 1.1.0
Syntax Task<JwtTokenResponse> GetJwtTokenAsync(
string username,
string password
)
Function GetJwtTokenAsync (
username As String,
password As String
) As Task(Of JwtTokenResponse)
Task<JwtTokenResponse^>^ GetJwtTokenAsync(
String^ username,
String^ password
)
abstract GetJwtTokenAsync :
username : string *
password : string -> Task<JwtTokenResponse>
Parameters
- username
- Type: SystemString
The username of the user for whom to generate a JWT token. - password
- Type: SystemString
The user's password.
Return Value
Type:
TaskJwtTokenResponseObject containing the encoded JWT token value.
See Also