Skip to content

V0.0.61 oauth - #1

Open
RoiGlinik wants to merge 2 commits into
mainfrom
v0.0.61-oauth
Open

V0.0.61 oauth#1
RoiGlinik wants to merge 2 commits into
mainfrom
v0.0.61-oauth

Conversation

@RoiGlinik

Copy link
Copy Markdown
Collaborator

No description provided.

…ough

Support non-JWT bearer tokens (e.g., OpenShift OAuth "sha256~..." tokens) when
require_oauth is enabled. When accept_opaque_tokens=true, tokens that don't look
like JWTs (no three dot-separated segments) are passed through to the Kubernetes
API server for validation instead of being rejected by the MCP server.

This enables per-user RBAC with OpenShift OAuth or similar non-JWT token
providers when using cluster_auth_mode=passthrough.

Signed-off-by: Roi Glinik <groi.tech@gmail.com>
Azure AD tokens issued by global/shared apps use iss: "https://sts.windows.net/{tenant}/"
(v1.0 format), but the OIDC provider is created with authorization_url (e.g.,
"https://login.microsoftonline.com/{tenant}/v2.0"), causing an issuer mismatch
during token validation.

Add issuer_url to explicitly specify the expected token issuer. When configured,
the OIDC library's automatic issuer check is skipped and the iss claim is
validated manually against the configured value. Signature (JWKS) and audience
validation remain unchanged.

Signed-off-by: Roi Glinik <groi.tech@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant