You can give a user temporary access to the platform with a key. For example, you may need this to provide access to the technical support staff. To generate a key:
- Create a user in VMmanager for temporary access.
- Connect to the server with VMmanager via SSH with superuser permissions.
-
If you use the current version of the authorization service (Auth v4), enter the command:
docker exec vm_box curl -X GET http://input:1500/auth/v4/user -H 'internal-auth:on'
Comments to the command - If you use the old version of the authorization service (Auth v3), enter the command:
docker exec vm_box curl -X POST http://input:1500/auth/v4/user/<user_id>/key -d '{}' -H 'internal-auth:on'
Comments to the command
In response, you will get the message in the form:
Example of response
{"id":"8","key":"8-c46c0204-873a-4a69-b34d-d8b1e93e06d7"}
Comments to the response
The user will be able to log in to the platform via a link in the following format: https://domain.com/auth/key/<key>
Comments
The key is valid for one hour.