To register a new user with SSO, we recommend you follow the detailed setup flow:
Check if user is already registered in Voxy or the account is expired (GET /partners/users/${external_id}/auth_token)
If the user has not been registered:
HTTP_STATUS = 403 {"error_message": "user does not exist"}
- Create the user in Voxy (POST /partners/users/${external_id})
- Setting the account expiration date is optional using the expiration_date parameter
- The expiration date of the account can be set or changed (PUT /partners/users/${external_id})
- Retrieve the authentication token (SSO) (GET /partners/users/${external_id}/auth_token)
- Redirect user to response → ['actions'] ['start']
If user is registered and not expired (date of account expiration > today):
HTTP_STATUS = 200
- Rertieve the authentication token (SSO) (GET /partners/users/${external_id}/auth_token)
- Redirect user to ['actions'] ['start']
If user is registered, but expired (account expiration date <today's date):
HTTP_STATUS = 403 {"error_message": "Access for the user with the id = '{id}' expired on expired_date {}"}
- Display a message informing the user that the account has expired
Comentarios
El artículo está cerrado para comentarios.