microsoft-authentication-library-for-python icon indicating copy to clipboard operation
microsoft-authentication-library-for-python copied to clipboard

ClientApplication initializer sends HTTP requests

Open chlowell opened this issue 5 years ago • 1 comments

Constructing ClientApplication entails at least one HTTP request, for tenant discovery. This adds all the costs and failure modes associated with the network to constructing the class. In my own code I therefore defer constructing (subclasses of) ClientApplication until I want to authenticate. That's a feasible workaround but please consider taking a similar approach in msal, deferring discovery until a method requiring I/O is called.

chlowell avatar Apr 29 '20 17:04 chlowell

Can we reopen this for tracking?

chlowell avatar Sep 15 '20 15:09 chlowell