mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #5275] [Feature Request] pluggable per-proxy authentication #4075
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4075
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fred01 on GitHub (Apr 1, 2026).
Original GitHub issue: https://github.com/fatedier/frp/issues/5275
Describe the feature request
Hi! Currently HTTP proxies support Basic Auth via httpUser/httpPassword, which works well. But it would be nice to have the option to use other authentication methods on a per-proxy basis — for example, validating a Bearer token, checking a custom header, or delegating the decision to an external service.
Would you be open to the idea of making per-proxy authentication pluggable? The concept would be similar to how server plugins work today (external HTTP services called on lifecycle events like Login,NewProxy), but applied at the request level — frps would call an auth plugin before forwarding each HTTP request to the tunnel.
To give a rough idea of what the config could look like (not a concrete proposal, just thinking out loud):
Basic Auth would remain the default and work exactly as it does today. The plugin approach would be opt-in.
If you're generally open to this direction, I'd be happy to write up a more detailed proposal and discuss it here before submitting a PR.
Describe alternatives you've considered
No response
Affected area
@fatedier commented on GitHub (Apr 1, 2026):
We currently don't plan to introduce more complex Layer 7 features within the existing architecture. Supporting such functionality requires a more well-designed architecture, which we'll consider after a future overall refactoring.
@fred01 commented on GitHub (Apr 1, 2026):
Thanks for the quick response! Totally understand. Will keep an eye on the project for when the refactoring happens.