Thread safe problem in OAuth2 login #3022

Closed
opened 2025-11-02 04:57:41 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @BetaCat0 on GitHub (Mar 7, 2019).

  • Gitea version (or commit ref): master
  • Git version: 2.x
  • Operating system: linux(centos)
  • 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 found a thread safe problem that will let oauth2 login fail. This happened when you double click the
login button and then, as you can see, login failed(gif 1). Things also can be reproduced in try.gitea.io(gif 2).

Screenshots

g1
gif 1
g2
gif 2

Originally created by @BetaCat0 on GitHub (Mar 7, 2019). - Gitea version (or commit ref): master - Git version: 2.x - Operating system: linux(centos) - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description I found a thread safe problem that will let oauth2 login fail. This happened when you double click the login button and then, as you can see, login failed(gif 1). Things also can be reproduced in try.gitea.io(gif 2). ## Screenshots ![g1](https://user-images.githubusercontent.com/11432752/53972705-4b5ff800-413a-11e9-9968-24996caed839.gif) gif 1 ![g2](https://user-images.githubusercontent.com/11432752/53972728-531f9c80-413a-11e9-8f2d-2cc125ecfb6f.gif) gif 2
GiteaMirror added the type/bug label 2025-11-02 04:57:41 -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#3022