Skip to content

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.

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.

  1. 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.

  2. 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

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:

ProviderConfigurationGuide
Microsoft Entra IDAGENTCUBE_CE_OIDC_PROVIDER=azureEntra setup
Okta, Auth0, Keycloak, or any OIDC providerAGENTCUBE_CE_OIDC_PROVIDER=oidcGeneric OIDC setup
  1. Configure your identity provider — Register one application for AgentCube, with its redirect URI pointed at the Context Engine
  2. Set up OCI Identity Domain — Create a confidential app and import the signing certificate
  3. Generate the signing key — Create the RSA key pair for Oracle token exchange
  4. Deploy and configure — Set AGENTCUBE_CE_AUTH_MODE=oidc and AGENTCUBE_CE_INTERNAL_SIGNING_KEY on the Context Engine, run each per-user connector with AGENTCUBE_AUTH_MODE=internal and AGENTCUBE_INTERNAL_AUDIENCE={connector_url} (and register it in the Context Engine with auth mode internal and the same value as its audience), then deploy. The variables are listed in Environment Variables.
  5. Verify — Test the full authentication chain
  6. Optional: admin single sign-on — With AGENTCUBE_CE_AUTH_MODE=oidc set, 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.

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:

ComponentShared across connectors?Notes
Identity provider app registrationYes — one appRegister 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 pairYesThe same key pair signs the Oracle token-exchange assertions. Upload the public certificate once per OCI Identity Domain.
OCI confidential applicationOne per Identity DomainEach 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:

  1. Deploy the new connector and register/bind it with the Context Engine
  2. If on a different OCI tenant: create a new OCI confidential app and upload the same signing certificate
  3. Run the connector with AGENTCUBE_AUTH_MODE=internal and set its AGENTCUBE_INTERNAL_* variables (with AGENTCUBE_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/FCCS OCI_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.

  • 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 email claim, then preferred_username, upn and sub; an email the identity provider marks unverified is ignored, so those users resolve to sub)