Auth0 is a flexible, drop-in solution to add authentication and authorization services to your applications.
🐕🦺 Setup guide
The source connector fetches data from Auth0 Management API
Prerequisites
- You own an Auth0 account, free or paid.
- Follow the Setup guide to authorize Zenskar to read data from your account.
⚙️ Set up an Auth0 account
- It's free to sign up an account in Auth0.
- Confirm your Email.
⚙️ Get a temporary access token for testing
- In Auth0, go to the Api Explorer tab of your Auth0 Management API. A token is automatically generated and displayed there.
- Click Copy Token.
More details can be found in this documentation.
⚙️ Create a new app for OAuth2 for automated token generation
- To allow Zenskar to make scheduled calls to Auth0, you must set up an OAuth2 integration. This helps Zenskar generate access tokens automatically.
- In Auth0, navigate to Dashboard > Applications > Applications.
- Create a new application, name it Zenskar. Choose the application type Machine to Machine Applications (M2M).
- Select Management API V2. This is the API Zenksar will call.
- Each M2M app that accesses an API must be granted a set of permissions (or scopes). Here, we only need permissions starting with
read
(e.g. read:users). Under the API doc, each api will list the required scopes. - More details can be found from this documentation.
⚙️ Set up Auth0 as data source in Zenskar
⚙️ Set up data source and type
- Log into your Zenskar account.
- In the left navigation bar, navigate to Metering > Data Sources. In the top-right corner, click + ADD DATA SOURCE.
- In the Set Up Source section of the Add New Data Source page, enter a name for the Auth0 data source connection.
- Select Auth0 from the Source Type dropdown.
⚙️ Configure data source
In the Source Config section of the Add New Data Source page, do the following:
- Base URL: The Authentication API is served over HTTPS. The Base URL will be of the form
https://<yourDomain>
. - Authentication Method
- Select OAuth2 Access Token
- OAuth2 Access Token
- Authentication Method: Enter OAuth2 Access Token.
- OAuth2 Access Token: Paste the access token retrieved from Auth0.
Supported sync modes
The Auth0 source connector supports the following sync modes:
- Full Refresh
- Incremental
Supported Streams
Performance considerations
The connector is restricted by Auth0 rate limits.