Sign in to Onde Code with the browser
v1.8.0 adds the endpoints behind "Sign in with Onde" in Onde Code. Chat requests and the existing console routes behave as they did in v1.7.2.
Handing a key to an agent
The agent opens the console's connect page with a loopback address and a PKCE challenge. After you pick an organization and an app, the console calls POST /console/v1/cli/grants with your bearer token and gets a one-time code. The code goes back to the agent in the redirect, and the key itself never appears in a URL.
The agent then swaps the code at POST /v1/cli/token, together with the PKCE verifier and the same redirect address, and receives the app key and your session. This route is public, because the code is the credential. A code is valid for five minutes and works once. A code that is unknown, expired, already used, or sent with the wrong verifier or redirect answers 400 with invalid_grant.
Who can create a grant
Creating a grant needs the same access to the app as opening it in the console, and each grant is recorded in the organization's audit log as app.cli_grant. The database holds only a hash of the code and a sealed copy of the key, so a copy of the database does not yield a key.