Store UserName in cookie without remembering session #1387

Closed
opened 2025-11-02 03:58:59 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @programmeroftheeve on GitHub (Dec 19, 2017).

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

Description

Use cookie to store username without using said cookie to keep user logged as is currently done. This way a http-proxy can use the cookie to log people using the server.

Originally created by @programmeroftheeve on GitHub (Dec 19, 2017). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): NA - Git version: NA - Operating system: NA - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - [x] NA - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Use cookie to store username without using said cookie to keep user logged as is currently done. This way a http-proxy can use the cookie to log people using the server.
GiteaMirror added the issue/stalereviewed/wontfix labels 2025-11-02 03:58:59 -06:00
Author
Owner

@lafriks commented on GitHub (Dec 19, 2017):

From security point of view that actually is not a very good idea

@lafriks commented on GitHub (Dec 19, 2017): From security point of view that actually is not a very good idea
Author
Owner

@stale[bot] commented on GitHub (Feb 9, 2019):

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 (Feb 9, 2019): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1387