Skip to content

feat(auth0-fastify-api): add on-behalf-of-token-exchange support on auth0-fastify-api#58

Merged
nandan-bhat merged 3 commits intomainfrom
feature/obo/sdk-8430
May 6, 2026
Merged

feat(auth0-fastify-api): add on-behalf-of-token-exchange support on auth0-fastify-api#58
nandan-bhat merged 3 commits intomainfrom
feature/obo/sdk-8430

Conversation

@nandan-bhat
Copy link
Copy Markdown
Contributor

@nandan-bhat nandan-bhat commented Apr 30, 2026

Exposes getTokenOnBehalfOf() on fastify.auth0Client by bumping the @auth0/auth0-api-js dependency to ^1.6.0, which ships the OBO-TE (On Behalf Of Token Exchange) feature.

Changes

fastify.auth0Client.getTokenOnBehalfOf(incomingToken, { audience, scope? }): exchanges an incoming Auth0 access token for one scoped to a downstream API, preserving the user's identity (sub) and stamping the actor (act claim)
Re-exports OnBehalfOfTokenOptions, OnBehalfOfTokenResult, getCurrentActor, getDelegationChain, MissingClientAuthError, and TokenExchangeError directly from @auth0/auth0-fastify-api

@nandan-bhat nandan-bhat force-pushed the feature/obo/sdk-8430 branch from af5113a to 3280f3b Compare April 30, 2026 09:31
Comment thread packages/auth0-fastify-api/src/index.ts Outdated
Comment thread packages/auth0-fastify-api/src/index.ts Outdated
Comment thread packages/auth0-fastify-api/src/index.spec.ts
@nandan-bhat nandan-bhat requested a review from kishore7snehil May 6, 2026 10:51
Copy link
Copy Markdown

@kishore7snehil kishore7snehil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nandan-bhat nandan-bhat merged commit 3709904 into main May 6, 2026
6 checks passed
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