Skip to content
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

Use pipeline and support partial #18

Open
fivethreeo opened this issue Sep 13, 2019 · 4 comments
Open

Use pipeline and support partial #18

fivethreeo opened this issue Sep 13, 2019 · 4 comments

Comments

@fivethreeo
Copy link

Maybe using uniontype. I might implement it.

@fivethreeo
Copy link
Author

fivethreeo commented Sep 17, 2019

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

@andreimarinescu
Copy link

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

@fivethreeo
Copy link
Author

fivethreeo commented May 11, 2020 via email

@andreimarinescu
Copy link

andreimarinescu commented May 11, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants