LFS access token authentication #2062

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

Originally created by @Andersbiha on GitHub (Jul 17, 2018).

  • Gitea version (or commit ref): 1.5.0-rc1
  • Git version: 2.18.0
  • Operating system: Ubuntu 16.04
  • 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

The current LFS implementation lacks support for access token based authentication.
Due to this users with 2FA enabled is unable to interact with LFS repos.

As far as i can tell it should be pretty straightforward to implement this in the parseToken function in the LFS server module.

Let me know if i should look further into correcting this 👍

Originally created by @Andersbiha on GitHub (Jul 17, 2018). - Gitea version (or commit ref): 1.5.0-rc1 - Git version: 2.18.0 - Operating system: Ubuntu 16.04 - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description The current LFS implementation lacks support for access token based authentication. Due to this users with 2FA enabled is unable to interact with LFS repos. As far as i can tell it should be pretty straightforward to implement this in the [parseToken](https://github.com/go-gitea/gitea/blob/181b3a8f0988ab729270279e6e12534cb52628cc/modules/lfs/server.go#L517) function in the LFS server module. Let me know if i should look further into correcting this :+1:
GiteaMirror added the type/enhancementissue/stale labels 2025-11-02 04:22:54 -06:00
Author
Owner

@jonasfranz commented on GitHub (Jul 17, 2018):

Feel free to create a PR for this.

@jonasfranz commented on GitHub (Jul 17, 2018): Feel free to create a PR for this.
Author
Owner

@stale[bot] commented on GitHub (Jan 17, 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 (Jan 17, 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.
Author
Owner

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

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Feb 19, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2062