ON-PREM CHOREO CLOUD BOTH

What you will learn

  • Say which part checks your password and why it is not the console
  • Follow the sign-in from the first page load to the first protected API call
  • Explain why one call needs no token and the next one does
  • Explain why a hidden menu item is a convenience and not a lock

Before you start

On this page

You open the and sign in. A few seconds later you see your projects. Behind that screen there is one small, careful hand-off between three parts: the console, and .

This lesson covers the on-prem sign-in. Choreo Cloud has its own sign-in service, which is not shown here.

Flow

Console sign-in and first API call

F1 10 steps ON-PREM

A person signs in to the console through ThunderID, receives an access token, and calls to Agent Manager then carry that token.

The sign-in, in six moves

  1. The browser loads the console

    The console is a web page served on port 3000. When its container starts, a small settings file is created from environment variables. It tells the app where to sign in and which client it is.

  2. The console sends you to ThunderID

    The console does not see your password. It sends you to ThunderID and names itself as the application amp-console-client. ThunderID registers that application as a : it runs in your browser, so it cannot keep a secret. Instead it uses the authorization code flow with .

  3. You sign in on ThunderID

    The login page belongs to ThunderID. Your credentials are typed there and handled there.

  4. The console gets your tokens

    ThunderID sends your browser back to the console’s /login page with a short-lived code. The console trades that code for tokens. ThunderID is set up to put your organisation in them as the ouId and ouHandle claims, and the console client is registered for the amp:* permission scopes.

  5. The first calls to AMS

    First the console asks GET /api/v1/config for a few public settings, such as the address of the observer service. This route needs no token. Then it calls GET /api/v1/orgs with the token in the Authorization header.

  6. AMS checks the token

    AMS checks the signature with ThunderID’s public keys, then the issuer and the audience. It then checks that the token carries the scope this route needs: amp:org:view for the list of organisations. On routes that name an organisation in the address, AMS also takes the organisation from the token and not from the address.

Component

Platform ThunderID 1.0.0

Shared or other Identity ON-PREM

The platform ThunderID is the identity provider for people and service accounts in an on-prem Agent Manager install. Users and tools sign in here and get signed tokens (JWTs) that the other components check. OpenChoreo also trusts it as its sign-in issuer. It is one instance per install.

Why the config call is public

The console has to know where the observer service lives before it can show anything. That answer comes from GET /api/v1/config, which is registered outside the token protected routes. It returns settings, not your data.

Everything under /api/v1 that does hold data first passes the token check. AMS keeps no session and no user table, so the token is the proof on each protected call.

Hidden menu items are not locks

After sign-in the console reads the scope claim in your token and hides menu sections whose scopes you lack. This only saves you from clicking something that would fail. The real check is in AMS, which answers 403 insufficient permissions when a token lacks the scope a route needs. The next lesson follows that check.

Your turn

Under Try it, play the flow F1 from step 1. At each step, read the plain sentence first and open the detail only when you want it. Then switch to the token inspector and find the claim that holds your permissions. Finish with the matcher, which pairs each step with its purpose.

Recap

  • ThunderID checks your password. The console only sends you there and receives the tokens.
  • The console is a public client, so it uses PKCE and has no client secret.
  • GET /api/v1/config needs no token. Calls that return data carry the token, and AMS keeps no session.
  • AMS checks the signature, issuer and audience, then checks the route’s scope. On routes with an organisation in the address, the organisation comes from the token.
  • Hiding a menu item is a convenience. The scope check in AMS is the real gate.

Try it

Follow one request

What to do: press Play, or use Next, to walk through the request step by step.

Loading the diagram...

Token inspector

What to do: pick a token, then click a claim to see what it means and who checks it.

Loading the token examples...

Match them up

What to do: pick an item on the left, then its partner on the right.

Loading the matching game...

Watch the story

What to do: scroll, press J and K, or use the Next scene button. The diagram follows the story.

Loading the story...

  1. Agent Manager keeps no user list. AMS has no user table and keeps no sessions. Proof of who you are travels with each protected call to its main API, as a signed token.
  2. You sign in at ThunderID. The console does not check your password. It sends you to ThunderID, and you type your credentials into its login page.
  3. Six things the token says. Who you are (sub), which organisation (ouId and ouHandle), what you may do (scope), who the token is for (aud) and who signed it (iss).
  4. The token rides along. After sign-in the console holds an access token and sends it with its calls to AMS.
  5. AMS checks the signature. AMS fetches ThunderID's public keys and checks that the token was really signed by it. It reuses the keys for a while instead of asking every time.
  6. Then AMS decides what you may do. On routes that name an organisation, AMS takes it from the token's claims, not from the web address. Each route that needs a permission checks that the token's scope list contains it.
  7. Agents get an identity too. When an agent is created, Agent Manager makes an AgentID for it in each environment's ThunderID. The secret goes to a secret store. A platform-hosted agent's pod gets four environment variables: the client id, a reference to the secret, the token endpoint and the scopes.
  8. The agent shows a token to the gateway. The platform only hands the agent its variables. The agent's own code trades its ID and secret at its environment's ThunderID for a short-lived token, and shows that token to the gateway when it calls an MCP proxy.
  9. One idea is still a plan. Acting on behalf of a signed-in user, called OBO, is a design and is not built yet. The identity an agent can use today is its own AgentID.

Wrap up

Recap

Tick each one when you could explain it to a colleague.

Finished?

Quick check

Loading the quick check...

Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)