Auth0 by Okta - Amazon Bedrock AgentCore

Amazon Bedrock AgentCore is in preview release and is subject to change.

Auth0 by Okta

Auth0 by Okta can be set up as an inbound provider or as an outbound provider.

To add Auth0 as an identity provider for accessing AgentCore Gateway and Runtime, you must:

  • Configure discovery URL from your IDP directory. This helps AgentCore Identity get the metadata related to your OAuth authorization server and token verification keys.

  • Provide valid aud claims for the token. This helps validate the tokens coming from your IDP and allows access for tokens that contain expected claims.

Inbound

Follow these steps to set up Auth0 and obtain the necessary configuration values for Gateway authentication:

  1. Create an API in Auth0:

    • Log in to your Auth0 dashboard.

    • Navigate to "APIs" and click "Create API".

    • Provide a name and identifier for your API (e.g., "gateway-api").

    • Select the signing algorithm (RS256 recommended).

    • Click "Create".

  2. Configure API scopes:

    • In the API settings, go to the "Scopes" tab.

    • Add scopes such as "invoke:gateway" and "read:gateway".

  3. Create an application:

    • Navigate to "Applications" and click "Create Application".

    • Select "Machine to Machine Application".

    • Select the API you created in step 1.

    • Authorize the application for the scopes you created.

    • Click "Create".

  4. Note the client ID and client secret from the application settings.

  5. Construct the discovery URL for your Auth0 tenant:

    https://<your-domain>/.well-known/openid-configuration

    Where <your-domain> is your Auth0 tenant domain (e.g., "dev-example.us.auth0.com").

  6. Configure Inbound Auth with the following values:

    • Discovery URL: The URL constructed in the previous step

    • Allowed audiences: The API identifier you created in step 1