Skip to content

[#654] Refactor MsalTokenProvider to match AuthProvider interface#796

Merged
tracyboehrer merged 2 commits intomainfrom
ceci/update/msal-token-provider-refactor
Dec 3, 2025
Merged

[#654] Refactor MsalTokenProvider to match AuthProvider interface#796
tracyboehrer merged 2 commits intomainfrom
ceci/update/msal-token-provider-refactor

Conversation

@ceciliaavila
Copy link
Copy Markdown
Collaborator

Fixes #654

Description

This PR updates the AuthProvider interface to include overload for getAccessToken method matching the implementation in MSalTokenProvider.
The goal is to use the Connections interface instead of the MsalConnectionsManager class in CloudAdapter.

Detailed Changes

  • Updated AuthProvider interface to match MsalTokenProvider implementation:
    • Introduced the optional property connectionSettings.
    • Added overloads for the getAccessToken method.
  • Updated CloudAdapter's connectionManager property type to use Connections instead of MsalConnectionManager.
  • Removed unnecessary casting in UserTokenClient.

Testing

These images show the auto-signin and obo-authorization samples working after the changes.
image

image

@tracyboehrer tracyboehrer enabled auto-merge (squash) December 3, 2025 17:30
@tracyboehrer tracyboehrer merged commit 7f16725 into main Dec 3, 2025
7 checks passed
@tracyboehrer tracyboehrer deleted the ceci/update/msal-token-provider-refactor branch December 3, 2025 17:33
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.

Refactor MsalTokenProvider to match AuthProvider interface

3 participants