Skip to content

poc: add get_token_on_behalf_of() to auth0-api-python#81

Open
nandan-bhat wants to merge 2 commits intomainfrom
poc/obo
Open

poc: add get_token_on_behalf_of() to auth0-api-python#81
nandan-bhat wants to merge 2 commits intomainfrom
poc/obo

Conversation

@nandan-bhat
Copy link
Copy Markdown

Changes

Implemented OBO token exchange support in auth0-api-python by adding ApiClient.get_token_on_behalf_of(...) as a thin wrapper over the existing RFC 8693 exchange flow.

The new API keeps the application-facing contract simple by accepting only the incoming access token, downstream audience, and optional scope, while reusing the existing confidential-client authentication and token exchange behavior internally.

This PR also adds the exported OBO result type, targeted test coverage for the new method, and README/examples updates.

The change is additive and does not introduce breaking changes to the existing SDK surface.

@nandan-bhat nandan-bhat requested a review from a team as a code owner April 13, 2026 08:18
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