Cayzu Help Desk Support



How can I auto-login to my end-user portal from my website?

Created: 11/10/2017
Article #: 183


The following instructions require you to call our API to pass the required information to auto-login:

To activate this, please go to your End User Portal Settings in the Agent portal and enable it for the brand you would like to allow this feature (Allow users to auto sign with encrypted token)

Ex)


Once you have done that, you can call the API to get the required information to log in.
  
Using the API:

First you will want to call this to encrypted the email address and it will return you the token to use to auto-login:

POST:
https://api.cayzu.com/api/auth/contact_token?token=API_KEY_HERE

Body:
{
  "username": "myemail@mycompany.com"
}

Response:
{
  
  "token": "SyhsdlVTS2lVUXFNV0l3VWtkNEhtQjQ1YlBDS0VHTkhrL0JodUlCOEhRdTJYeXFGWGtzTU9COXlUbW5mTDFiaVFWako2OWVwYlBJWnpzbXNKVkNHWEE2eXpwbFBNZzFZZUJTZHlkMnb2clVGRGdnUTd4SjBKZU1LMjhaSmxyb3c=",
  
  "success": true

}

So now you can use the token returned for the auto-sign on the end user portal. If something goes wrong you will be notified with an error message.

How to pass the contact token to your customer portal:
http://support.cayzu.com/Account/TokenLogin?token=<use generated for specific contact token>

Note: Replace support.cayzu.com with your end-user portal url

To learn more about Cayzu Help Desk, visit www.cayzu.com

 







Rate this FAQ:
Rating: 0.00 / Votes: 0