This login method enables the user authentication via a single-use token. The login is performed by calling <JobRouter URL>/?token=<token> using the user name that was saved, when the token was created.
The active token can be found in the table JRLOGINTOKENS. JobRouter will delete the token after the successful login or after exceeding the validity time.
A new token can be created either by means of the JobRouter web services or direct database entry. Details on the first possibility can be found in the JobRouter web service manual (the methods getToken, createToken and validateToken). To create a new token directly you have to make a new entry in the JRLOGINTOKENS table.
Please note: It is also possible to log on to the REST API via a token if you have set the Token Login checkbox under Configuration > Security > Authentication.
Column name |
Description |
|---|---|
token |
The token. Max. length is 50 characters. |
user name |
A user name existing in JobRouter. |
valid_until |
Token validity time. |
create_date |
Creation date of the token. |
created_by |
Creator of the token. |
Attention: Make sure that the tokens you create are unique and cannot be guessed. Here we recommend a GUID. In addition, we recommend a token with a maximum validity of one hour. Tokens with a longer validity period can endanger the security of the system.