Auth API (1.0.0)
Download OpenAPI specification:Download
Auth API performs operations to enable user to authenticate on platform
Admin reset password
Admin initiated password reset request on behalf of a user
Authorizations:
Request Body schema: application/json
| username required | string |
Responses
Request samples
- Payload
{- "username": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Admin set password
Admin initiated set password request on behalf of a user
Authorizations:
Request Body schema: application/json
| username required | string |
Responses
Request samples
- Payload
{- "username": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Login
User initiated login
Request Body schema: application/json
| username required | string email address |
| password required | string <cognito-password> Standard cognito password |
| newPassword | string <cognito-password> Standard cognito password |
Responses
Request samples
- Payload
{- "username": "string",
- "password": "string",
- "newPassword": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "challenge": {
- "session": "string",
- "challengeParameters": {
- "missingAttributes": [
- "string"
], - "authPlatformId": "string"
}, - "challengeName": "string"
}
}Change Password
User initiated change password request
Request Body schema: application/json
| oldPassword required | string <cognito-password> Standard cognito password |
| newPassword required | string <cognito-password> Standard cognito password |
| confirmNewPassword required | string <cognito-password> Standard cognito password |
Responses
Request samples
- Payload
{- "oldPassword": "string",
- "newPassword": "string",
- "confirmNewPassword": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Forgotten Password
User initiated forgotten password request
Request Body schema: application/json
| username required | string |
Responses
Request samples
- Payload
{- "username": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Reset password
User initiated forgotten password confirmation request
Request Body schema: application/json
| username required | string |
| password | string <cognito-password> Standard cognito password |
| passwordConfirm | string <cognito-password> Standard cognito password |
| confirmationCode | string |
Responses
Request samples
- Payload
{- "username": "string",
- "password": "string",
- "passwordConfirm": "string",
- "confirmationCode": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "challenge": {
- "session": "string",
- "challengeParameters": {
- "missingAttributes": [
- "string"
], - "authPlatformId": "string"
}, - "challengeName": "string"
}
}Confirm Signup
User initiated signup confirmation, takes a username and a confirmation code and sets the users account to confirmed, allowing that user to login
Request Body schema: application/json
| username required | string users authPlatformId |
| confirmationCode required | string Six digit code sent to user to confirm their account |
Responses
Request samples
- Payload
{- "username": "string",
- "confirmationCode": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Send Magic Login Link
Takes a user id and begins authentication through cognito, sending a login link to the user via whatsapp
Request Body schema: application/json
| id required | string User Id |
| redirect required | string Redirect Url |
Responses
Request samples
- Payload
{- "id": "string",
- "redirect": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Verify Magic Link
User was sent whatsapp link with code. Code from that link will be posted to this endpoint to verify their login.
Request Body schema: application/json
| id required | string Auth Lookup Id |
Responses
Request samples
- Payload
{- "id": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Update system settings
Change the system settings document in the auth module
Authorizations:
Request Body schema: application/json
required | object | ||||
| |||||
Responses
Request samples
- Payload
{- "logging": {
- "level": "string",
- "filter": "string"
}
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}