We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ac924 commit 7c8e6ecCopy full SHA for 7c8e6ec
msal/oauth2cli/oauth2.py
@@ -187,8 +187,10 @@ def _obtain_token( # The verb "obtain" is influenced by OAUTH2 RFC 6749
187
data=None, # All relevant data, which will go into the http body
188
headers=None, # a dict to be sent as request headers
189
post=None, # A callable to replace requests.post(), for testing.
190
+ # Such as: lambda url, **kwargs:
191
+ # Mock(status_code=200, text='{}')
192
**kwargs # Relay all extra parameters to underlying requests
- ):
193
+ ): # Returns the json object came from the OAUTH2 response
194
195
# Handle deprecated params parameter
196
params = kwargs.pop('params', None)
0 commit comments