Skip to main content
This article lists every setting the Auth0 CLI applies, so you can configure them yourself or review what the CLI changed. You can use the Auth0 Dashboard or the Management API for each step. Agents compare your discovery files with your tenant character for character. After manually writing your discovery files, run auth0 poppy doctor to verify that they match.

Prerequisites

  • A tenant with the Personal Agent Protocol (Poppy) beta enabled.
  • An existing API with an https identifier and a description for every scope.
  • An existing first-party Regular Web Application for your website.
  • A Management API access token with update:tenant_settings, update:resource_servers, update:clients, create:clients, create:client_grants, and create:agents.

Configure tenant settings

authorization_response_iss_parameter_supported, resource_parameter_profile, and default_audience apply to every application in your tenant. With a default audience, applications that send no audience receive tokens for your API.
  1. Navigate to Dashboard > Settings > General. Under API Authorization Settings, set Default Audience to your API’s identifier, and select Save.
  2. Navigate to Dashboard > Settings > Advanced.
  3. Under Personal Agent Company Domains, add each of your company domains. To remove a domain, remove it from the list.
  4. Turn on Client ID Metadata Document support, Issuer (iss) in authorization responses, and the Resource Parameter Compatibility Profile.
  5. Select Save.

Configure your API

  1. Navigate to Dashboard > Applications > APIs and select your API.
  2. On the Settings tab, turn on Available to Personal Agents.
  3. Under Access Token Settings, turn on Include agent subject claims.
  4. Under Access Settings, turn on Allow Skipping User Consent and Allow Offline Access.
  5. Select Save.
  6. Select the Permissions tab. Make sure every scope has a description, and add poppy:browser-sign-in with the description “Use the website on your behalf, with the permissions you approve”.
If your website gives a signed-in agent the account’s full access, describe poppy:browser-sign-in that way instead, such as “Use the website on your behalf, with full access to your account”, and set web.unscoped in poppy.json. Auth0 doesn’t enforce this setting: your website does.

Allow guest access tokens (optional)

After a signed-out browser join, your web application receives an access token for your API only if the API allows anonymous users for that application. Skip this if your web application calls only public endpoints for guests.
  1. Navigate to Dashboard > Applications > APIs and select your API.
  2. On the Settings tab, under Application Access Policy, set Anonymous Access to per-app authorization.
  3. Select Save.
Then grant your web application the scopes guests may use, as described in Allow guest access tokens in your web app. To learn more, read Configure Anonymous Sessions.

Configure your web app

  1. Navigate to Dashboard > Applications > Applications and select your web application.
  2. On the Settings tab, turn on Allow Personal Agent Browser Join.
  3. In the URLs tab, set Application Login URI to your application’s login route, and make sure Allowed Callback URLs includes your callback route.
  4. Select Save Changes.
Your browser join endpoint is https://YOUR_AUTH0_DOMAIN/poppy/WEB_APP_CLIENT_ID/browser-session. Use your custom domain if you have one.

Allow guest access tokens for your web app (optional)

If you set the API’s Anonymous Access to per-app authorization, grant your web application the scopes guests may use.
  1. Navigate to Dashboard > Applications > Applications and select your web application.
  2. Select the API Access tab, find your API, and select Edit.
  3. Under Anonymous Access, select the scopes guests may use.
  4. Select Save.

Skip MFA during joins

A join can’t show prompts, so it fails if MFA or any other prompt would run. If you require MFA, skip it when an actor is present in a post-login Action. To learn more, read Customize MFA Selection.

Add the refresh token Action

Agents that follow the protocol may not request offline_access. Add a post-login Action that requests it for agents that sign in to your API, and bind it as the last Action of the post-login flow:
  1. Navigate to Dashboard > Actions > Library and select Create Action > Build from scratch.
  2. Enter a name, such as Poppy refresh tokens, select the Login / Post Login trigger, and select Create.
  3. Paste the code above, set POPPY_APIS to your Poppy API identifiers, and select Deploy.
  4. Navigate to Dashboard > Actions > Triggers and select post-login.
  5. In the Custom tab, drag the Action to the end of the flow and select Apply.

Register agents

For each personal agent you allow:
  1. Manually create its application from its CIMD URL. In Dashboard > Applications > Applications, select Create Application > Import from URL, enter the agent’s URL, select Preview, and then Create. To use the Management API, read Register Applications with CIMD.
  2. Link it to an agent. Create an agent with the application’s client_id. To learn more, read Register an Agent. Without a link, the web application’s tokens name the agent by its CIMD URL.
  3. Grant it scopes on your API: Create a client grant that authorizes the agent’s application to get access tokens for your API on behalf of signed-in users for a specific set of scopes you define.
  1. Navigate to Dashboard > Applications > Applications and select the agent’s application.
  2. Select the APIs tab and find your API.
  3. Turn on access for your API and select the scopes the agent may request, including poppy:browser-sign-in.
  4. Select Update.
Auth0 accepts ES256, PS384, and RS256 signatures. An agent’s metadata document can have at most 6 signing keys. When the document sets token_endpoint_auth_signing_alg, Auth0 stores only the keys of that algorithm; when it omits it, Auth0 stores every key. When an agent rotates its keys, select Refresh Client Metadata on its application. To block an agent, delete its application, which revokes its refresh tokens. Already issued access tokens stay valid until they expire.

Serve the discovery files

Serve both files on your company domain, at the root, over HTTPS. The Auth0 web SDKs serve them for you. /.well-known/oauth-protected-resource:
/.well-known/poppy.json:

Next steps