Skip to content

Github OAuth on CodiMD login gives 401 after logging in #1903

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

Open
sumrdev opened this issue Apr 3, 2025 · 1 comment
Open

Github OAuth on CodiMD login gives 401 after logging in #1903

sumrdev opened this issue Apr 3, 2025 · 1 comment

Comments

@sumrdev
Copy link

sumrdev commented Apr 3, 2025

2025-04-03.14-40-56.mp4

this video probably shows everything easiest.

After setting up OAuth with GitHub I cannot login after successfully going through the login flow, i get 401.

@TheColorman
Copy link

To add to this, it seems the redirect URL provided by CodiMD mistakenly starts query parameters with an ampersand (&) instead of a question mark (?), meaning the query parameters become part of the redirect URI and GitHub thus rejects it:

http://your_codi_instance/auth/github/callback&scope=read:user,read:org&client_id=your_client_id

In addition to this, the redirect URI provided by Codi is always http, with no obvious way to change it to https, making GitHub reject the URI

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