Home
Xeonr Auth is the in-house identity provider for authentication and authorization across Xeonr and affiliated projects. It implements OAuth 2.0 and OpenID Connect.
Guides
Protecting a Service
Verify tokens in your resource server, and refuse revoked ones.
Choosing a Grant Type
Which OAuth flow to use for your app.
Access Token Anatomy
What's inside a JWT and how to validate it.
Authorization Code & Implicit
User login for web and mobile apps, with refresh tokens.
Device Code
User login for CLIs and headless devices.
Client Credentials
Backend-to-backend authentication with no user context.
Service Tokens
Trusted internal services with pre-issued service account tokens.
Rich Authorization Requests
Request access to specific resources using authorization_details.
API Reference
Applications
Applications
Authentication
Authentication
Authorisations
Authorisations
Current User
Current User
OAuth Clients
OAuth Clients
xeonr.auth.api.v1.ApiKeysService
ApiKeysService is how a product issues and verifies API keys without implementing them. Every method is for the product's own service account, about the product's own application: a key is created, listed, updated, revoked and verified only by the application it belongs to. Keys are long-lived bearer secrets of the form `xk_<40 chars><6-char checksum>`, stored hashed and returned exactly once. A product presents a key it receives to VerifyApiKey (go-platform's authn does this, with a short cache) and acts on the answer. Auth itself never accepts an API key as a caller credential; a key is only ever a token in VerifyApiKey's request body.
xeonr.auth.api.v1.ApplicationInvitationService
ApplicationInvitationService lets a product invite a person by email to its OWN application (FRG-447): someone outside every team the application is entitled to, whom the product means to give access to one of its own resources (the forge giving a collaborator a repository). It is the email invitation the console's ApplicationService already has (CreateApplicationInvitation), opened to the product's service account: a pending enrollment addressed to the email that becomes a real enrollment on that address's first sign-in to the application, when the signed-in account's VERIFIED email matches. Accepting it enrolls the person in the application and nothing else: it makes them a member of no team, and the invitation carries no roles. Service accounts only, and only a platform application's own: every method refuses a person's token, is confined to the calling service account's application, and needs `auth:application-invitations:manage:own`, which no client holds until an organisation administrator approves it on the product's binding to the auth application. `invited_by_user` is the person in the product who asked; the invitation names them as the inviter (the email says who invited), and the service account is recorded as the actor.
xeonr.auth.api.v1.AutomationKeysService
AutomationKeysService is how a product creates and manages automation keys on a person's behalf (AUTH-191): Lantern's synthetics create the key a flow mints its tokens from. It is the public face of the portal's ApplicationsService automation-key RPCs and runs the same code. The caller is a person's access token carrying auth:automation-keys:manage, a scope a product's client holds through an approved binding to the auth application. The scope alone authorises nothing: each call is also held to the person's own standing on the named application, exactly as the portal is — an organisation administrator may act on any application except auth's own, anybody else only on applications owned by a team they own (listing needs only membership). Anything the person cannot reach answers NotFound. Service accounts and automation keys cannot call it, and neither can a person whose account is itself automation-flagged: a key must never be a route to another key.
xeonr.auth.api.v1.CompaniesService
CompaniesService is the product-facing surface for companies: groups of teams that products attach shared configuration to (runner pools, billing). A product sees a company only when the company owns at least one team entitled to the calling application; any other company answers NotFound. Its owners manage it here (the console); creating and deleting companies and detaching teams are administrators', on xeonr.auth.private.v1.
xeonr.auth.api.v1.ConsoleService
xeonr.auth.api.v1.McpAgentGrantsService
Agent grants (EP-46, AUTH-293; CONTRACTS.md C13.3). A product that runs AI sessions (the starter, e.g. Trellis) mints an agent grant for one session it runs for one person: a connection record bounded by what the person holds, team policy and the catalogue's agent allowance, and scoped to the resources the session needs. The mint is an RFC 8693 exchange at the token endpoint (see C13.3); this service renews the grant's gateway token, revokes it, and shows a person their own grants. A grant's id on every wire is "ag_<id>".
xeonr.auth.api.v1.McpConnectionsService
xeonr.auth.api.v1.McpTeamPolicyService
Team policy and toolset approvals for MCP (C11). None of these is an MCP tool: they are called by the dashboard at mcp.xeonr.io with the person's session token.
xeonr.auth.api.v1.ServiceAccountsService
ServiceAccountsService lets a product create and manage service accounts on its OWN application that belong to one of the teams entitled to it: a team's bot in the forge, say (AUTH-309). Each account is owned by the team, is a member of it with the application team roles asked for, and records the person who asked and the service account that vouched for them. Service accounts only, and only a platform application's own: every method refuses a person's token, is confined to the calling service account's application, and needs `auth:service-accounts:manage:own`, which no client holds until an organisation administrator approves it on the product's binding to the auth application. The acting person (`on_behalf_of_user`) must own the team, or hold the application's team roles: they may give only roles ranked no higher than their own, and a bare membership only if they hold the application's highest-ranked team role. Credentials are not part of this service: a product issues the account's keys through ApiKeysService (owner kind SERVICE_ACCOUNT). A disabled account's keys are refused at verification; deleting one revokes its keys and drops its team memberships.
xeonr.auth.api.v1.SubjectsService
Resolves subject URNs to display identities for services that render other people's and machines' actions — trail's audit log is the first. Not enrollment-scoped (unlike UsersService.BatchGetUsers): an audit log names whoever acted, whether or not they ever used the calling application. It is confined to the caller's organisation and answers lookups only, with nothing to list or filter by.
xeonr.auth.api.v1.TeamsService
xeonr.auth.api.v1.TokenClaimsService
TokenClaimsService answers, for an access token Auth issued, what its teams, companies and authorization_details are (EP-49, AUTH-358, AUTH-413). Those lists leave every token: a service asks here instead of reading a claim, for every kind of token Auth mints. Machine-only: the calling service authenticates with its own service account's access token (authn.TokenSource, jwt-bearer, no resource indicator) holding auth:token-claims:read, and passes the token it was given as request data. It never forwards that token as its bearer, so a token narrowed to another audience, or one without auth:teams:read, resolves the same as any other. A person's token is refused in the handler even if it carries the scope (auth.machine-only-rpcs).
xeonr.auth.api.v1.UsersService
PRIVATEAccounts
Accounts
PRIVATEApplications
Applications
PRIVATEAuthentication
Authentication
PRIVATEOAuth Provider
OAuth Provider
PRIVATEService Accounts
Service Accounts
PRIVATExeonr.auth.private.v1.AuditService
AuditService exposes the per-organisation audit trail, the event-type catalog, and Discord webhook management to organisation admins.
PRIVATExeonr.auth.private.v1.AutomationService
AutomationService is the surface an application automation key can call. Every method here carries allow_automation_keys and accepts NOTHING else: a portal session, an OAuth access token or a service account token is refused, and a key is refused on every method that does not carry the option. The caller acts as the key's bound user, for the clients of the key's application, and nothing more — the same authorization core the consent screen and the MCP tools use decides what is actually granted. Core only. Edge replicas serve a read-only snapshot and do not mount this service; point automation at the core hostname.
PRIVATExeonr.auth.private.v1.BrandingService
Manages an organisation's brand profiles (the list of branded sign-in flows that application clients can select). Organisation administrators only.
PRIVATExeonr.auth.private.v1.ChangeStreamService
ChangeStreamService feeds Xeonr Auth's in-cluster caching proxy (AUTH-324, epic EP-48): a resumable stream of change notices that tell the proxy which cached answers have gone stale, the revocation events it serves on the public feed in auth's place, and the JWKS and discovery documents pushed whole. Machine-only: a service account (or a client acting as itself) holding auth:change-stream:read, for its own organisation only. A person's token is refused in the handler even if it carries the scope (auth.machine-only-rpcs).
PRIVATExeonr.auth.private.v1.CompaniesService
CompaniesService manages companies: groups of teams that products attach shared configuration to. Administrators (auth:teams:admin plus the auth admin role) create and delete companies and detach teams. Company owners edit their company and its members, and adopt teams they also own. Anyone who belongs to a company, or to a team it owns, can see it; to anyone else a company answers NotFound.
PRIVATExeonr.auth.private.v1.InspectService
Read-only diagnostics over the organisation's OAuth configuration, for the caller's own account. These are the per-organisation MCP endpoint's xeonr_simulate_authorize and xeonr_explain_scope as RPCs, so the central MCP gateway can offer them (AUTH-263). Nothing here mints, grants or changes anything.
PRIVATExeonr.auth.private.v1.OrganisationService
PRIVATExeonr.auth.private.v1.PasswordService
PasswordService provides password-based authentication methods
PRIVATExeonr.auth.private.v1.PortalApiKeysService
PortalApiKeysService is the person's view of the API keys products have issued through xeonr.auth.api.v1.ApiKeysService: the keys that act as them, in one place, with the power to revoke or rename them. A team's keys are the team's, listed and managed per team through the public TeamsService (the console's team page). Keys are never CREATED here — only the product can vouch for the resources a key is bound to — so each product's own screen is where a key is minted. Organisation administrators additionally see and revoke every key in the organisation.