SSO Redirection API

The Single Sign-On (SSO) API allows seamless authentication of users into Xoxoday's StoreFront. It ensures that users can log in with their existing credentials from the your system.

Key Pointers

  1. The SSO API is based on SAML 2.0 standards.
  2. If the user account does not exist in Xoxoday, one will be created automatically.
  3. The API returns an ssoToken which is used for redirecting the user securely into the StoreFront.

Implementation Details

Headers

  1. Content-Type: application/json
  2. Authorization: Bearer <access_token>

Note: Learn how to generate access token here.

Redirection URL format

{OAUTH_URL}/chef/v1/oauth/redirect/stores/{ssoToken} 

{OAUTH_URL} for:

Note: Replace the {ssoToken} with the SSO token received in the response of this API.

Editable Fields at Checkout

  1. Email and phone values can be marked as editable or non-editable at checkout.
  2. Fields can also be hidden if you don’t want them shown to the user.

OTP Verification

You can configure OTP validation for checkout on primary email, primary phone, alternate email, or disable it.

SSO Redirection API Request Schema

ParameterTypeDescription
user_inputStringEnd user’s email address. Used to create or fetch the account in Xoxoday.
tpdObjectThird-party data object containing user identity, authorization details and any custom parameter for each user.
tpd.auth_tokenStringToken provided by the client. Xoxoday will use this for subsequent API calls (balance, transaction, refund, verification).
tpd.unique_idStringUnique identifier for the user
tpd.emailObjectEmail configuration object for the user.
tpd.email.default_valueStringActual email ID of the user. Can be updated without affecting account history.
tpd.email.editableBooleanIf false, the user cannot edit the email at checkout.
tpd.email.hiddenBooleanIf true, the email field will be hidden at checkout.
tpd.email.support_alternateBooleanIf false, no alternate email option will be shown.
tpd.phoneObjectPhone configuration object for the user.
tpd.phone.default_valueStringPhone number of the user.
tpd.phone.phone_codeStringCountry code of the phone number (e.g., +91).
tpd.phone.editableBooleanIf false, the user cannot edit the phone number at checkout.
tpd.phone.hiddenBooleanIf true, the phone field will be hidden at checkout.
tpd.otpStringMode of OTP validation. Possible values: primary_email, primary_phone, alternate_email, none.

Response Schema

ParameterTypeDescription
data.ssoTokenStringUnique token generated upon successful validation. Used to redirect the user into Xoxoday StoreFront. Default validity is 14 days.
Language
Credentials
OAuth2
Click Try It! to start a request and see the response here!