getAuthenticatedUserTicket
First introduced in version: 3.00.3
Syntax
getAuthenticatedUserTicket([expire])
Details
A currently logged in user can use this function to generate a dynamic ticket and set
the expiration time of the ticket. The user can then use the generated ticket for
passwordless login via the authenticateByTicket(ticket)
function. The ticket becomes invalid after the expiration time; in addition, the ticket
also automatically becomes invalid if the server restarts or the leader switches.
Parameters
expire is a DATETIME scalar indicating the expiration time of the user ticket to be generated.
Returns
A STRING scalar.
Examples
login("user1", "123456")
getAuthenticatedUserTicket(2030.12.31T12:00:00)
/ output:
VQEpuZYCbwhPDj6qvuyW+zDwdnQI3HiUhfJOpyUW/J5X5XZmponkmE6n5COI1xUP
xCVr29VHsNYOV00tGZrFkGKPOJhjWJtSt85ok5s8EVYXwZCgdrYjdharJLBk/e04
u1oBC0/6nD4WdDM68pCbsZgUqDe94+czqG0M21Sy8PA=
/
