mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3106] [Feature Request] 是否有类似basic auth的方式让第三方程序访问服务时候进行授权? #2490
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#2490
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 @tonyho on GitHub (Sep 23, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3106
Describe the feature request
我们在内网服务器A 上面有一个网页服务假设端口8080,然后通过一个公网服务器B安装的frps暴露A的8080端口为9090, 其他第三方程序会通过post请求来访问服务器的9090,但是我们期望可以添加一些auth措施,让只有知道这个auth的第三方程序才能通过post交互到我们的服务,我看了下ReadMe里面的"Require HTTP Basic Auth (Password) for Web Services", 这个是使用浏览器才能使用的,有类似的auth方法,让程序也需要通过一个auth才能访问我们的服务吗? 还是说这个basic auth本身就可以的,但是我不知道.
例如时候有类似这样子的方法:
原来打开的方法是: http://b.server.ip:9090
添加了auth后: http://b.server.ip:9090/token=xxxxxxx
谢谢.
Describe alternatives you've considered
No response
Affected area
@Becods commented on GitHub (Sep 23, 2022):
应该适用于 FireFox、Chrome、Safari
或者你也可以
将用户名和密码拼接为
用户:密码形式的字符串 ,编码为base64,拼接Basic ,放入Authorization头字段示例:
参考 Basic access authentication
@tonyho commented on GitHub (Sep 26, 2022):
Thanks.