Open omushpapa opened 5 years ago
Hi, could you fix this yet?
Hi all.
My team and I are constantly using this framework and it seems it has died out there. I contacted the owner by email asking if he would add some of us as maintainers so we could continue to improve it. However we didn't get a response.
I am publishing the project under my profile and we are going to continue to invest time in it.
So I would like to gently ask you to contribute to this project on: https://github.com/wagnerdelima/drf-social-oauth2
Thank you for understanding.
Hi @wagnerdelima does your project fix this issue ? I tried to use it but without success
@hvalee are you also stumbling upon this problem? I never really had stumbled upon it myself so it's hard to debug.
@wagnerdelima I updated a project to python(3.9.7), Django(3.2.7), and all their dependencies. But doing that I am having a weird problem where the apps connect as usual with a bearer token, receive a positive response but when using the received token with other requests it does not recognize the token and returns a 403(Forbidden). With this lib and with yours (already tried it)
Basically, the Django gives that token to a user that just logged in but when the user tries to get some info using that token does not recognize it..
Hi, I had a similar error, I fixed it like this:
data = json.dumps(<your data>) # your params in the case
response = self.client.post(
path=self.api_url,
data=data,
HTTP_AUTHORIZATION=f"Bearer {jwt_access_token}",
content_type="application/json", # This content type is for rest_framework, will normally be just "json"
)
Ps: I know the post is old but I had this problem a few hours ago so this might help someone else.
Steps to reproduce
Set up a test case as follows:
Expected behavior
The request to run successfully.
Actual behavior
The request fails with
AttributeError: This QueryDict instance is immutable
Sample stacktrace: