SSO Auth
Introduction
With Logaflow’s SSO Auth Token, you can authenticate your users logged into your application to identify them on the Logaflow dashboard.
Requirements
- Access to your project’s secret in Logaflow.
Location of your project secret
- Generate and pass jwt token to Logaflow widget
How to implement SSO auth
Generate a JWT Token with your project's secret
On your server, you will need to generate a JWT token signed with your Logaflow project’s secret. Below is an example of how to generate this token:
Authenticate your user in the Widget
To authenticate your user in the widget, you need to pass the generated token to the Logaflow widget:
All set!
After these steps, your user will be authenticated and you will be able to identify them in the feedback sent by them on the feedback details page:
User identification with SSO
Token payload
The JWT token generated in your application must contain the following information:
This field is optional, however, and will only be used to send to your registered webhooks
This field is mandatory and will be used to identify your user within Logaflow and for your registered webhooks
This field is mandatory and will be used to identify your user within Logaflow and for your registered webhooks
This field is optional and will only be used to improve the experience in Logaflow and will also be sent to your registered webhooks