Auth Mode Management
The Context Engine establishes the caller’s identity at the inbound edge and routes the request to a connector. Each connector then runs in one authentication mode, set via the AGENTCUBE_AUTH_MODE environment variable, which decides how that connector attributes the call to Oracle — as a shared service account or as the individual end user.
| Posture | Variable | How Oracle sees the call |
|---|---|---|
| Service account | AGENTCUBE_AUTH_MODE=basic (or not set) | One shared Oracle credential authenticates every call; all users are attributed to the service account. |
| Delegated credential | AGENTCUBE_AUTH_MODE=delegated_basic | You enter one Oracle username and password when you register the connector in the Context Engine. The Context Engine stores it encrypted and forwards it on every call; the connector itself holds no credential. Oracle sees that one named account on every call, and the Context Engine’s audit log records which signed-in user made each call when Context Engine sign-in (AGENTCUBE_CE_AUTH_MODE=oidc) is enabled. |
| Federated SSO | AGENTCUBE_AUTH_MODE=internal | The Context Engine validates the inbound corporate-SSO token and mints a short-lived signed token the connector trusts; the per-user identity is carried through to Oracle. Setup steps: SSO. |
Only federated SSO carries each end user’s identity through to Oracle, so Oracle audits and enforces security per person; the user’s Oracle username must match the email (or UPN) in their identity-provider token. Federated SSO also stores no Oracle credentials at all. Under a delegated credential, Oracle sees the one registered account, while the Context Engine’s audit log attributes each call to the signed-in user when Context Engine sign-in (AGENTCUBE_CE_AUTH_MODE=oidc) is enabled. See Security → Authentication & Identity for the full identity model.
Admin and user connector instances
Section titled “Admin and user connector instances”Each Oracle connector (Planning, FCCS, and Essbase) deploys as a paired admin instance and user instance, selected with AGENTCUBE_CONNECTOR_MODE (admin or user); each instance runs the posture that fits its job.
- Admin / metadata instance — runs the delegated credential posture (
delegated_basic). Metadata and schema calls are attributed in Oracle’s audit log to the named credential you register for it in the Context Engine, not to a credential baked into the container. - User / data instance — federated SSO is encouraged, so each end user’s Oracle entitlements are enforced individually. For a pilot or sandbox where corporate SSO is not yet stood up, a delegated credential (
delegated_basic) is an acceptable interim posture — one named Oracle account, registered in the Context Engine and shared by every user of that connector.
A plain shared service account (basic) is refused on a user/data instance: the connector will not start with AGENTCUBE_CONNECTOR_MODE=user and AGENTCUBE_AUTH_MODE=basic. Use federated SSO, or for a pilot a delegated credential (delegated_basic), which is allowed in user mode but still reaches Oracle as one shared account.
Switching modes
Section titled “Switching modes”Switching has two sides that must match: the connector’s AGENTCUBE_AUTH_MODE (environment-variable changes require a container restart), and the auth mode on the connector’s registration in the Context Engine (Connected Systems in the admin console, or the connectors API). If the two disagree, calls through that connector fail.
To federated SSO (internal):
- Complete the SSO setup prerequisites:
- On the Context Engine, enable inbound SSO (
AGENTCUBE_CE_AUTH_MODE=oidcplus your provider settings) and setAGENTCUBE_CE_INTERNAL_SIGNING_KEY. The Context Engine mints the per-call token from the verified sign-in, sointernalconnectors cannot work without both. - Add the connector’s SSO environment variables (see Environment Variables).
- Set
AGENTCUBE_AUTH_MODE=internaland restart the container. - In the Context Engine’s Connected Systems, change the connector’s auth mode to
internal. - Verify the health endpoint:
Invoke-RestMethod https://{connector_hostname}/healthin PowerShell, orcurl https://{connector_hostname}/healthin bash.auth_modeshould show the mode you set.
To delegated credential (delegated_basic):
- Clear any
ESSBASE_USERNAME/ESSBASE_PASSWORD,PLANNING_USERNAME/PLANNING_PASSWORD, orFCCS_USERNAME/FCCS_PASSWORDfrom the connector’s environment. - Set
AGENTCUBE_AUTH_MODE=delegated_basicand restart the container. - In the Context Engine’s Connected Systems, set the connector’s auth mode to
delegated_basicand enter the Oracle username and password there. - Verify via the health endpoint.
To service account (basic, admin instances only):
- Set
AGENTCUBE_AUTH_MODE=basic(or remove the variable entirely). - Ensure service-account credentials are configured (
ESSBASE_USERNAME/ESSBASE_PASSWORD,PLANNING_USERNAME/PLANNING_PASSWORD, orFCCS_USERNAME/FCCS_PASSWORD). - Restart the container, set the matching auth mode on the connector’s Context Engine registration, and verify via the health endpoint.
Behavior Differences
Section titled “Behavior Differences”| Aspect | Service account (basic) | Delegated credential (delegated_basic) | Federated SSO (internal) |
|---|---|---|---|
| Identity Oracle sees | Shared service account | The one account registered in the Context Engine | The signed-in end user |
| Data access | Same for all users | Same for all users (that account’s security profile) | Governed by the data source’s per-user security profiles |
| Health check backend test | Tests connectivity using the service account (backend_connected) | No live login test: backend_connected is omitted and backend_note explains why; watch backend.status | Same as delegated credential |
| AI platform setup | No SSO configuration needed | No SSO configuration needed | Users sign in through the Context Engine’s SSO on first connection |
| Container restart impact | Immediate reconnection | Immediate reconnection | No user impact; identity is re-established on every call |