django-graphql-social-auth icon indicating copy to clipboard operation
django-graphql-social-auth copied to clipboard

Use pipeline and support partial

Open fivethreeo opened this issue 5 years ago • 4 comments

Maybe using uniontype. I might implement it.

fivethreeo avatar Sep 13 '19 04:09 fivethreeo

https://github.com/fivethreeo/django-graphql-social-auth - made a working idea here

fivethreeo avatar Sep 17 '19 17:09 fivethreeo

@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!

andreimarinescu avatar May 10 '20 18:05 andreimarinescu

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 😀

  1. 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.

fivethreeo avatar May 11 '20 01:05 fivethreeo

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.

andreimarinescu avatar May 11 '20 08:05 andreimarinescu