-
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch_token() is broken for BackendApplicationClient (InvalidClientError) #360
Comments
#357 breaks this. Oauthlib 3.x doesn't accept |
mwvolo
added a commit
to openstax/openstax-cms
that referenced
this issue
Feb 12, 2020
mwvolo
added a commit
to openstax/openstax-cms
that referenced
this issue
Feb 14, 2020
masci
pushed a commit
to arduino/iot-client-py
that referenced
this issue
Feb 18, 2020
Adding fix to the example code that cannot generate the access token. Related link: https://forum.arduino.cc/index.php?topic=661378.0 Reference: requests/requests-oauthlib#360
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like some breaking changes happen between 1.1.0 and 1.2.0 because now an example from the docs is not working. It crashes with
InvalidClientError
error.I found that now to fix it we need to specify new param
include_client_id
toTrue
. Without this flagfetch_token
tries to get token using basic auth instead ofclient_credentials
flow.It actualy comes from azure sdk for python 2.0.0 which uses msrestazure which uses requests-oauthlib https://github.com/Azure/msrestazure-for-python/blob/e347fc59d323edccf04ce9a043768ce4d36b6271/msrestazure/azure_active_directory.py#L471
Is possible to make default behavior as previously and pass client_secret to a body if it present? b3c227a#diff-2285f48ccef10fe187361b98f119ee1fR264
The text was updated successfully, but these errors were encountered: