GithubHelp home page GithubHelp logo

google oauth 2.0 about python-social-auth HOT 5 CLOSED

omab avatar omab commented on June 28, 2024
google oauth 2.0

from python-social-auth.

Comments (5)

bradbeattie avatar bradbeattie commented on June 28, 2024

Hey, I'm running into the same error here. When I initially authenticate using django-social-auth, I get the refresh_token, but if I remove the authentication and add it back in, there's no refresh_token to be found.

Did you run into this too? If so, did you discover the cause?

from python-social-auth.

omab avatar omab commented on June 28, 2024

According to Google, the refresh_token is only sent once (the first time), if you want it again the user must revoke your application access and then re-auth with it.

from python-social-auth.

bradbeattie avatar bradbeattie commented on June 28, 2024

Thanks! Setting SOCIAL_AUTH_REVOKE_TOKENS_ON_DISCONNECT = True in django-social-auth fixed this for me.

from python-social-auth.

alexander-gridnev avatar alexander-gridnev commented on June 28, 2024

I was patched lib (added checking empty refresh_token in google response, and if it empty, not save it to db), it is not very good solution, but I think re-authing user every time, bad idea too..

from python-social-auth.

omab avatar omab commented on June 28, 2024

The re-auth is required by google, you talk about another issue which is already solved in python-social-auth.

from python-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.