Skip to Content
Xeonr Developer Docs

Delegation

A product can offer profile settings inside its own UI — XMB's Settings carries a "Public profile" panel — without ever holding a profiles session. The mechanism is RFC 8693 token exchange against Xeonr Auth.

How it works

  1. The product requests the profiles scopes at login. Its OAuth client carries an application binding to the profiles application, so profiles:profile:read profiles:profile:edit may join its grant. Both scopes are delegatable; nothing else on the profiles surface is. profiles:profile:edit was called profiles:profile:write until November 2026. The old name is accepted only while grants that carry it are still live, so request edit.
  2. The browser exchanges the session token. A POST to the token endpoint with grant_type=urn:ietf:params:oauth:grant-type:token-exchange, the product session token as subject_token, and the public profiles-delegated client as client_id. The auth server checks the delegator allowlist and that every requested scope is present in the subject token and delegatable.
  3. The result is a confined credential: audience profiles-api.xeonr.io, one-hour lifetime, no refresh token (re-exchange from the live session instead), and an act claim naming the delegating client.
  4. The profiles API narrows it further: a delegated token may only read and write preference keys under the delegating product's own namespace (xmb.* for XMB). Profile identity, visibility and deletion are structurally out of reach — their scopes never survive an exchange. A delegated token calls MeService.GetMyProfile and MeService.SetMyWidgetPreferences in the xeonr.profiles.v2 package.

Failure modes worth handling

  • invalid_scope at exchange: the user's session predates the profiles scopes joining the login request — a fresh sign-in fixes it.
  • 401 from the profiles API: the exchanged token aged out; drop it and re-exchange.
  • Writes outside your namespace: permission_denied, by design.

On this page