Skip to content

Configure and approve an identity registration

Agent identity v2 (#1585) enrolls agents through an OAuth/OIDC client that the identity provider has registered for SupaCloud. SupaCloud never invents that registration. Until a profile is both configured and approved, every browser login, native enrollment, refresh and revocation is refused.

Infra registers the client at the identity provider and supplies one profile per registration. Every value comes from that registration or from the deployment; none has a default.

Field Source
profile_id A stable handle you choose (for example the client purpose). Clients select it.
workspace_id The UUID of the workspace the registration belongs to.
issuer The issuer URL exactly as the provider’s discovery document states it (https).
environment The deployment environment label (production, stage).
configured_version The provider registration version this profile was written against.
registration_mode pre_registered_confidential_browser, pre_registered_public_native or dynamic_client_registration.
client_id The client id the provider issued.
redirect_uri The redirect URI registered for that client.
resource The RFC 8707 resource: this deployment’s MCP URL, <PUBLIC_URL>/api/mcp (https).
audience The access-token audience the provider issues for that resource. SupaCloud sends it as the audience authorization parameter beside resource, so a provider that grants a signed token only for an explicitly requested audience issues one.
scopes The scopes the registration grants.
token_endpoint_auth_method As registered (none for a public native client).
access_token_format jwt_jwks (a JWKS-verified JWT) or opaque_introspection.
algorithms The signing algorithms the provider uses (for example RS256, ES256).
authorization_endpoint, token_endpoint From the provider’s discovery document (https).
introspection_endpoint, revocation_endpoint Optional; from discovery, when the provider offers them.
introspection_client_id, introspection_credential_handle Optional; the resource-server client for introspection, see below.
advertised Optional; the capabilities the provider advertises and you qualified (authorization_code, pkce_s256, resource_parameter, audience_parameter, refresh_token, …). A registration needs one of the two parameters, so the access token can name this resource. Name resource_parameter only for a provider that implements RFC 8707.
client_secret_required, refresh_rotation, family_revocation_supported Optional booleans; false unless the registration says otherwise.
sender_constrained Optional; true binds every access token to the client’s key (RFC 9449 DPoP). Every request must then carry a DPoP proof, and a token presented as a plain bearer is refused. It needs dpop in advertised and a token_endpoint: without dpop the profile admits no request at all. A native installation creates its own P-256 key at sign-in, keeps it in its protected credential store, and signs a proof for the issuer’s token endpoint on every exchange and refresh; SupaCloud forwards that proof and accepts only a DPoP token whose cnf.jkt names the same key. The issuer must support RFC 9449 at its token endpoint. false (the default) admits bearer tokens and refuses the DPoP scheme.

The resource-server credential is never part of the profile. When introspection_credential_handle is H, SupaCloud reads SUPACLOUD_IDENTITY_RS_<H>_CLIENT_ID and SUPACLOUD_IDENTITY_RS_<H>_CLIENT_SECRET at use time. The handle uses only A-Z, 0-9 and _.

  1. Declare the profiles. Set SUPACLOUD_IDENTITY_REGISTRATION_PROFILES to a JSON array of profiles, either as an environment variable or in the supacloud/app vault map (see OpenBao secret backend). The server reads it on every identity request, so a change needs no restart. Unknown fields, a duplicate profile_id, a cleartext endpoint or an empty algorithm list refuse the whole document.

  2. Review. As an instance admin, open Admin › Identity registrations or call GET /api/admin/identity/registration-profiles. Each profile carries its config_digest (SHA-256 of the document in force) and its current approval. A refused document is reported in configuration_error by reason, never by value.

  3. Approve. After you have qualified the registration against the provider, choose Approve on its card, or call POST /api/admin/identity/registration-profiles/{profile_id}/approve with the body {"config_digest": "<the digest you reviewed>", "installed_version": "<the installed provider version>"}. A digest that differs from the profile in force is refused with 409. The approval applies from the next identity request on every replica and is audited as identity.registration_approve.

  4. Withdraw when needed: POST /api/admin/identity/registration-profiles/{profile_id}/revoke takes the profile out of service on the next request (identity.registration_revoke).

The Identity registrations tab of the owner console with its Refresh button. No registration profile is configured here, so the tab names the SUPACLOUD_IDENTITY_REGISTRATION_PROFILES setting; a configured profile appears as a card with its digest, approval state and Approve action.The Identity registrations tab of the owner console with its Refresh button. No registration profile is configured here, so the tab names the SUPACLOUD_IDENTITY_REGISTRATION_PROFILES setting; a configured profile appears as a card with its digest, approval state and Approve action.