Prerequisites
Before you begin, you’ll need to:- Have an Apigee Edge API proxy that needs to be secured. To learn more, read Apigee’s Get Started article.
- Sign up for an account with Auth0.
Create a custom API
First, register your Apigee Edge API Proxy using the Dashboard. Auth0 needs to recognize Apigee as an to make sure that any issued are issued with the correct audience. The user authenticates with Auth0 via the application, and the application specifies this audience value to make sure that the Access Token possesses the right scopes for the audience provided. You’ll need to do the following:- Provide a name for your API (e.g.,
apigee
). - Provide an identifier for your API:
urn:apigee:target:api
- Choose a signing algorithm:
RS256
(default)
Note variables from the test application
Switch to the test application created when registering your API and make note of the variables that were set during the process of registering your API and creating the associated M2M application. You will need them for subsequent steps of this tutorial.- Navigate to the Auth0 Dashboard > Applications], and click the name of your test application.
-
Scroll down and make note of the following variables:
- API audience
- Auth0 domain
- Client ID
- Allowed callback URL(s): The URLs to which the user can be redirected after authentication. You can specify multiple URLs by comma-separating them. (This is typically done to handle different environments where each needs its own redirects.)