Skip to content

Is it possible to provide test data to create a ConfidentialClientApplication and to acquire_token_for_client? #573

Answered by rayluo
jacotcher asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting. Within its first 18 hours, this question received 4 upvotes. Are the other 3 voters your relatives, James?

Joking aside, the verify and validate_authority parameters are documented and they are not for the purpose that you described.

What you want seems to be one of two different things.

  1. to provide test data to create a ConfidentialClientApplication and to acquire_token_for_client?

If you want to mock the token acquisition requests, you shall look into Python's built-in mock library. We use it in some of our own unit tests, too. That being said, I do not even think mock is the most convenient way to approach this. If your project will eventually authenticate against AAD u…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rayluo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants