Coder Social home page Coder Social logo

Comments (6)

lolomin avatar lolomin commented on July 17, 2024 2

Hi,

Sorry but coming back to this after a few months, now to simply add a new tabby instance on a new PC and unable to connect back to my own hosted tabby-web instance with github :

Alway having the error :

Django Version: 3.2.11
AuthFailed
Authentication failed: The redirect_uri MUST match the registered callback URL for this application.

It seems the problem is still with the HTTP/HTTPS, I don't know why the callback_url seems to be build with HTTP instead of HTTPS ...

IMHO, this project lacks of documentation to properly lead the user to the good way of authenticating with callback urls and github, google ...

Tried with Github : unable to connect back to my current instance and so unable to recover my saved configs ... How to get access back to my configs please ?
Tried with Google Oauth2 : very complicated ... got a 400 error with redirect_uri_mismatch error also : HTTP can't be used with Google

Why not used an internal local authentication process rather than using a very complicated process with external providers, further more with a self hosted application ?

Regards,

Laurent

from tabby-web.

Eugeny avatar Eugeny commented on July 17, 2024

You need to register your instance as an OAuth app here: https://github.com/settings/applications/new and generate an OAuth secret which you can then pass via the environment variable.

GitHub will ask you for a Callback URL, which is https://<your-host>/api/1/auth/social/complete/github/

from tabby-web.

lolomin avatar lolomin commented on July 17, 2024

You need to register your instance as an OAuth app here: https://github.com/settings/applications/new and generate an OAuth secret which you can then pass via the environment variable.

GitHub will ask you for a Callback URL, which is https://<your-host>/api/1/auth/social/complete/github/

Thks for answer, generated secret and took the Client ID for the SOCIAL_AUTH_GITHUB_KEY but when trying to log in still the same 404 page returned by github at this address :
https://github.com/login/oauth/authorize?client_id=None&redirect_uri=http://<myhost.domain.tld>/api/1/auth/social/complete/github/&state=ze8bOZWjsWW62m2KBQdkGj3kxNJ3g9lk&response_type=code&scope=read:user,user:email

Did I miss something ?

Thks !

from tabby-web.

lolomin avatar lolomin commented on July 17, 2024

now having :
AuthFailed at /api/1/auth/social/complete/github/
Authentication failed: The redirect_uri MUST match the registered callback URL for this application.

Finally understood that I needed to made the Callback URL to HTTP rather than HTTPS, don't understand why but everything seems to be OK for now, thks for help :)

from tabby-web.

Eugeny avatar Eugeny commented on July 17, 2024

👍 glad you've figured it out

from tabby-web.

aogg avatar aogg commented on July 17, 2024

+1

from tabby-web.

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.