You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After trying to get django-all-access to work with the OAuth2 server of FIWARE lab, I found out that it was expecting an Authorization key in the header of the POST request that gets the access token (I was getting a 405 error). I managed to get it working by passing the following header to the request made in get_access_token in OAuth2Client:
Not sure how it would be the best way to patch the code to make it more general (I have no idea if this may cause problems with other providers or if more kinds of authorizations should be included). I hope this helps.
The text was updated successfully, but these errors were encountered:
You can configure the callback view to use a custom client for this provider which overrides get_access_token. Nothing to patch in django-all-access. These are already available customization hooks.
After trying to get django-all-access to work with the OAuth2 server of FIWARE lab, I found out that it was expecting an
Authorization
key in the header of the POST request that gets the access token (I was getting a 405 error). I managed to get it working by passing the following header to the request made inget_access_token
inOAuth2Client
:Not sure how it would be the best way to patch the code to make it more general (I have no idea if this may cause problems with other providers or if more kinds of authorizations should be included). I hope this helps.
The text was updated successfully, but these errors were encountered: