List all loginData of one user
GET/login/user/:id/loginData
Gets the list of all login data of a single user specified by id.
Needs admin permission for any user other than the one sending the request (equivalen to self query).
Request
Path Parameters
The uuid string of the existing user to get the loginData for or 'self'
Responses
- 200
- 401
- 404
If user exixts, login data for the user with the specified id
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Only UserLoginData in state {@link LoginState.VALID} may be used for login and retrieving an access token.
- Only UserLoginData in state {@link LoginState.WAITING_FOR_REGISTER} may be used for registration or linking.
- UserLoginData in state {@link LoginState.BLOCKED} cannot be used for anything
- ]
The unique ID of this login data
Possible values: [WAITING_FOR_REGISTER
, VALID
, BLOCKED
]
The state this authentication is in.
Rules:
If not null
, this authentication should be considered invalid on any date+time AFTER this.
This is to ensure created UserLoginData, that are not used for registration
or linking in time, are not kept forever.
If null
, the authentication should not expire by date.
[
{
"id": "12345678-90ab-cdef-fedc-ab0987654321",
"state": "VALID",
"expires": "2024-07-03T21:52:34.360Z"
}
]
If no requesting self and not admin or if login is invalid
If no user with the specified it could be found