OAuth2 linking to existing 2FA enabled account fails #396

Closed
opened 2025-11-02 03:21:49 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @willemvd on GitHub (Feb 25, 2017).

  • Gitea version (or commit ref): master
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Mentioned by @geek1011 at the gitter channel and confirmed by myself on try.gitea.io

If you have setup an existing account with 2FA enabled and want to sign in with Github it fails to link the Github account to the existing account.

Steps to reproduce:

  • Setup an local account and enable 2FA
  • Logout the account and sign in with Github
  • On the sign-in-or-create-account page login with the existing local account with 2FA
  • Login with the 2FA code
  • Your Settings - External Accounts -> here should a Github entry be mentioned but isn't
  • Logout and try to login with Github again
  • The sign-in-or-create-account page is shown again instead of the user being logged in
Originally created by @willemvd on GitHub (Feb 25, 2017). - Gitea version (or commit ref): master - Can you reproduce the bug at https://try.gitea.io: - [X] Yes (provide example URL) - [ ] No - [ ] Not relevant Mentioned by @geek1011 at the gitter channel and confirmed by myself on try.gitea.io If you have setup an existing account with 2FA enabled and want to sign in with Github it fails to link the Github account to the existing account. Steps to reproduce: - Setup an local account and enable 2FA - Logout the account and sign in with Github - On the sign-in-or-create-account page login with the existing local account with 2FA - Login with the 2FA code - Your Settings - External Accounts -> here should a Github entry be mentioned but isn't - Logout and try to login with Github again - The sign-in-or-create-account page is shown again instead of the user being logged in
GiteaMirror added the type/bug label 2025-11-02 03:21:49 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#396