Auth0 is a popular solution used by many companies to add authentication and authorization services to their applications.
You can send your Auth0 authentication and user behavior-related events by adding a custom webhook that points to RudderStack.
This guide will help you set up Auth0 as a source in RudderStack.
Getting started
Follow these steps to set up your Auth0 source in the RudderStack dashboard:
- Go to your RudderStack dashboard and click Add Source. From the list of Event Streams sources, select Auth0.
- Assign a name to your source and click Continue.
- Your Auth0 source is now configured. Note the Webhook URL in the Settings tab, as shown:
- Next, log into your Auth0 dashboard.
- Go to Monitoring > Streams > Create Log Stream > Custom Webhook, as shown:
- Name your custom webhook. In the Payload URL field, enter the webhook URL obtained in Step 3.
- Configure the other webhook settings as required.
- Click Save to save the custom webhook.
Event transformation
RudderStack supports ingesting the Auth0 events as track
, group
, and identify
calls.
group
calls and the signup-related events as identify
calls. All the other events are ingested as track
calls.The following table lists the properties populated from the Auth0 event payload directly to the RudderStack event:
Auth0 Property | RudderStack Property |
---|---|
auth0_client | properties.auth0_client |
client_id | properties.client_id |
client_name | properties.client_name |
connection | traits.connection |
connection_id | traits.connection_id |
description | properties.description |
details | properties.details |
details.auth.user.email | context.traits.email |
details.auth.user.name | context.traits.name |
log_id | properties.log_id |
isMobile | properties.is_mobile |
ip | context.request_ip |
user_name | context.traits.user_name |
user_agent | context.userAgent |
user_id | userId context.traits.userId |
Debugging
If you are unable to see any events flowing from the Auth0 API webhooks to RudderStack, you can troubleshoot the issue by viewing the API webhooks logs. To do so, go to your Auth0 dashboard and navigate to Monitoring > Logs.
Contact us
For more information on the topics covered on this page, email us or start a conversation in our Slack community.