Generate one-way tokens for the user sign-in
The method getToken generates a random single-use token, which allows the entered user to sign into JobRouter.
Per request the validity of the token can be set to a period between 0 and 3600 seconds. Per default the validation period of the token is 60 seconds.
The return value consists of a string, the token. During the validity period, this token can then be used once by the user to sign into JobRouter.
In case the requested user does not exist or the entered validity period is invalid, an error message will be returned.
Method reference
Parameters |
Data type |
Description |
|---|---|---|
userName |
Username |
|
lifetime |
Validity period of the token in seconds |
Return value: string; generated login token for the entered user