Documentation base URLs use placeholder https://{your-tenant}.sso.id. Log in to show your tenant or custom domain.
Log in for Your Tenant URL
Chapter 3B — Enterprise OIDC Federation

OpenID Connect (OIDC) Enterprise Connections

Federate with enterprise workforce directories — including Microsoft Entra ID (Azure AD), Okta, Auth0, Keycloak, PingFederate, and OneLogin — using automatic .well-known/openid-configuration discovery, JWKS cryptographic validation, group-to-role mapping, and SCIM 2.0 provisioning.

Enterprise Story: Onboarding a 5,000-Seat Microsoft Entra ID Customer

Why Modern Enterprises Prefer OIDC Federation + SCIM 2.0

When Apex Healthcare subscribed to CloudPulse, their IT team used Microsoft Entra ID (Azure AD). Instead of manually exchanging X.509 certificates, Apex gave CloudPulse their Entra Tenant ID (contoso.onmicrosoft.com), Client ID, and Client Secret.

In /connections, CloudPulse pasted the Entra OIDC Discovery URL (https://login.microsoftonline.com/{tenant}/v2.0/.well-known/openid-configuration), clicked Fetch Discovery Metadata, verified the connection live with Test Connection, and mapped Entra Security Groups directly to CloudPulse RBAC Roles.

1. Automatic OIDC Discovery & Endpoint Population

When creating an OIDC Connection in /connections, you can either use a provider template (GET /api/connections/defaults) or paste the external IdP's Issuer / Discovery URL:

Flow Diagram Enterprise OIDC Auto-Discovery & Federation Sequence
sequenceDiagram autonumber participant User as End User participant SSO as SSO.ID Broker (/connections) participant Entra as Microsoft Entra / Okta OIDC User->>SSO: Selects Enterprise OIDC Connection SSO->>Entra: GET /authorize (PKCE S256, openid, profile, groups) Entra->>User: Corporate Login & MFA Challenge Entra-->>SSO: 302 Callback with code SSO->>Entra: POST /token (code + secret/PKCE) Entra-->>SSO: Upstream id_token + access_token SSO->>SSO: Validate JWKS signature & Map Claims to Roles SSO-->>User: Issue SSO.ID Session Token
SSO.ID fetches the upstream IdP metadata, brokers the OAuth code exchange with PKCE, maps claims, and JIT-provisions the user into the tenant.
1

Provide Issuer & Discovery URL

Enter the external IdP's .well-known/openid-configuration URL. SSO.ID automatically resolves the authorization_endpoint, token_endpoint, userinfo_endpoint, end_session_endpoint, and jwks_uri.

2

Configure Scopes, Response Type & PKCE

Default scopes include openid profile email groups offline_access. SSO.ID supports both confidential back-channel code exchange (response_type=code) with PKCE (S256) and id_token validation against the upstream IdP's JWKS keys.

2. Common Enterprise OIDC Provider Settings

Enterprise IdP Discovery Endpoint Pattern Redirect URI to Register in Customer's IdP
Microsoft Entra ID (Azure AD) https://login.microsoftonline.com/{tenant-id}/v2.0/.well-known/openid-configuration https://{your-tenant}.sso.id/auth/oidc/callback (or custom domain)
Okta Workforce Identity https://{your-okta-domain}/oauth2/default/.well-known/openid-configuration https://{your-tenant}.sso.id/auth/oidc/callback
Keycloak https://{keycloak-host}/realms/{realm}/.well-known/openid-configuration https://{your-tenant}.sso.id/auth/oidc/callback
Auth0 / Ping / OneLogin https://{domain}/.well-known/openid-configuration https://{your-tenant}.sso.id/auth/oidc/callback

3. Mapping OIDC groups & roles Claims to SSO.ID RBAC

Enterprise OIDC providers emit a groups or roles array inside the id_token or userinfo response. In the Mappings tab of the Connection dialog:

  • Map the incoming claim name (e.g., groups or roles) to SSO.ID's Role/Group resolver.
  • Define explicit mappings (e.g., External Group a1b2c3d4-entra-group-id → SSO.ID Role Billing Administrator).
  • Pair with SCIM 2.0 (https://{your-tenant}.sso.id/api/scim/v2/connections/{connectionId}) so group changes and deactivations happen even when the user is offline.

4. AI Agent Prompt for Enterprise OIDC Onboarding

OpenID Connect (OIDC) Discovery, JWKS & Federation API Specifications

Below is the complete parameter-level specification for every endpoint in this module. Tenant context is automatically resolved from the signed Bearer JWT token claims or the tenant domain URL (no custom tenant header is required).

GET https://{your-tenant}.sso.id/auth/.well-known/openid-configuration
Public Discovery

OpenID Connect Discovery 1.0 Metadata endpoint. Returns issuer identifier, authorization/token/userinfo/logout endpoints, supported scopes, signing algorithms, and PKCE methods.

Request Parameters
Parameter Type Required Description & Constraints
appId Query string (UUID) Optional Optional Application UUID to scope the JWKS URI and supported claims to a specific application.
Response Fields & Schema
Field Type Description
issuer string (URL) Canonical OIDC Issuer URL.
authorization_endpoint string (URL) OAuth 2.0 / OIDC Authorize URL.
token_endpoint string (URL) OAuth 2.0 / OIDC Token URL.
userinfo_endpoint string (URL) OIDC UserInfo URL.
end_session_endpoint string (URL) RP-Initiated Logout URL.
jwks_uri string (URL) Public JSON Web Key Set URL.
response_types_supported array Supported OAuth response types (code, id_token, token).
grant_types_supported array Supported grant types (authorization_code, refresh_token, client_credentials, password).
code_challenge_methods_supported array Supported PKCE methods (S256, plain).
id_token_signing_alg_values_supported array Supported JWS signing algorithms (RS256).
Sample Request
curl -X GET "https://{your-tenant}.sso.id/auth/.well-known/openid-configuration?appId=app_7712b"
Expected Response 200 OK
{
  "issuer": "https://{your-tenant}.sso.id/auth",
  "authorization_endpoint": "https://{your-tenant}.sso.id/auth/oauth/authorize",
  "token_endpoint": "https://{your-tenant}.sso.id/auth/oauth/token",
  "userinfo_endpoint": "https://{your-tenant}.sso.id/auth/oauth/userinfo",
  "end_session_endpoint": "https://{your-tenant}.sso.id/auth/oauth/logout",
  "jwks_uri": "https://{your-tenant}.sso.id/auth/.well-known/jwks.json?appId=app_7712b",
  "response_types_supported": ["code", "id_token", "code id_token"],
  "grant_types_supported": ["authorization_code", "refresh_token", "client_credentials", "password"],
  "code_challenge_methods_supported": ["S256"],
  "id_token_signing_alg_values_supported": ["RS256"]
}
GET https://{your-tenant}.sso.id/auth/.well-known/jwks.json
Public Discovery

RFC 7517 JSON Web Key Set (JWKS) endpoint exposing active public RSA signing keys used by applications and API gateways to verify SSO.ID JWT access_token and id_token signatures offline.

Request Parameters
Parameter Type Required Description & Constraints
appId Query string (UUID) Optional Optional Application UUID to include application-specific rotated signing keys.
Response Fields & Schema
Field Type Description
keys array Array of active public JSON Web Keys.
keys[].kty string Key type (RSA).
keys[].use string Public key use (sig for signature verification).
keys[].alg string Algorithm (RS256).
keys[].kid string Unique Key Identifier matching the JWT header kid.
keys[].n string (Base64URL) RSA public modulus.
keys[].e string (Base64URL) RSA public exponent (AQAB).
keys[].x5c array X.509 certificate chain.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/auth/.well-known/jwks.json?appId=app_7712b"
Expected Response 200 OK
{
  "keys": [
    {
      "kty": "RSA",
      "use": "sig",
      "alg": "RS256",
      "kid": "ssoid-2026-key-01",
      "n": "x9v8b7n6m5k4j3h2g1f0d9s8a7p6o5i4u3y2t1r0e9w8q7...",
      "e": "AQAB"
    }
  ]
}
POST https://{your-tenant}.sso.id/api/connections
Bearer JWT

Programmatically provisions an Enterprise OpenID Connect (OIDC) Connection (such as Microsoft Entra ID, Okta, PingFederate, or Keycloak) with automated Discovery URL resolution and JIT Group-to-Role mappings.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
connectionName Body string Required Display name for the OIDC connection.
protocolType Body integer Required Must be set to 2 for OpenID Connect.
metadataUrl Body string (URL) Required External IdP's /.well-known/openid-configuration discovery URL.
clientId Body string Required Client ID registered in the external OIDC IdP.
clientSecret Body string Required Client Secret registered in the external OIDC IdP.
signInUrl Body string (URL) Optional Authorization endpoint (auto-populated when metadataUrl is provided).
accessTokenUrl Body string (URL) Optional Token endpoint (auto-populated when metadataUrl is provided).
userInfoUrl Body string (URL) Optional UserInfo endpoint (auto-populated when metadataUrl is provided).
jwksUrl Body string (URL) Optional JWKS endpoint (auto-populated when metadataUrl is provided).
attributes Body string (JSON) Optional JSON claim and group mapping configuration.
Response Fields & Schema
Field Type Description
connectionId string (UUID) Generated Connection UUID (used in callback https://{your-tenant}.sso.id/auth/oidc/callback and direct routing ?connectionId=...).
connectionName string Configured connection name.
protocolType integer 2 (OIDC).
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/connections" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "connectionName": "Global Retail Okta OIDC",
    "protocolType": 2,
    "connectionType": 2,
    "metadataUrl": "https://globalretail.okta.com/.well-known/openid-configuration",
    "clientId": "0oa9918273645",
    "clientSecret": "okta_client_secret_99182",
    "attributes": "{\"email\":\"email\",\"firstName\":\"given_name\",\"lastName\":\"family_name\",\"roleMappings\":{\"Okta-Admins\":\"rol_admin_01\"}}"
  }'
Expected Response 201 Created
{
  "connectionId": "con_99182a3b-44c5-4d6e-8f90-aabbccddeeff",
  "connectionName": "Global Retail Okta OIDC",
  "protocolType": 2,
  "createdOn": "2026-11-19T12:30:00Z"
}
AI Agent Prompt Automate Enterprise Customer OIDC Connection Onboarding via SSO.ID API
You are an enterprise SaaS platform engineer. Build a self-service **"Configure Enterprise OIDC SSO"** wizard inside our B2B customer admin portal that calls **SSO.ID v2** (`https://{your-tenant}.sso.id/api`).

### Workflow to Implement
1. Collect from the customer IT admin:
   - `providerName` (e.g. `Microsoft Entra ID`, `Okta`, `Keycloak`)
   - `discoveryUrl` (`https://.../.well-known/openid-configuration`)
   - `clientId` and `clientSecret`
   - `scopes` (default `openid profile email groups`)
2. Call `POST https://{your-tenant}.sso.id/api/connections/test` with their OIDC configuration to validate their Discovery URL and credentials before saving.
3. Call `POST https://{your-tenant}.sso.id/api/connections` with `assignToOrganizationOnly: true` and `organizationId: `, enabling `autoProvisionUsers: true`.
4. Link the newly created `connectionId` to the customer's Organization via `POST https://{your-tenant}.sso.id/api/organizations//connections` and display their dedicated SCIM 2.0 endpoint (`https://{your-tenant}.sso.id/api/scim/v2/connections/${connectionId}`).