[PR #2700] [MERGED] fix .netrc authentication #16544

Closed
opened 2025-11-02 12:13:05 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2700
Author: @daviian
Created: 10/14/2017
Status: Merged
Merged: 10/15/2017
Merged by: @lafriks

Base: masterHead: bugfix/netrc-behaviour


📝 Commits (7)

  • bed668c provide both possible authentication solutions
  • 3bede06 fix fmt errors
  • 1607b7c Merge branch 'master' into bugfix/netrc-behaviour
  • 693ae57 Add missing return and code cleanup
  • a187b5b Merge branch 'master' into bugfix/netrc-behaviour
  • d33ad7a simplify if construct
  • 15998be Merge branch 'master' into bugfix/netrc-behaviour

📊 Changes

1 file changed (+24 additions, -10 deletions)

View changed files

📝 routers/repo/http.go (+24 -10)

📄 Description

Fixes #2480

Reverted a part of #2184 to allow token usage without the need of 2FA.
But token is required if 2FA is enabled!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2700 **Author:** [@daviian](https://github.com/daviian) **Created:** 10/14/2017 **Status:** ✅ Merged **Merged:** 10/15/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `bugfix/netrc-behaviour` --- ### 📝 Commits (7) - [`bed668c`](https://github.com/go-gitea/gitea/commit/bed668c9737141742be57cfcb791aecbefb6597a) provide both possible authentication solutions - [`3bede06`](https://github.com/go-gitea/gitea/commit/3bede0605066ee5bafbec3040ccf7fe7c07837b6) fix fmt errors - [`1607b7c`](https://github.com/go-gitea/gitea/commit/1607b7c142e9cdec38799a37f1ff991a9d9cfa66) Merge branch 'master' into bugfix/netrc-behaviour - [`693ae57`](https://github.com/go-gitea/gitea/commit/693ae577ad9fcf4a9029db4bfba460749630a95b) Add missing return and code cleanup - [`a187b5b`](https://github.com/go-gitea/gitea/commit/a187b5b6e32c4333a69d1445304dd2f193900f35) Merge branch 'master' into bugfix/netrc-behaviour - [`d33ad7a`](https://github.com/go-gitea/gitea/commit/d33ad7a493b75f80c75fa5eaa017ff096474a3ac) simplify if construct - [`15998be`](https://github.com/go-gitea/gitea/commit/15998be225c72f62f497e840ef51d70b625d3c3e) Merge branch 'master' into bugfix/netrc-behaviour ### 📊 Changes **1 file changed** (+24 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/http.go` (+24 -10) </details> ### 📄 Description Fixes #2480 Reverted a part of #2184 to allow token usage without the need of 2FA. But token is required if 2FA is enabled! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:13:05 -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#16544