基于 Apache 标头的身份验证模块
是否有一个 apache 身份验证模块可以盲目信任标头?
例如,如果反向代理将用户“mboorshtein”放入http标头中,是否有一个模块可以采用该标头并在httpd中设置正确的数据结构? (2.2.x)。我知道它不安全,但这只是一个原型,在我去实现自定义身份验证提供程序之前。
Is there an apache authentication module out there, that can blindly trust a header?
For instance if a reverse proxy were to put the user "mboorshtein" into an http header is there a module that take that header and set the correct data structure in httpd? (2.2.x). I know its insecure but this is just for a prototype, before I go and implement a custom authentication provider.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Apache 匿名身份验证。但它并不能帮助您构建新模块。并且标头必须与基本身份验证使用的标头(即授权)相同。为了确保这一点的安全,您需要绝对确保服务器不会接受来自反向代理之外的任何其他主机的请求。
http://httpd.apache.org/docs/2.2/mod/mod_authn_anon.html
You can use probably use Apache anonymous auth. It doesn't help you build a new module, though. And the header must be the same as what basic auth uses (i.e. Authorization). For this to be secure, you need to make absolutely sure the server won't accept requests from any other host than the reverse proxy.
http://httpd.apache.org/docs/2.2/mod/mod_authn_anon.html