Skip to content

Unit tests for MsalAuth, AgentAuthConfiguration, and Authorization#75

Merged
axelsrz merged 15 commits intomainfrom
t-kylerohn/unit-tests
Jul 25, 2025
Merged

Unit tests for MsalAuth, AgentAuthConfiguration, and Authorization#75
axelsrz merged 15 commits intomainfrom
t-kylerohn/unit-tests

Conversation

@kylerohnmsft
Copy link
Contributor

  • MsalAuth Unit tests
    • get_access_token for ManagedIdentityClient and ConfidentialClientApplication
    • get_token_on_behalf_of for ManagedIdentityClient and ConfidentalClientApplication
  • MsalConnectionManager unit tests
  • AgentAuthConfiguration unit tests
    • value propoagation with and without loading from env
  • Authentication unit tests
    • get_token tests
    • exchange_token tests
    • begin_or_continue_flow tests
    • sign_in_success and sign_in_failure situations

@axelsrz
Copy link
Member

axelsrz commented Jul 25, 2025

:shipit:

@axelsrz axelsrz merged commit ba8ff30 into main Jul 25, 2025
5 checks passed
rodrigobr-msft pushed a commit that referenced this pull request Aug 4, 2025
* MsalAuth test cases

* add a couple AgentAuthConfiguration tests

* remove unused import

* remove unnecessary import path

* add minimal MsalConnectionManager test suite

* fix formatting/make concurrency friendly

* format using black

* better naming conventions

* test fixtures for authorization flow

* authorization tests - get_token, exchange_token

* remove unused imports

* tests for authorization auth flows

* authorization tests - add documentation to supporting utilities, remove OAuthMock class

* python 3.9 compatability

---------

Co-authored-by: = <=>
@cleemullins cleemullins deleted the t-kylerohn/unit-tests branch October 2, 2025 21:06
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

Comments