Get a loginData by id
GET/auth/api/login/login-data/:id
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
id uuidrequired
The uuid string of the loginData to get
Responses
- 200
- 401
- 404
login data for the specified id
- application/json
- Schema
- Example (from schema)
Schema
- 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
id stringrequired
The unique ID of this login data
state stringrequired
Possible values: [WAITING_FOR_REGISTER, VALID, BLOCKED]
The state this authentication is in.
Rules:
expires date-timenullablerequired
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": "2025-08-28T16:01:27.634Z"
}
If no requesting self and not admin or if login is invalid
If no loginData with the specified id could be found
Loading...