Direct SSO Flow¶
To authenticate a guest via a B2B Integation¶
This is the recommended method for a B2B integration such as an integrated guest website or a mobile app integration that calls the PX API from a secure backend server.
Authenticate Guest¶
-
POST
guestauthentication/authenticateGuest.json
¶
User navigates to integrator’s website (eg. https://www.myawesomewebsite.com/login)
User clicks the login button and is redirected to integrated login page
Guest enters their username and password which is transmitted to Paytronix server via API call.
- Paytronix will respond with
authenticatedSuccess
ornoMatchingGuests
- If the result is a success, Paytronix will return the guest’s
primaryPrintedCardNumber
andusername
. These may then be used to authenticate functionality such as account balance and user information. - If the result is a failure, an error should be provided to the guest. Paytronix will include additional information regarding why the message failed.
- If the result is a success, Paytronix will return the guest’s
- Paytronix will respond with
Login session should be managed by the integrator.
See Authenticate Guest for more information
To authenticate a guest via a direct mobile app integation¶
This is the recommended method for a mobile app integration that calls the PX API directly from the app rather than from a secure backend server. This may also require HMAC enforcement.
Request Guest Token¶
-
POST
oauth/requestGuestToken.json
¶
User navigates to integrator’s mobile app
User clicks the login button
Guest enters their username and password which is transmitted to Paytronix server via API call. This should be made using anonymous authentication.
Paytronix will respond with
SuccessAccessRefreshTokenResponse
if successful- If the result is a success, Paytronix will return the guest’s
username
along with an access and refesh token. These may then be used to authenticate functionality such as account balance and user information. - If the result is a failure, an error should be provided to the guest. Paytronix will include additional information regarding why the message failed.
- If the result is a success, Paytronix will return the guest’s
Login session should be managed by the integrator.
See Grant by Username and Password for more information