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
- What is Choreo Agent Manager? Not started In progress Done
- JWT, JWKS, issuer, audience and scope Not started In progress Done
On this page
You open the ConsoleAgent Manager's web interface, a single page app that runs in your browser and calls the Agent Manager service for its data.See it in the glossary 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, ThunderIDThe open source identity server Agent Manager uses to sign people and services in and to issue signed tokens. The older name Thunder survives in some chart and folder names.Analogy:The passport office that issues the signed documents every checkpoint reads.See it in the glossary and AMS (agent-manager-service)The central Go service of Agent Manager. It offers the REST API used by the console and amctl and coordinates OpenChoreo, gateways and identity.Analogy:The operations manager who schedules everything but never touches an aircraft.See it in the glossary.
This lesson covers the on-prem sign-in. Choreo Cloud has its own sign-in service, which is not shown here.
The sign-in, in six moves
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.
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 Public clientAn application that cannot keep a secret, such as a web app in your browser. ThunderID registers the console as one, so it uses PKCE and has no client secret.See it in the glossary: it runs in your browser, so it cannot keep a secret. Instead it uses the authorization code flow with PKCEA safety step for sign-in in a browser app. The app makes a one-time secret, shows only its fingerprint first, and proves it holds the secret at the end.Analogy:Tearing a ticket in two: the counter keeps one half, and only the holder of the other half can collect the parcel.See it in the glossary.You sign in on ThunderID
The login page belongs to ThunderID. Your credentials are typed there and handled there.
The console gets your tokens
ThunderID sends your browser back to the console’s
/loginpage with a short-lived code. The console trades that code for tokens. ThunderID is set up to put your organisation in them as theouIdandouHandleclaims, and the console client is registered for theamp:*permission scopes.The first calls to AMS
First the console asks
GET /api/v1/configfor a few public settings, such as the address of the observer service. This route needs no token. Then it callsGET /api/v1/orgswith the token in the Authorization header.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:viewfor 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.
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/configneeds 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.
Wrap up
Recap
Tick each one when you could explain it to a colleague.
Finished?
Chapter complete. Every lesson in this chapter is done.
Progress cannot be saved in this browser, so it will be forgotten when you leave this page.
Quick check
Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)