V0.0.61 oauth - #1
Open
RoiGlinik wants to merge 2 commits into
Open
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.