Integrate Auth0 with EventBridge

Updated at:

Integrate Auth0 with EventBridge by using an HTTP event source.

Background information

Auth0 is an identity platform that provides identity authentication and authorization services. With EventBridge, you can integrate events from Auth0 to send notifications to registered users and handle exceptions.

In this integration, a Custom Webhook log stream in Auth0 posts Auth0 events to the webhook URL of an HTTP/HTTPS event source in EventBridge.

Prerequisites

Step 1: Create an HTTP event source

In the EventBridge console, create an event source of the HTTP/HTTPS Events type and configure the following parameters. For more information, see Create a custom event source of the HTTP/HTTPS Events type.
  • request type: Select HTTPS.
  • request method: Select POST.
  • security settings: Select None.

After the event source is created, it appears in the event source list. Click Details to view its configuration. The Internet request URL is the webhook URL for the event source.

The Internet request URL of the event source

The configuration also includes an intranet request URL.

Step 2: Create a log stream in Auth0

  1. Log on to the Auth0 console. In the left-side navigation pane, choose .
  2. On the Streams page, click Create Log Stream.
  3. On the New Event Stream page, click Custom Webhook.
  4. In the Create Event Stream dialog box, enter a name for the event stream and click Create.
  5. On the details page of the log stream, configure the parameters, including Payload URL, and then click Save.
    Note The Payload URL is the Internet request URL from Step 1: Create an HTTP event source.

Step 3: Trigger an event

Create a user in the Auth0 console to generate an event.

  1. On the Auth0 console homepage, in the left-side navigation pane, choose .
  2. On the Users page, click Create User.
  3. In the Create user dialog box, enter the user information and click Create.

Step 4: Verify the result

  1. Log on to the EventBridge console.

  2. In the top navigation bar, select a region.

  3. In the left-side navigation pane, click Event Buses.

  4. On the Event Buses page, find the custom event bus and click event tracking in the Actions column to view the event details.