Code Monkey home page Code Monkey logo

Comments (4)

fivethreeo avatar fivethreeo commented on June 5, 2024

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

from django-graphql-social-auth.

andreimarinescu avatar andreimarinescu commented on June 5, 2024

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

from django-graphql-social-auth.

fivethreeo avatar fivethreeo commented on June 5, 2024

from django-graphql-social-auth.

andreimarinescu avatar andreimarinescu commented on June 5, 2024

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.

from django-graphql-social-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.