PledgeDocumentation
Product site ↗

Administer

Identity and browser sign-in

Connect an OIDC provider and publish the tenant sign-in configuration.

On this page

Prepare the provider

Register a confidential OIDC client for Pledge. Use the environment’s HTTPS origin and redirect URI https://claims.example.com/session/callback. The implementation uses the authorization-code flow with PKCE and authenticates the token request using the client secret.

Ensure Pledge can reach the issuer discovery endpoint, token endpoint, and JWKS endpoint over verified HTTPS. For a private identity provider, configure the specific allowed network in egress.allowedNetworks and ensure outbound CA trust; a Kubernetes egress rule alone does not bypass the application’s endpoint policy.

Store the client secret

The identity document contains a reference, not a credential. Provision the tenant’s secret through the configured tenant secret store. The identity adapter resolves the secret under the tenant’s identity path and pins its version when validating the draft. Keep that version available for the configuration that names it.

Prepare identity.json

{
  "issuer": "https://login.example.com/realms/acme",
  "client_id": "pledge",
  "client_secret": {"secret": "client_secret"},
  "subject_claim": "sub",
  "session_hours": 8,
  "signing_keys": {"max_age_secs": 3600, "stale_secs": 300}
}
Field Contract
issuer HTTPS OIDC issuer
client_id Nonempty client ID, at most 255 characters
client_secret.secret Tenant identity secret field reference
subject_claim Stable subject claim; defaults to sub
session_hours 1–720 hours; defaults to 8
signing_keys.max_age_secs 1–604800 seconds
signing_keys.stale_secs 0–604800 seconds of stale-key use when refresh fails

Choose key-cache settings according to your organization’s identity availability and rotation requirements; these example values are not mandatory defaults.

Validate, save, and activate

Follow configuration lifecycle with family identity. Validation checks the input, resolves the secret, and discovers the provider. Publishing the version makes it available for new sign-ins.

Set api.publicBaseUrl to the externally reachable HTTPS origin. Optionally set api.browserTenant to acme for a single-tenant browser entry point. Otherwise the user can identify the tenant at /session?tenant=acme.

Create the reviewer or administrator in tenants and principals, then link its provider identity. The subject is the issuer, a literal |, and the value of the configured subject claim. Obtain that value from your IdP; do not use a display name as a substitute.

curl --fail-with-body --cacert "$CA_CERT" -H @pledge-auth.header \
  -H 'Content-Type: application/json' -X PUT "$API/principals/acme.reviewer" \
  --data '{"display_name":"Claims reviewer","subject":"https://login.example.com/realms/acme|replace-with-idp-subject"}'

A null or omitted subject removes browser sign-in from that principal. Preserve the existing subject when updating only a display name.

Verify access

Sign in as a member and a separately provisioned staff principal. Confirm each receives the appropriate workspace and permissions. A successful provider login does not grant reviewer or administrator privileges: Pledge’s directory and Cedar policies determine authority.

Test logout, a disabled principal, and an expired session. If sign-in fails, check issuer matching, audience/client ID, redirect URI, clock synchronization, secret version availability, and provider connectivity. Never change the subject mapping casually: it determines which person an identity represents.

Pledge documentation · Use the documentation and artifacts for your deployed release.