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
- 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:editmay join its grant. Both scopes are delegatable; nothing else on the profiles surface is.profiles:profile:editwas calledprofiles:profile:writeuntil November 2026. The old name is accepted only while grants that carry it are still live, so requestedit. - 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 assubject_token, and the publicprofiles-delegatedclient asclient_id. The auth server checks the delegator allowlist and that every requested scope is present in the subject token and delegatable. - 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 anactclaim naming the delegating client. - 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 callsMeService.GetMyProfileandMeService.SetMyWidgetPreferencesin thexeonr.profiles.v2package.
Failure modes worth handling
invalid_scopeat exchange: the user's session predates the profiles scopes joining the login request — a fresh sign-in fixes it.401from the profiles API: the exchanged token aged out; drop it and re-exchange.- Writes outside your namespace:
permission_denied, by design.