Skip to content

feat(oauth): add Microsoft Entra On-Behalf-Of profile for token-exchange gateways - #7801

Open
Lang-Akshay wants to merge 6 commits into
mainfrom
fix/issue-7340
Open

Lang-Akshay wants to merge 6 commits into
mainfrom
fix/issue-7340

Conversation

@Lang-Akshay

Copy link
Copy Markdown
Collaborator
  • Adds token_exchange_profile: "entra_obo" for token-exchange gateways. The gateway swaps the caller's Entra access token for an upstream-scoped token. It uses the RFC 7523 jwt-bearer grant with requested_token_use=on_behalf_of.
  • Refuses subject tokens that Entra did not issue for the gateway app. It sends no request to Entra in that case.
  • Returns a fixed message on consent failure (AADSTS65001). It never exposes provider error text or tokens.
  • Adds the profile to the Admin UI gateway forms and hides the RFC 8693-only fields. Gateways without a profile keep the RFC 8693 behavior.
  • Adds unit, JS, integration, e2e and live-gateway tests, plus docs and a CHANGELOG entry.
  • docker-compose.yml now passes SSO_ALLOW_PROVIDER_LINKING and SSO_AUTO_ADMIN_DOMAINS.

Closes #7340

Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>
Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>
Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>
Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>
Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>
…tion tests

The auth.js mock lacked the bindTokenExchangeProfileToggle export. setupFormHandlers calls it, so eight initializeEventListeners tests failed. Add the export to the mock.

Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>

This branch has not been deployed

No deployments
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.

[FEATURE]: Microsoft Entra ID on-behalf-of (RFC 7523 jwt-bearer) in addition to RFC 8693 token exchange

1 participant