Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sdk): expose AccessTokenSource #1928

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dschmidt
Copy link

Proposed Changes

Expose AccessTokenSource from SDK instance.
This would allow me to reuse an existing IDPTokenExchangeTokenSource instance.

Context

I'm retrieving the entitlements for a user while using the ClaimsEntityResolutionService.
For that I'm retrieving an EntityChain via client.EntityResoution.CreateEntityChainFromJwt and pass that to client.Authorization.GetEntitlements.

I would like to avoid implementing the token exchange myself when there's already an implementation available through the sdk. Unfortunately it's a bit cumbersome to setup, so I would like to reuse the existing instance from the sdk, which currently is not exposed.

Checklist

  • I have added or updated unit tests
  • I have added or updated integration tests (if appropriate)
  • I have added or updated documentation

Testing Instructions

@dschmidt dschmidt requested review from a team as code owners February 20, 2025 14:51
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