[PR #5105] [MERGED] refactor: separate auth config from runtime and defer token resolution #5125

Closed
opened 2026-05-05 14:55:11 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/5105
Author: @fatedier
Created: 12/24/2025
Status: Merged
Merged: 12/24/2025
Merged by: @fatedier

Base: devHead: new


📝 Commits (1)

  • efb1551 refactor: separate auth config from runtime and defer token resolution

📊 Changes

24 files changed (+185 additions, -206 deletions)

View changed files

📝 client/control.go (+6 -6)
📝 client/proxy/proxy.go (+4 -1)
📝 client/proxy/proxy_manager.go (+5 -2)
📝 client/proxy/proxy_wrapper.go (+2 -1)
📝 client/proxy/sudp.go (+1 -1)
📝 client/proxy/udp.go (+1 -1)
📝 client/service.go (+6 -6)
📝 cmd/frpc/sub/proxy.go (+4 -2)
📝 cmd/frpc/sub/root.go (+1 -0)
📝 cmd/frps/root.go (+8 -1)
📝 cmd/frps/verify.go (+4 -1)
📝 pkg/auth/auth.go (+63 -0)
📝 pkg/config/v1/client.go (+0 -13)
📝 pkg/config/v1/client_test.go (+5 -66)
📝 pkg/config/v1/server.go (+0 -14)
📝 pkg/config/v1/server_test.go (+5 -66)
📝 pkg/config/v1/validation/client.go (+13 -14)
📝 pkg/config/v1/validation/server.go (+7 -1)
pkg/config/v1/validation/validator.go (+28 -0)
📝 server/control.go (+6 -1)

...and 4 more files

📄 Description

WHY


🔄 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/fatedier/frp/pull/5105 **Author:** [@fatedier](https://github.com/fatedier) **Created:** 12/24/2025 **Status:** ✅ Merged **Merged:** 12/24/2025 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `new` --- ### 📝 Commits (1) - [`efb1551`](https://github.com/fatedier/frp/commit/efb1551b1313a870c5301eaf98fd132c9d2fb6d4) refactor: separate auth config from runtime and defer token resolution ### 📊 Changes **24 files changed** (+185 additions, -206 deletions) <details> <summary>View changed files</summary> 📝 `client/control.go` (+6 -6) 📝 `client/proxy/proxy.go` (+4 -1) 📝 `client/proxy/proxy_manager.go` (+5 -2) 📝 `client/proxy/proxy_wrapper.go` (+2 -1) 📝 `client/proxy/sudp.go` (+1 -1) 📝 `client/proxy/udp.go` (+1 -1) 📝 `client/service.go` (+6 -6) 📝 `cmd/frpc/sub/proxy.go` (+4 -2) 📝 `cmd/frpc/sub/root.go` (+1 -0) 📝 `cmd/frps/root.go` (+8 -1) 📝 `cmd/frps/verify.go` (+4 -1) 📝 `pkg/auth/auth.go` (+63 -0) 📝 `pkg/config/v1/client.go` (+0 -13) 📝 `pkg/config/v1/client_test.go` (+5 -66) 📝 `pkg/config/v1/server.go` (+0 -14) 📝 `pkg/config/v1/server_test.go` (+5 -66) 📝 `pkg/config/v1/validation/client.go` (+13 -14) 📝 `pkg/config/v1/validation/server.go` (+7 -1) ➕ `pkg/config/v1/validation/validator.go` (+28 -0) 📝 `server/control.go` (+6 -1) _...and 4 more files_ </details> ### 📄 Description ### WHY <!-- author to complete --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:55:11 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#5125
No description provided.