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/token reuse #72

Merged
merged 10 commits into from
Feb 23, 2024
Merged

Feat/token reuse #72

merged 10 commits into from
Feb 23, 2024

Conversation

Ndiritu
Copy link
Contributor

@Ndiritu Ndiritu commented Feb 16, 2024

related to microsoftgraph/msgraph-sdk-php#1407

Developers have expressed an issue around

  • Passing their own access tokens to their API clients
  • Retrieving access tokens requested by a Kiota auth provider

Passing their own tokens/previously retrieved tokens to the API client is helpful in delegated scenarios because it prevents them from forcing their customers to log in multiple times for each request. Design doc is available.

Changes in this PR:

  • Modify our built-in InMemoryAccessTokenCache to allow devs to hydrate it with access tokens & retrieve access tokens from it
  • Allow passing a custom access token provider to the auth provider

@Ndiritu Ndiritu self-assigned this Feb 16, 2024
Copy link

sonarcloud bot commented Feb 23, 2024

@Ndiritu Ndiritu marked this pull request as ready for review February 23, 2024 08:20
@Ndiritu Ndiritu requested a review from baywet February 23, 2024 08:21
@Ndiritu Ndiritu merged commit cfd4506 into dev Feb 23, 2024
6 checks passed
@Ndiritu Ndiritu deleted the feat/token-reuse branch February 23, 2024 12:32
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