Links new authentication with any user by id
POST/auth/api/login/registration/admin-link
Links a new authentication with any user specified by id
Needs admin permissions
A (still) valid registration token is needed. After a successful linking, the expiration of the activeLogin and loginData will be updated accoringly
Request
- application/json
Body
required
The register token issued during as result of the oauth registration flow. Scope of the token must contain "login-register".
Must be given.
The uuid string of ae existing LoginUser
with which to link the authentication behind the registration token
Responses
- 200
- 201
- 401
- 404
If successful, the default response with operation 'admin-link'
- application/json
- Schema
- Example (from schema)
Schema
A string representation of the operation performed
Possible values: [success
, failed
]
Default value: success
The result of the operation. Defaults to "success"
Default value: 2024-11-04T19:50:45.107Z
The time the operation was performed. Defaults to the current date+time
{
"operation": "self-register",
"result": "success",
"time": "2024-11-04T19:52:37.913Z"
}
- application/json
- Schema
- Example (from schema)
Schema
A string representation of the operation performed
Possible values: [success
, failed
]
Default value: success
The result of the operation. Defaults to "success"
Default value: 2024-11-04T19:50:45.107Z
The time the operation was performed. Defaults to the current date+time
{
"operation": "self-register",
"result": "success",
"time": "2024-11-04T19:52:37.913Z"
}
If not an admin is logged in, the given registration token is not/no longer valid or the registration time frame has expired
If the specified user id did not match any existing user