Two Factor not working after Account is linked with a Oauth2 login #1787

Closed
opened 2025-11-02 04:13:14 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @pree on GitHub (May 15, 2018).

  • Gitea version (or commit ref): 1.1.0+1201-g0b718e0d
  • Git version:
  • Operating system: Debian
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I had two factor authentication enabled on my account. Added a Oauth2 provider and linked my Oauth2 account with my gitea user. After the account was linked the two factor authentication does not work anymore. Even if I log in with Username/Password.
...

Screenshots

image

Originally created by @pree on GitHub (May 15, 2018). - Gitea version (or commit ref): 1.1.0+1201-g0b718e0d - Git version: - Operating system: Debian - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description I had two factor authentication enabled on my account. Added a Oauth2 provider and linked my Oauth2 account with my gitea user. After the account was linked the two factor authentication does not work anymore. Even if I log in with Username/Password. ... ## Screenshots ![image](https://user-images.githubusercontent.com/9799276/40080353-f5f4bd08-588a-11e8-934d-58d11b0b1374.png)
GiteaMirror added the type/bugissue/duplicate labels 2025-11-02 04:13:14 -06:00
Author
Owner

@daviian commented on GitHub (May 15, 2018):

@pree It's hard to diagnose the issue without further information. Can you please provide the log entries from that moment?

@daviian commented on GitHub (May 15, 2018): @pree It's hard to diagnose the issue without further information. Can you please provide the log entries from that moment?
Author
Owner

@pree commented on GitHub (May 24, 2018):

Hello daviian.
I will take a look at my logs later today to see if anything is reported there.

If you wan't to reproduce this, you could do this with the following steps:

  • Create User
  • Enable 2FA
  • Add an OAuth2 (OIC) Connection
  • Log into git via OAuth2
  • Merge the Accounts

After the merge the login isn't possible with this user.

@pree commented on GitHub (May 24, 2018): Hello daviian. I will take a look at my logs later today to see if anything is reported there. If you wan't to reproduce this, you could do this with the following steps: * Create User * Enable 2FA * Add an OAuth2 (OIC) Connection * Log into git via OAuth2 * Merge the Accounts After the merge the login isn't possible with this user.
Author
Owner

@techknowlogick commented on GitHub (Jun 28, 2018):

Closed as dupe of #1509. Please re-open if you think it is different.

@techknowlogick commented on GitHub (Jun 28, 2018): Closed as dupe of #1509. Please re-open if you think it is different.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1787