Skip to content
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

Github OAuth breaks on second OAuth attempt, after first prompt was denied by user. #187

Open
nlflint opened this issue Mar 22, 2024 · 0 comments

Comments

@nlflint
Copy link

nlflint commented Mar 22, 2024

Repo steps:

  1. Setup Alexandrie with Github integration and allow registration
  2. Open a private browsing session (or logout of github and alexandrie).
  3. Go to your alexandrie page
  4. Click "Login with github" button.
  5. Login to github with a user that is not yet linked to alexandrie
  6. Observe Github OAuth prompt
  7. Deny the prompt
  8. Go back to Alexandrie page
  9. Click login with github again
  10. Accept the OAuth prompt this time

Expected Result: Redirected to callback and logged into main page successfully.

Actual Result: Callback to Alexandrie fails with HTTP 500.

Workaround: I entered the sqlite database and saw the user was added to a 3 tables. I deleted all rows for that half-initialized user, tried again (without denying OAuth this time), and user was added without a problem. Maybe it's using the old auth token initially added to the database instead of the new one?

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

1 participant