Repository navigation
1.1.0
Single sign-on: users can authenticate with an OpenID Connect provider (Microsoft Entra ID, Keycloak, …) instead of
bearer tokens, and the skills and OAuth path are now tested against real containers. Backwards compatible: without
OAUTH_ISSUER nothing changes.
Added
scripts/admincli.sh: OAuth assignment commands (list-assignments,show-assignment,add-assignment --group|--email …with the connection options ofadd-token,delete-assignment,set-assignment-conn,clear-assignment-conn,set-assignment-client-conn,set-assignment-admin) andwhoami;ADMIN_TOKENis accepted as alias ofAUTH_TOKEN, and the access token of an OAuth admin works as well. Covered bytests/admincli.test.ts- OAuth 2.0 / OpenID Connect as an alternative to bearer tokens, primarily for Microsoft Entra ID (any OIDC provider
works):OAUTH_ISSUERswitches it on. MCP clients send an access token (JWT: signature via JWKS, issuer, audience,
lifetime are validated locally); the admin UI offers single sign-on (authorization code flow with PKCE,HttpOnly
session cookie,X-Requested-Withheader for changes).AUTH_TOKENand file tokens keep working. See
docs/oauth.md - Assignments (deny by default): group or e-mail (
*@domain, or the immutable object id) → access, default
Oracle connection,client_connectionmode and admin role. Configured byOAUTH_ALLOWED_GROUPS,
OAUTH_ALLOWED_USERS,OAUTH_ADMIN_GROUPS,OAUTH_ADMIN_USERS,OAUTH_ASSIGNMENTS(read-only) and in the admin UI
(OAuth assignments) / REST/admin/assignments(stored in the token store,password/wallet_password
encrypted like token secrets and never returned) GET /admin/me,GET /auth/status|login|callback,POST /auth/logout,
GET /.well-known/oauth-protected-resource(RFC 9728; the401challenge carriesresource_metadata)- Attribution: the user's e-mail replaces the token name in the
[MCP]/[SESSION]/[ADMIN]log lines and in
V$SESSION.CLIENT_IDENTIFIER; new[AUDIT]log category (login,logout,session_start, changing admin calls)
and[AUTH]reason="oauth: …". Documented indocs/logging.md, Logstash pipeline updated - Helm:
oauth.*values; OpenAPI: assignment and auth endpoints;docker-compose.ymlpasses theOAUTH_*variables - Docker integration tests (skipped unless their environment variable is set;
npm run test:integration, CI job
integration):tests/oracle.integration.test.tsruns every MCP tool against a real Oracle Free database
(oracle-testcontainer) and the whole OAuth path over HTTP (group / e-mail → schema,V$SESSIONtags,
client-supplied credentials enforced by Oracle, assignment admin API);tests/oidc.integration.test.tsvalidates
tokens and the browser login against a real provider (docker compose --profile oidc up -d oidc-test,
mock-oauth2-server) OAUTH_RESOURCE_SCOPES: scopes advertised to MCP clients in/.well-known/oauth-protected-resource(default
<audience>/.defaultas before, right for Entra ID; e.g.openid profile emailfor Keycloak). Compose and Helm
(oauth.resourceScopes) pass it through. New docs section "MCP clients" (static header vs. client-side login,
client registration / dynamic registration, audience, scopes,claude mcp add --client-id),example.mcp.json
and README client examples- Keycloak as a real test and demo identity provider: compose profile
keycloak(docker compose --profile keycloak up -d --wait keycloak, console on port 8081) with the realmtests/oidc/keycloak-realm.json(users, groups, audience and
groups mappers, browser, password-grant and pre-registered MCP-client (oramcp-mcp-client, authorization code + PKCE) clients) andexamples/oauth-keycloak.envfor the full stack with SSO
login in the admin UI.tests/oidc.integration.test.tsruns against the mock server or Keycloak (real login form);
CI runs both.docker-compose.ymlpassesOAUTH_JWKS_URI,OAUTH_AUTHORIZATION_ENDPOINT,OAUTH_TOKEN_ENDPOINT - Unit tests
tests/oauth.test.tsandtests/oauth-auth.test.tswith a fake identity provider - Skills are tested:
tests/skills.test.tschecks that every parameter and value aSKILL.mdnames exists in the tool
schemas and that every tool is covered by a skill;tests/skills.integration.test.ts(ORA_TEST_HOST) runs the SQL
blocks and the workflows on a real database — a real blocking chain forlocks, a slow statement throughtop_sql/
sql_plan/explain_planand the index fix, schema documentation, and a real deadlock followed fromalert_log
throughtrace_filestotrace_content
Changed
example.mcp.json: inactive examples (_inactive_examples) for OAuth login by the client, an OAuth access token header
and client-supplied connections (X-Oracle-*headers: own credentials, own database)- Docs: README "When to choose this server" (and the DOCKERHUB.md intro) now cover single sign-on, directory-group based
access, attribution of the individual user inV$SESSION/ audit log, the skills and the real-container tests /infoaccepts the same admin authentication as/admin/*(also OAuth admins)
Security
- A malformed admin request body is answered with
400 Invalid JSON body(was500); the JSON parser message quotes a snippet of the body, which could contain a password, and is no longer logged. Connect strings of the formuser/password@targetare masked in/infoand log lines - With OAuth configured, an empty
AUTH_TOKENdoes not disable authentication - E-mail matching ignores an e-mail the provider marks
email_verified: false;OAUTH_REQUIRE_VERIFIED_EMAIL
demandstrue
Documentation
- Screenshots of the single sign-on login and the OAuth assignments screens (README,
docs/oauth.md, Docker Hub) - Configuration reference in the README and on Docker Hub now lists every variable (incl. all
OAUTH_*, TLS, pool/limit settings) with default and description, and marks per-token overrides.
Full Changelog: 1.0.0...1.1.0