Integration Test Scenarios

WEBSITE DRIVEN LOGIN FLOW

WHITE LABEL DRIVEN LOGIN FLOW

  • User visits the white label domain directly.
  • If no login credentials for the user is found, then Zoho Analytics will route the user the registered login url with a parameter called serviceurl. Serviceurl contains the full URL where the request should be routed to after login (for eg. https://finepick.com/login?serviceurl=https://analytics.finepick.com)
  • The login page of finepick.com, collects and processes the user’s login credentials based on the data stored in finepick.com
  • After succesfully logging the user into finepick.com, if the service URL is a white label URL, the server should invoke the Sign in or Sign up API for the current logged in user, and obtain a redirect url.
  • After successfully obtaining the redirect url, the user’s browser should be forwarded to the url denoted by service url (in this example, https://analytics.finepick.com/oauthorize?zacode=[obtained_ticket]&portal=[portal_id]&state=https://analytics.finepick.com/ZDBHome.cc)
  • Now the white label site (Zoho Analytics) recognizes the user.

WEBSITE LOGOUT FLOW:

  • When the user clicks on the logout URL in the website, the website should call the Zoho Analytics signout API and invalidate the ticket.
  • The signout API call is a must!

WHITE -LABEL LOGOUT FLOW:

  • When the user logs out from the reports site, he will be routed to the logout URL of the main site with the serviceurl parameter pointing to the community URL.
  • Zoho will automatically clear all cookies and session information about the user from Zoho’s end.