mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1406] Make authentication system customizable through server plugins #1109
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#1109
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 @velovix on GitHub (Aug 24, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1406
Edit: This behavior is expected to be implemented using server plugins. This issue is re-purposed as a feature request to allow this customization using server plugins.
Original Proposal
I'm integrating FRP into a larger system with a pre-existing authentication mechanism. It would be great if I could customize the way FRP generates and checks privilege keys by, for example, providing callback functions. Perhaps it could look like this:
If these methods are not called, the client and server fall back to using the current key generation and checking system.
This feature would be exposed only through the library. I imagine that custom authentication is out of the scope of FRP when used as a command line tool.
If this looks good, I would be happy to send a pull request to implement this.
@fatedier commented on GitHub (Aug 25, 2019):
I want to expose some features by
server plugin, you can see #1378 and #1403.Not only the
token or privilegeKeyneed to check, but also theuseror other meta info. We should implement this in a general method.The
pluginfeature need detailed design and will not be provided soon.@velovix commented on GitHub (Aug 26, 2019):
Okay, sounds good. If it's okay, I will re-purpose this issue to track allowing this kind of customization through server plugins.
@fatedier commented on GitHub (Jan 5, 2020):
v0.31.0 support server manage plugin.