Skip to content

feat: CTE delegation and impersonation support#1109

Merged
yogeshchoudhary147 merged 1 commit into
mainfrom
feat/cte-delegation
May 22, 2026
Merged

feat: CTE delegation and impersonation support#1109
yogeshchoudhary147 merged 1 commit into
mainfrom
feat/cte-delegation

Conversation

@yogeshchoudhary147
Copy link
Copy Markdown
Contributor

Summary

Adds delegation and impersonation support for Custom Token Exchange per RFC 8693, building on auth0-spa-js#1608.

  • Add customTokenExchange() to Auth0ContextInterface — stateless token exchange with no session side effects
  • Bump @auth0/auth0-spa-js to ^2.20.0
  • Re-export ActClaim type

Test plan

  • All existing tests pass
  • customTokenExchange(): returns raw TokenEndpointResponse, correct params forwarded including actor_token/actor_token_type
  • customTokenExchange(): no auth state update, isAuthenticated unchanged
  • customTokenExchange(): errors propagate raw (no try/catch wrapping)
  • customTokenExchange(): method is memoized
  • 100% coverage maintained

@yogeshchoudhary147 yogeshchoudhary147 requested a review from a team as a code owner May 22, 2026 10:04
@yogeshchoudhary147 yogeshchoudhary147 merged commit 566ac47 into main May 22, 2026
14 checks passed
@yogeshchoudhary147 yogeshchoudhary147 deleted the feat/cte-delegation branch May 22, 2026 12:46
yogeshchoudhary147 added a commit that referenced this pull request May 22, 2026
**Added**
- feat: CTE delegation and impersonation support
[\#1109](#1109)
([yogeshchoudhary147](https://github.com/yogeshchoudhary147))
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.

2 participants