Skip to main content

Set Up Sample Application

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

Complete the setup once. Every walkthrough below builds on the same starting point.

Before you begin, make sure you have:

  • A Choreo Identity & Access Management tenant that allows http://localhost:5173 to call it from the browser. In the Console, switch to the organization view and go to Configurations. On the CORS tab, under Allowed origins, click Add origin, enter the origin, and click Save changes.

  • The Wayfinder sample distribution. The Get Choreo Identity & Access Management step above already pulls the archive that ships it. It contains a thunderid-config/redirect/ bundle with an importable YAML config and a thunderid.env file, plus the Wayfinder web frontend and the Concierge services.

  • Node.js 20+ for running the sample's services.

  • An LLM API key. One of an Anthropic API key from console.anthropic.com or a Google Gemini API key from aistudio.google.com.

Import the Wayfinder configuration bundle.

  1. Edit thunderid-config/redirect/thunderid.env if you want to change the agent's client secret. The default value (wayfinder-agent-secret) matches the sample's defaults.

  2. Import the bundle into Choreo Identity & Access Management.

    • Sign in to the Choreo Identity & Access Management Console at https://console.cloud.choreolabs.com/iam/.
    • On first sign-in, a welcome screen appears with an Open button. (Later, reach the same screen from the user profile menu in the top-right corner of the Console.)
    • Click Open and select your thunderid-config/redirect/thunderid-config.yaml file from the sample distribution.
    • Select your thunderid-config/redirect/thunderid.env file to provide the environment variables referenced in the YAML.
    • The Console imports the files and reports the resources it created when the import completes.

    The bundle creates everything the sample needs. What these walkthroughs use:

    • Resource servers: wayfinder-agent (identifier http://localhost:8790/chat, with agent:access) and wayfinder (identifier http://localhost:8787/mcp, with booking:read, booking:create, booking:cancel, booking:recommend).
    • Default resource server: set to wayfinder, so web sign-in tokens that omit resource are bound to the booking API. The chat widget sends resource=http://localhost:8790/chat, and the agent sends resource=http://localhost:8787/mcp for MCP calls.
    • Roles: Chat User, Booking User, and Recommender, with users and the agent pre-assigned:
      • Chat User → john.doe.
      • Booking User → john.doe and jane.smith.
      • Recommender → WAYFINDER-CONCIERGE.
    • Application: WAYFINDER (public, PKCE, redirects to http://localhost:5173 and /chat-token-callback).
    • Agent: WAYFINDER-CONCIERGE (confidential client with the client_credentials and authorization_code grants).
    • Flow: Wayfinder Agent Authentication Flow (assigned to the agent).
    • Users: john.doe / john.doe and jane.smith / jane.smith (typed as Customer).
  3. Start the sample following the commands in its README.

Walkthrough Structure​

Each walkthrough below starts from the setup above. The walkthroughs map onto the patterns from Understand It, so you can read about a pattern and then run it.

Select a walkthrough to begin:

Was this page helpful?