Skip to main content

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

login data for the specified id

Schema
    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:

    • 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
    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.

Loading...