Return username, display name and email suggestions for registering a user
POST/login/registration/data-suggestion
Return username, display name and email suggestions for registering a user
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.
Responses
- 200
- 201
- 400
- 401
If valid token and successfull (partial) suggested data for the new user
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [already-registered
, username-taken
, no-data
, ok
]
Status of the returned user data suggestion and information on usability
A potential username to use for the registration. If one is given, it was free the moment the suggestion is retrieved
A potential name to display in the UI for the new user.
A potential email of the new user.
{
"status": "already-registered",
"username": "testUser",
"displayName": "Test User",
"email": "test-user@example.com"
}
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [already-registered
, username-taken
, no-data
, ok
]
Status of the returned user data suggestion and information on usability
A potential username to use for the registration. If one is given, it was free the moment the suggestion is retrieved
A potential name to display in the UI for the new user.
A potential email of the new user.
{
"status": "already-registered",
"username": "testUser",
"displayName": "Test User",
"email": "test-user@example.com"
}
If the input data is invalid
If the given registration token is not/no longer valid or the registration time frame has expired