SSO Setup Overview
SSO (Single Sign-On) enables per-user authentication through your corporate identity provider. Each user authenticates with their own credentials, and the data source’s security profiles determine what data they can access.
How SSO Works
Section titled “How SSO Works”AgentCube SSO uses a two-layer authentication model. The Context Engine is the single inbound point — the AI platform authenticates against it, and it carries the verified identity through to the connector and on to Oracle.
-
Layer 1 — Inbound Authentication: The AI platform (Claude, Copilot Studio) initiates an OAuth flow with your identity provider. The user authenticates via corporate SSO, and the Context Engine receives and validates a token carrying the user’s identity.
-
Layer 2 — Oracle Token Exchange: The verified identity is carried to the connector, which exchanges it for an Oracle-scoped access token via the OCI Identity Domain. The Oracle REST call is made as the authenticated user.
sequenceDiagram
participant User
participant AI as AI Platform
participant IdP as Identity Provider
participant CE as Context Engine
participant Conn as Connector
participant OCI as OCI Identity Domain
participant Oracle as Oracle EPM
User->>AI: Ask a question
AI->>IdP: OAuth flow
IdP->>User: Corporate login page
User->>IdP: Enter credentials
IdP->>AI: Identity token ([email protected])
AI->>CE: MCP request + identity token
CE->>CE: Validate token, resolve user
CE->>Conn: Routed call + user identity
Conn->>OCI: JWT assertion (user identity)
OCI->>Conn: Oracle access token
Conn->>Oracle: REST call (as authenticated user)
Oracle->>Conn: User-scoped data
Conn->>CE: Results
CE->>AI: Response
AI->>User: Answer with real data
Supported Identity Providers
Section titled “Supported Identity Providers”SSO requires AGENTCUBE_CE_AUTH_MODE=oidc on the Context Engine. The default, basic, leaves the MCP endpoint without sign-in, so use basic only on a private network or behind a gateway. Under basic the Context Engine refuses to start if any AGENTCUBE_CE_OIDC_* variable is set. With oidc on, pick the provider:
| Provider | Configuration | Guide |
|---|---|---|
| Microsoft Entra ID | AGENTCUBE_CE_OIDC_PROVIDER=azure | Entra setup |
| Okta, Auth0, Keycloak, or any OIDC provider | AGENTCUBE_CE_OIDC_PROVIDER=oidc | Generic OIDC setup |
Setup Steps
Section titled “Setup Steps”- Configure your identity provider — Register one application for AgentCube, with its redirect URI pointed at the Context Engine
- Microsoft Entra ID
- Generic OIDC
- Entra ID users on OCI-hosted EPM: also see Entra ID to OCI Federation
- Set up OCI Identity Domain — Create a confidential app and import the signing certificate
- Generate the signing key — Create the RSA key pair for Oracle token exchange
- Deploy and configure — Set
AGENTCUBE_CE_AUTH_MODE=oidcandAGENTCUBE_CE_INTERNAL_SIGNING_KEYon the Context Engine, run each per-user connector withAGENTCUBE_AUTH_MODE=internalandAGENTCUBE_INTERNAL_AUDIENCE={connector_url}(and register it in the Context Engine with auth modeinternaland the same value as its audience), then deploy. The variables are listed in Environment Variables. - Verify — Test the full authentication chain
- Optional: admin single sign-on — With
AGENTCUBE_CE_AUTH_MODE=oidcset, admins can also sign in to the Context Engine admin console with your identity provider. No extra identity provider setup is needed; add each admin under Admin & Security → Users. See Context Engine admin accounts.
Multi-Connector Deployments
Section titled “Multi-Connector Deployments”Because the AI platform connects to a single Context Engine endpoint, adding more Oracle systems behind it does not multiply your inbound SSO setup. Several components are shared:
| Component | Shared across connectors? | Notes |
|---|---|---|
| Identity provider app registration | Yes — one app | Register one application whose redirect URI targets the Context Engine. The AI platform authenticates against the Context Engine once, regardless of how many connectors sit behind it. |
| RSA signing key pair | Yes | The same key pair signs the Oracle token-exchange assertions. Upload the public certificate once per OCI Identity Domain. |
| OCI confidential application | One per Identity Domain | Each OCI Identity Domain requires its own confidential application. Connectors on different tenants each need their own OCI app. |
This means adding a second Oracle system to an existing SSO deployment only requires:
- Deploy the new connector and register/bind it with the Context Engine
- If on a different OCI tenant: create a new OCI confidential app and upload the same signing certificate
- Run the connector with
AGENTCUBE_AUTH_MODE=internaland set itsAGENTCUBE_INTERNAL_*variables (withAGENTCUBE_INTERNAL_AUDIENCE={connector_url}, the same audience you give it in the Context Engine) and Oracle token-exchange variables (OCI_TOKEN_ENDPOINT,OCI_CLIENT_ID,OCI_CLIENT_SECRET, and for Planning/FCCSOCI_RESOURCE_SCOPE). See Environment Variables.
No change to the inbound IdP app registration is needed — the Context Engine remains the single point the AI platform authenticates against.
Prerequisites
Section titled “Prerequisites”- An OIDC-compliant identity provider (Entra ID, Okta, Auth0, Keycloak, etc.)
- An OCI Identity Domain (free tier is sufficient)
- Users in the OCI Identity Domain with usernames matching their corporate email addresses (the Context Engine takes the username from the token’s
emailclaim, thenpreferred_username,upnandsub; an email the identity provider marks unverified is ignored, so those users resolve tosub)