django-graphql-social-auth
django-graphql-social-auth copied to clipboard
Use pipeline and support partial
Maybe using uniontype. I might implement it.
https://github.com/fivethreeo/django-graphql-social-auth - made a working idea here
@fivethreeo I've seen the updates to your fork and you seem to have implemented support for setting a redirect_uri
, however I can't seem to get it to work (it's complaining about a missing state parameter that I've seen was commented out). Would you happen to have any pointers in how this might work?
Thanks!
The state part what was made some of the issues that made me think rest or another was a better idea. But if you can find a good solution. That would be great 😀
- mai 2020 kl. 20:35 skrev Andrei Marinescu [email protected]:
@fivethreeo I've seen the updates to your fork and you seem to have implemented support for setting a redirect_uri, however I can't seem to get it to work (it's complaining about a missing state parameter that I've seen was commented out). Would you happen to have any pointers in how this might work?
Thanks!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Thanks for your reply, this is much appreciated. I was pulling my hair (not much left) for the past 24 hours trying to make this work. Getting social auth, graphene and JWT to work with a React front-end seems to be much harder to achieve than what I thought it would.
I did get this to work by using your branch, and I probably wouldn't have been able to otherwise, given the fact I'm quite new to the ecosystem and still learning how python-social-auth works (with all it's different flavors, pardon the pun).
The modifications I needed to make were adding the following lines to the mutate
method, in order to disable the state verification on the backend. I basically used the same approach the rest-social-auth library uses:
backend.REDIRECT_STATE = False
backend.STATE_PARAMETER = False
backend.redirect_uri = kwargs.get('redirectUri')
This probably needs more work before being rock solid, but hopefully it helps anyone facing similar issues.