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. - Build the Agent Authentication Flow: drives the OBO consent screen used by Acting on Behalf of a User.
- Register the Wayfinder Concierge Agent: needed for Acting on Its Own and 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.
Every API call below needs an access token with the system scope. Obtain one for an administrator and export it, so the calls that follow can reuse it:
export TOKEN="<access-token>"
Each call then sends -H "Authorization: Bearer $TOKEN".
-
Create the
wayfinder-agentresource server.Invoke the Resource Management API to create the resource server. Set the identifier to
http://localhost:8790/chat, the chat API audience. Replace<organization-unit-id>with the ID of your default organization unit (look it up viaGET /organization-units):curl -kL -X POST https://localhost:8090/resource-servers \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{
"name": "Wayfinder Agent",
"description": "Controls access to the Wayfinder Concierge agent",
"identifier": "http://localhost:8790/chat",
"ouId": "<organization-unit-id>",
"delimiter": ":"
}'Add a resource with handle
agentunder it:curl -kL -X POST https://localhost:8090/resource-servers/<wayfinder-agent-rs-id>/resources \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{ "name": "Agent", "handle": "agent" }'Then add one action under the resource:
curl -kL -X POST https://localhost:8090/resource-servers/<wayfinder-agent-rs-id>/resources/<agent-resource-id>/actions \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{ "name": "Access", "handle": "access" }'Action Generated permission accessagent:accessSee Resource Servers.
-
Create the
wayfinderresource server.Invoke the Resource Management API again. 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; ThunderID 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:curl -kL -X POST https://localhost:8090/resource-servers \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{
"name": "Wayfinder Booking",
"description": "Protects the Wayfinder booking domain (REST and MCP surfaces)",
"identifier": "http://localhost:8787/mcp",
"ouId": "<organization-unit-id>",
"delimiter": ":"
}'Add a resource with handle
booking:curl -kL -X POST https://localhost:8090/resource-servers/<wayfinder-rs-id>/resources \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{ "name": "Booking", "handle": "booking" }'Then add four actions under the resource. Repeat the call below for each handle (
read,create,cancel,recommend):curl -kL -X POST https://localhost:8090/resource-servers/<wayfinder-rs-id>/resources/<booking-resource-id>/actions \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{ "name": "Read", "handle": "read" }'Action Generated permission readbooking:readcreatebooking:createcancelbooking:cancelrecommendbooking:recommendConfigure the booking resource server as the default for Wayfinder web sign-in tokens. 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.curl -kL -X PUT https://localhost:8090/server-config/defaultResourceServer \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{ "resourceServerId": "<wayfinder-rs-id>" }' -
Create the
Chat Userrole.Send a
POSTto/roles. The role grantsagent:accesson thewayfinder-agentresource server:curl -kL -X POST https://localhost:8090/roles \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{
"name": "Chat User",
"description": "Grants access to use the Wayfinder Concierge agent",
"ouId": "<organization-unit-id>",
"permissions": [
{
"resourceServerId": "<wayfinder-agent-rs-id>",
"permissions": ["agent:access"]
}
]
}' -
Create the
Booking Userrole.Grant it
booking:read,booking:create, andbooking:cancelonwayfinder:curl -kL -X POST https://localhost:8090/roles \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{
"name": "Booking User",
"description": "Grants booking permissions for the Wayfinder sample",
"ouId": "<organization-unit-id>",
"permissions": [
{
"resourceServerId": "<wayfinder-rs-id>",
"permissions": ["booking:read", "booking:create", "booking:cancel"]
}
]
}' -
Create the
Recommenderrole.Grant it
booking:recommendonwayfinder. This role will be assigned to the Wayfinder Concierge in a later step, not to a user:curl -kL -X POST https://localhost:8090/roles \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{
"name": "Recommender",
"description": "Grants the booking:recommend permission to the Wayfinder Concierge",
"ouId": "<organization-unit-id>",
"permissions": [
{
"resourceServerId": "<wayfinder-rs-id>",
"permissions": ["booking:recommend"]
}
]
}'See Authorization.
-
Create the
Customeruser type.Navigate 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.
- Roles → Chat User → Assignments tab → Add assignment. Pick User and assign
john.doe. - Roles → Booking User → Assignments tab → Add assignment. Pick User and assign both
john.doeandjane.smith.
- Roles → Chat User → Assignments tab → Add assignment. Pick User and assign
-
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.
Build the Agent Authentication Flow
The Wayfinder sample uses an authentication flow to sign customers in and collect consent when they use the agent. This is separate from the Administration flow that an administrator runs to create the agent. Use an existing authentication flow with these steps, or configure the sample's flow below.
In Flows, create an Authentication flow named Wayfinder Agent Sign-in with these steps:
- A
PROMPTnode asking for username and password. - A
TASK_EXECUTIONnode runningCredentialsAuthExecutor. - A
TASK_EXECUTIONnode runningAuthorizationExecutor. - A
TASK_EXECUTIONnode runningConsentExecutor, with a consent prompt on its incomplete path. Route both consent decisions back to the executor. - A
TASK_EXECUTIONnode runningAuthAssertExecutoron success, followed byEND.
Use the wayfinder-agent-auth-flow definition in the sample distribution's thunderid-config/redirect/thunderid-config.yaml as the complete wiring reference. See Build a Multi-Factor Sign-In Flow for using the builder.
Register the Wayfinder Concierge Agent
For agent creation, use an Administration flow with Delegated Agent Details and Delegated mode enabled on Provisioning, or Choose Agent Mode for an administrator-selected mode. The OBO and Choose Mode templates include these settings. Set this onboarding flow as the Console default.
- Navigate to Agents. Click Add agent.
- Select the organization unit and owner when prompted. In Agent Details, set the Name schema attribute to
WAYFINDER-CONCIERGE. - If the flow asks for a mode, select Act on behalf of a signed-in user.
- Set Authorized redirect URIs to
http://localhost:5173/agent-callback. For Login flow, select Wayfinder Agent Sign-in or the existing authentication flow you configured for the sample. Select Customer as the User type. - Complete onboarding. Copy the client ID and client secret for
ai-agent/.env; the secret is shown only once. - In Roles → Recommender → Assignments, click Add assignment. Select Agent and assign
WAYFINDER-CONCIERGE.
The Administration flow saves these settings during creation. It does not run the customer's sign-in flow. See Create and Manage Agents for subsequent changes.
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.