Configure It Yourself
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: resource servers, roles, demo users, and the
WAYFINDERapplication. - Register the Wayfinder Concierge Agent: needed for Acting on Its Own and Acting on Behalf of a User.
- Build the Agent Authentication Flow: drives the OBO consent screen used by Acting on Behalf of a User.
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.
-
Create the
wayfinder-agentresource server.This resource server protects the Wayfinder Concierge chat API.
- Go to Resource servers and click Add resource server.
- On the Type step, select Custom and click Continue.
- On the Details step, set Resource server name to
Wayfinder Agentand Identifier tohttp://localhost:8790/chat, the chat API audience. Clear Make this the default resource server, then click Continue. - On the Permission settings step, keep Permission delimiter set to Colon ( : ) and click Create resource server.
- The Console opens the new resource server on its Resources tab. Under Resource hierarchy, click Add (+) and select Add resource. Enter
Agentas the Name andagentas the Handle, then click Add. - Select the Agent resource, click its Add (+) icon, and select Add action. Enter
Accessas the Name andaccessas the Handle, then click Add.
Action Generated permission accessagent:accessSee Resource Servers.
-
Create the
wayfinderresource 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 asresource=...on/oauth2/token; Choreo Identity & Access Management would reject the request withinvalid_targetotherwise. This resource server protects both the REST surface (/api/*) and the MCP surface (/mcp) of the Wayfinder server. Both check the samebooking:*permissions.It must also be the default resource server. The web application requests
booking:*permissions without aresource, so the default must be the resource server that defines those permissions. The chat widget targetshttp://localhost:8790/chatexplicitly. Only API and custom resource servers can be the default, so choose Custom here, not MCP.- Go to Resource servers and click Add resource server.
- On the Type step, select Custom and click Continue.
- On the Details step, set Resource server name to
Wayfinder Bookingand Identifier tohttp://localhost:8787/mcp. Select Make this the default resource server, then click Continue. - On the Permission settings step, keep Permission delimiter set to Colon ( : ) and click Create resource server.
- On the Resources tab, under Resource hierarchy, click Add (+) and select Add resource. Enter
Bookingas the Name andbookingas the Handle, then click Add. - Select the Booking resource, click its Add (+) icon, and select Add action. Enter
Readas the Name andreadas the Handle, then click Add. - Repeat the previous step for the actions
Create(create),Cancel(cancel), andRecommend(recommend).
Action Generated permission readbooking:readcreatebooking:createcancelbooking:cancelrecommendbooking:recommendCheck 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.
-
Create the
Chat Userrole.The role grants
agent:accesson thewayfinder-agentresource server.- Go to Roles and click Add role.
- On the Details step, set Role name to
Chat Userand click Continue. - On the Permissions step, expand Wayfinder Agent and the Agent resource, then select
agent:access. - Click Continue to create the role.
-
Create the
Booking Userrole.Create a role named
Booking Userthe same way. On the Permissions step, expand Wayfinder Booking and the Booking resource, then selectbooking:read,booking:create, andbooking:cancel. Select the three permissions one by one: the Booking checkbox itself selects every action under it, includingbooking:recommend. -
Create the
Recommenderrole.Create a role named
Recommenderthe same way. On the Permissions step, expand Wayfinder Booking and the Booking resource, then select onlybooking:recommend. This role will be assigned to the Wayfinder Concierge in a later step, not to a user.See Authorization.
-
Create the
Customeruser type.Switch to the organization view and go to User types → Add user type. Name it
Customerand define the schema with the attributes the agent needs to issue claims for:Attribute Type Required Notes usernamestring Yes Unique passwordstring No Marked as a credential emailstring Yes Unique given_namestring No family_namestring No See User Types.
-
Create the two demo users.
Navigate to Users → Add user. Select the
Customeruser type and create:Username Password john.doejohn.doejane.smithjane.smithSee Manage Users.
-
Assign user roles.
- Go to Roles and open Chat User.
- On the Assignments tab, click Add.
- On the Users tab, select
john.doeand click Add selected. - Repeat for Booking User, selecting both
john.doeandjane.smith.
-
Register the
WAYFINDERapplication.Navigate to Applications → Add application and choose Browser app as the type. Configure:
Setting Value Client ID WAYFINDERRedirect URI http://localhost:5173Allowed grants authorization_codePKCE Required Allowed user types CustomerSee Manage Applications.
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.
-
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_codegrant 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.
- Capture the client secret. Choreo Identity & Access Management prints it only once. You will use it in
-
Assign the
Recommenderrole to the agent.With the agent created, complete the role assignment:
- Roles → Recommender → Assignments tab → Add. On the Agents tab, select
WAYFINDER-CONCIERGEand click Add selected.
- Roles → Recommender → Assignments tab → Add. On the Agents tab, select
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
PROMPTstep asking for username and password. - A
TASK_EXECUTIONstep running theCredentialsAuthExecutor. - A
TASK_EXECUTIONstep running theAuthorizationExecutor. - A
TASK_EXECUTIONstep running theConsentExecutor, with aPROMPTstep for the consent screen on itsonIncompletebranch. - A
TASK_EXECUTIONstep running theAuthAssertExecutoron 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?