Skip to main content

Configure It Yourself

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Use this page to build the Wayfinder AI agent setup manually instead of importing the declarative bundle from See It in a Sample App. Pick this path when you want to see exactly what gets created, adapt the setup to your own project, or learn the moving parts step by step. The end state is identical. Every walkthrough works against either path.

The first section is the shared foundation, required regardless of which walkthroughs you plan to exercise. The remaining sections build on it.

Set Up the Foundation​

The foundation creates the two resource servers, three roles, two demo users, and the OAuth application that Wayfinder Web uses to sign users in. Complete each step in the Choreo Identity & Access Management Console. When a wizard asks you to choose an organization unit, pick your default organization unit and click Continue.

  1. Create the wayfinder-agent resource server.

    This resource server protects the Wayfinder Concierge chat API.

    1. Go to Resource servers and click Add resource server.
    2. On the Type step, select Custom and click Continue.
    3. On the Details step, set Resource server name to Wayfinder Agent and Identifier to http://localhost:8790/chat, the chat API audience. Clear Make this the default resource server, then click Continue.
    4. On the Permission settings step, keep Permission delimiter set to Colon ( : ) and click Create resource server.
    5. The Console opens the new resource server on its Resources tab. Under Resource hierarchy, click Add (+) and select Add resource. Enter Agent as the Name and agent as the Handle, then click Add.
    6. Select the Agent resource, click its Add (+) icon, and select Add action. Enter Access as the Name and access as the Handle, then click Add.
    ActionGenerated permission
    accessagent:access

    See Resource Servers.

  2. Create the wayfinder resource server.

    The identifier is http://localhost:8787/mcp, a URL-shaped identifier per RFC 8707 that matches what the Wayfinder MCP server advertises in /.well-known/oauth-protected-resource. MCP Inspector reads that metadata and passes the value back as resource=... on /oauth2/token; Choreo Identity & Access Management would reject the request with invalid_target otherwise. This resource server protects both the REST surface (/api/*) and the MCP surface (/mcp) of the Wayfinder server. Both check the same booking:* permissions.

    It must also be the default resource server. The web application requests booking:* permissions without a resource, so the default must be the resource server that defines those permissions. The chat widget targets http://localhost:8790/chat explicitly. Only API and custom resource servers can be the default, so choose Custom here, not MCP.

    1. Go to Resource servers and click Add resource server.
    2. On the Type step, select Custom and click Continue.
    3. On the Details step, set Resource server name to Wayfinder Booking and Identifier to http://localhost:8787/mcp. Select Make this the default resource server, then click Continue.
    4. On the Permission settings step, keep Permission delimiter set to Colon ( : ) and click Create resource server.
    5. On the Resources tab, under Resource hierarchy, click Add (+) and select Add resource. Enter Booking as the Name and booking as the Handle, then click Add.
    6. Select the Booking resource, click its Add (+) icon, and select Add action. Enter Read as the Name and read as the Handle, then click Add.
    7. Repeat the previous step for the actions Create (create), Cancel (cancel), and Recommend (recommend).
    ActionGenerated permission
    readbooking:read
    createbooking:create
    cancelbooking:cancel
    recommendbooking:recommend

    Check that the Default resource server badge appears next to the resource server's name. Only one resource server can be the default at a time, so this replaces any earlier default. If the badge is missing, click Set as default next to the name, then click Set as default again to confirm.

  3. Create the Chat User role.

    The role grants agent:access on the wayfinder-agent resource server.

    1. Go to Roles and click Add role.
    2. On the Details step, set Role name to Chat User and click Continue.
    3. On the Permissions step, expand Wayfinder Agent and the Agent resource, then select agent:access.
    4. Click Continue to create the role.
  4. Create the Booking User role.

    Create a role named Booking User the same way. On the Permissions step, expand Wayfinder Booking and the Booking resource, then select booking:read, booking:create, and booking:cancel. Select the three permissions one by one: the Booking checkbox itself selects every action under it, including booking:recommend.

  5. Create the Recommender role.

    Create a role named Recommender the same way. On the Permissions step, expand Wayfinder Booking and the Booking resource, then select only booking:recommend. This role will be assigned to the Wayfinder Concierge in a later step, not to a user.

    See Authorization.

  6. Create the Customer user type.

    Switch to the organization view and go to User types → Add user type. Name it Customer and define the schema with the attributes the agent needs to issue claims for:

    AttributeTypeRequiredNotes
    usernamestringYesUnique
    passwordstringNoMarked as a credential
    emailstringYesUnique
    given_namestringNo
    family_namestringNo

    See User Types.

  7. Create the two demo users.

    Navigate to Users → Add user. Select the Customer user type and create:

    UsernamePassword
    john.doejohn.doe
    jane.smithjane.smith

    See Manage Users.

  8. Assign user roles.

    1. Go to Roles and open Chat User.
    2. On the Assignments tab, click Add.
    3. On the Users tab, select john.doe and click Add selected.
    4. Repeat for Booking User, selecting both john.doe and jane.smith.
  9. Register the WAYFINDER application.

    Navigate to Applications → Add application and choose Browser app as the type. Configure:

    SettingValue
    Client IDWAYFINDER
    Redirect URIhttp://localhost:5173
    Allowed grantsauthorization_code
    PKCERequired
    Allowed user typesCustomer

    See Manage Applications.

Deploy your changes

Saving a change does not make it live. You author in the control plane, and your users sign in on a separate data plane, so a change takes effect in an environment only after you deploy it. Go to Deploy, deploy the latest version to your first environment, then promote it to the next environment when you are ready.

Auto-sync deploys saved changes to your first environment within seconds. Turning it on is your choice, per project. See Deploy a Version, or learn why you deploy and how auto-sync works.

Register the Wayfinder Concierge Agent​

The Concierge runs as a first-class agent in Choreo Identity & Access Management. It needs its own credentials, the right OAuth grants enabled, and a role assignment so its machine-to-machine token can call browsing tools.

  1. Add the agent.

    Navigate to Agents → Add agent. Name the agent WAYFINDER-CONCIERGE, then:

    • Capture the client secret. Choreo Identity & Access Management prints it only once. You will use it in ai-agent/.env.
    • On the Advanced tab, under Operating mode, turn on Delegated mode. That adds the authorization_code grant the on-behalf-of flow needs. Client credentials stays on either way.
    • Still on Advanced, add the redirect URI http://localhost:5173/agent-callback.

    See Create and Manage Your Agent and Act on Behalf of a User.

  2. Assign the Recommender role to the agent.

    With the agent created, complete the role assignment:

    • Roles → Recommender → Assignments tab → Add. On the Agents tab, select WAYFINDER-CONCIERGE and click Add selected.

Build the Agent Authentication Flow​

The Wayfinder Concierge needs a separate authentication flow that drives the on-behalf-of (OBO) consent screen when a chat request triggers a mutating tool. The flow authenticates the user with username and password, then shows a consent screen listing the booking:* permissions the agent is requesting.

Navigate to Flows and create a flow with these steps:

  • A PROMPT step asking for username and password.
  • A TASK_EXECUTION step running the CredentialsAuthExecutor.
  • A TASK_EXECUTION step running the AuthorizationExecutor.
  • A TASK_EXECUTION step running the ConsentExecutor, with a PROMPT step for the consent screen on its onIncomplete branch.
  • A TASK_EXECUTION step running the AuthAssertExecutor on success.

Attach the flow to the WAYFINDER-CONCIERGE agent: go to Agents, open the agent, select the flow as its authentication flow on the Flows tab, and save from the unsaved-changes bar. See Create and Manage Agents.

The complete flow definition is in the Wayfinder sample distribution at thunderid-config/redirect/thunderid-config.yaml under the wayfinder-agent-auth-flow entry: copy it as a reference.

See Build a Flow.

Start the Sample​

With every resource in place, follow the commands in the Wayfinder sample's README, passing the agent client secret you captured when you registered the agent.

Was this page helpful?