GithubHelp home page GithubHelp logo

3rd Party Login about duolingo HOT 5 CLOSED

Antwohlf avatar Antwohlf commented on August 16, 2024
3rd Party Login

from duolingo.

Comments (5)

igorskh avatar igorskh commented on August 16, 2024

As far as I know, it's not possible, what exactly are you trying to do? Simply submitting your Facebook/Google credentials won't work, the authentication has to take place in browser. After that you can use a JWT in this library.

from duolingo.

Antwohlf avatar Antwohlf commented on August 16, 2024

I apologize, I see now that this is a duplicate of #84

Thank you!

from duolingo.

Antwohlf avatar Antwohlf commented on August 16, 2024

Just to clarify, this should be as simple as
lingo = duolingo.Duolingo('username', jwt='token.from.browser')
correct?

I'm still getting

 raise DuolingoException("Login failed")
duolingo.DuolingoException: Login failed 

errors with the token from a logged in browser. I've also tried specifying password and session_file as None in the duolingo constructor with the same result.

from duolingo.

igorskh avatar igorskh commented on August 16, 2024

@Antwohlf I'm afraid there is an issue with library implementation.

The URL in this line:

return "https://duolingo.com/users/%s" % self.username

has to be

return https://www.duolingo.com/users/%s" % self.username 

Otherwise it returns a HTTP 302 and redirects in which case authorisation fails.

from duolingo.

adnanaga avatar adnanaga commented on August 16, 2024

@Antwohlf I'm afraid there is an issue with library implementation.

The URL in this line:

return "https://duolingo.com/users/%s" % self.username

has to be

return https://www.duolingo.com/users/%s" % self.username 

Otherwise it returns a HTTP 302 and redirects in which case authorisation fails.

Just to highlight for others, the difference here is there is a "www." in front of Duolingo.com vs just https://duolingo.com...

from duolingo.

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.