Protocol and deployment notes · Deployment

Dynamic Client Registration deployment profile

On this pageZero-trust admission modelSupported RFC metadataOperator exampleFailure and evidence behaviorStandards boundary

Atlas implements a governed public-client profile of OAuth 2.0 Dynamic Client Registration (RFC 7591) and the registration management lifecycle described by RFC 7592. The protocol endpoint is part of each tenant authorization-server issuer:

POST   /oauth2/{tenant-or-server}/v1/register
GET    /oauth2/{tenant-or-server}/v1/register/{client_id}
PUT    /oauth2/{tenant-or-server}/v1/register/{client_id}
DELETE /oauth2/{tenant-or-server}/v1/register/{client_id}

Discovery publishes registration_endpoint only when the governed API-access authority is present. Production startup already requires that authority; a standalone test service without it does not advertise registration.

Zero-trust admission model

Dynamic registration does not make an application trusted and does not grant access by itself.

  1. An AAL3 Atlas operator creates an API credential through the standard /api/v1/oauth2/api-tokens API with the single register:oauth-client scope and one or more non-zero allowed CIDRs.
  2. A different AAL3 operator activates that credential with a recorded reason.
  3. The caller sends the one-time-revealed value as the RFC bearer initial access credential to the registration endpoint. Atlas binds use to the exact tenant, POST route, direct peer address, expiry, inactivity window, and a fresh signed request proof.
  4. Atlas creates a public client in draft / pending state. It cannot authorize or obtain tokens until a different Atlas operator approves it through the normal /api/v1/oauth2/clients/{client_id}/approve API.
  5. The registration response returns a separate registration access token once. Atlas retains only its Ed25519 public verification key. The gateway converts each bearer presentation into a method-, path-, source-, time-, and nonce-bound proof before the value crosses the service boundary.
  6. Any metadata replacement returns the client to pending; prior approval is never carried across a changed redirect, scope, name, or grant profile.
  7. DELETE revokes the application before revoking its registration credential.

This separates registration authority, client activation, user authentication, and authorization policy. Possession of either registration credential cannot approve the client, act as a user, or bypass PKCE and issuer policy.

Supported RFC metadata

The endpoint deliberately accepts a small interoperable profile:

  • client_name and one to ten exact redirect_uris are required;
  • token_endpoint_auth_method is none;
  • response_types is code;
  • grant_types is authorization_code, optionally with refresh_token;
  • scope must include openid and may add profile, email, and offline_access;
  • refresh_token and offline_access must be requested together;
  • redirect URIs use HTTPS, except an exact HTTP localhost or loopback address with an explicit port for native applications;
  • contacts, software_id, and software_version are retained as bounded descriptive metadata.

Public authorization requests still require S256 PKCE. Client secrets, remote JWKS retrieval, client-supplied keys, software statements, wildcard redirect URIs, arbitrary scopes, implicit responses, and client credentials are rejected. Those features require their own governed custody and acceptance profile; they are not inferred from adjacent Atlas APIs.

Operator example

Create the initial access credential while logged in with a fresh operator session:

POST /api/v1/oauth2/api-tokens
Content-Type: application/json

{
  "name": "Field application registration",
  "scopes": ["register:oauth-client"],
  "allowedCidrs": ["198.51.100.0/24"],
  "inactivityTtlSeconds": 900
}

Retain the returned token once. A different operator activates its apiToken.id:

POST /api/v1/oauth2/api-tokens/{token_id}/activate
Content-Type: application/json

{"reason":"Approved for the field application onboarding window"}

The application can then register:

POST /oauth2/{tenant}/v1/register
Authorization: Bearer {initial_access_token}
Content-Type: application/json

{
  "client_name": "Field operations console",
  "redirect_uris": ["https://field.example.mil/oauth/callback"],
  "token_endpoint_auth_method": "none",
  "grant_types": ["authorization_code", "refresh_token"],
  "response_types": ["code"],
  "scope": "openid profile offline_access",
  "contacts": ["security@example.mil"],
  "software_id": "field-console",
  "software_version": "2.0"
}

The 201 Created response includes client_id, registration_client_uri, a one-time registration_access_token, atlas_approval_status: pending, and the standard Atlas approval API in atlas_activation_uri. Store the registration access token outside Atlas. It cannot be recovered.

GET returns the current metadata without repeating the credential. PUT accepts the complete replacement document and an optional If-Match value from the last response ETag. DELETE accepts no body and returns 204 No Content.

Failure and evidence behavior

All responses are no-store. Invalid, expired, replayed, wrong-tenant, wrong-network, wrong-method, or wrong-path credentials return invalid_token. Unsupported fields or profiles return invalid_client_metadata. Concurrency or ETag drift returns conflict without carrying forward approval. A missing durable client, replay, credential, or rate-limit authority fails closed.

The retained authorization-server Docker gate under artifacts/authorization-server-docker-validation/<run-id>/ proves the JSON gRPC boundary, PostgreSQL restart, independent initial-access activation, CIDR binding, registration proof-of-possession, pending client activation, absence of raw credential persistence, and evidence-bound SQL tamper rejection. It is Atlas runtime evidence, not Okta/Ping interoperability or an OpenID certification claim.

Standards boundary

  • RFC 7591 defines dynamic client registration and registration metadata.
  • RFC 7592 defines registration management with a registration access token.
  • RFC 8252 governs native application loopback redirects.
  • RFC 7636 supplies S256 PKCE for public authorization-code clients.
  • RFC 6750 supplies the external bearer presentation syntax; Atlas strengthens the internal hop with proof-of-possession and one-time request nonces.