Oauth2: Not possible to link existing account #4285

Closed
opened 2025-11-02 05:44:49 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Shuro on GitHub (Nov 11, 2019).

  • Gitea version (or commit ref): 1.11.0+dev-210-g74bb292fe (docker / latest)
  • Git version: 2.22.0
  • Operating system: Vmware PhotonOS (docker)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
    • not possible
  • Log gist:

Description

I migrated my gitea installation to the docker gitea instance, everything works fine so far, except logging in via google Oauth2.

Steps to reproduce:

  1. Visit oauth2 login path: https://git.domain.tld/user/oauth2/Google
  2. log in with google account
  3. redirect back to https://git.domain.tld/user/link_account#
  4. switch to "Link to Existing Account"
  5. Type in Username and press enter

Expected behavior:

  • get asked for user password
  • login
  • oauth2 account bound

Actual behavior:

  • Landing again on https://git.domain.tld/user/link_account# , register tab
  • switch to "Link to Existing Account" reveals the error: "Password cannot be empty."
  • there was and is no password field (see attached screenshot)

Screenshots

Bildschirmfoto_2019-11-11_15-29-49

Originally created by @Shuro on GitHub (Nov 11, 2019). - Gitea version (or commit ref): 1.11.0+dev-210-g74bb292fe (docker / latest) - Git version: 2.22.0 - Operating system: Vmware PhotonOS (docker) - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - [x] not possible - Log gist: ## Description I migrated my gitea installation to the docker gitea instance, everything works fine so far, except logging in via google Oauth2. ## Steps to reproduce: 1. Visit oauth2 login path: https://git.domain.tld/user/oauth2/Google 2. log in with google account 3. redirect back to https://git.domain.tld/user/link_account# 4. switch to "Link to Existing Account" 5. Type in Username and press enter ### Expected behavior: - get asked for user password - login - oauth2 account bound ### Actual behavior: - Landing again on https://git.domain.tld/user/link_account# , register tab - switch to "Link to Existing Account" reveals the error: "Password cannot be empty." - there was and is no password field (see attached screenshot) ## Screenshots ![Bildschirmfoto_2019-11-11_15-29-49](https://user-images.githubusercontent.com/944030/68595255-60dfab80-0499-11ea-9ca8-cd07ed44353a.png)
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 05:44:49 -06:00
Author
Owner

@BaxAndrei commented on GitHub (Nov 19, 2019):

I have same problem.

Gitea version (or commit ref): 1.10.0
Operating system: CentOS Linux release 7.7.1908

@BaxAndrei commented on GitHub (Nov 19, 2019): I have same problem. Gitea version (or commit ref): 1.10.0 Operating system: CentOS Linux release 7.7.1908
Author
Owner

@stale[bot] commented on GitHub (Jan 19, 2020):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 19, 2020): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@SkYNewZ commented on GitHub (Jan 20, 2020):

Move to Gitea version 1.10.1 built with GNU Make 4.1, go1.13.4 : bindata, sqlite, sqlite_unlock_notify has fixed this issue for me https://github.com/go-gitea/gitea/issues/9066

@SkYNewZ commented on GitHub (Jan 20, 2020): Move to `Gitea version 1.10.1 built with GNU Make 4.1, go1.13.4 : bindata, sqlite, sqlite_unlock_notify` has fixed this issue for me https://github.com/go-gitea/gitea/issues/9066
Author
Owner

@zeripath commented on GitHub (Jan 20, 2020):

Ok closing as fixed. Please reopen if still a problem.

@zeripath commented on GitHub (Jan 20, 2020): Ok closing as fixed. Please reopen if still a problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4285