Apache Sling 中的摘要身份验证是否可行?
Apache Sling 中可以进行摘要身份验证吗?如果有的话,任何指点表示赞赏!
Is digest auth possible in Apache Sling? If so any pointers appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前尚不支持,但绝对可以添加它。
在 Sling 中,AuthenticationHandler 从 HTTP 请求中提取凭据以供 JackRabbit 进行身份验证。标准 HTTP AuthenticationHandler 的源代码在这里:
http://svn.apache.org/repos/asf/sling/trunk/bundles/auth/form/src/main/java/org/apache/sling/auth/form/impl/
它目前不支持摘要身份验证,但可以作为构建它的起点。
It's not currently supported but it's definitely possible to add it.
In Sling, an AuthenticationHandler extracts credentials from an HTTP request for authentication by JackRabbit. The source for the standard HTTP AuthenticationHandler is here:
http://svn.apache.org/repos/asf/sling/trunk/bundles/auth/form/src/main/java/org/apache/sling/auth/form/impl/
It doesn't currently support digest authentication, but would serve as a starting point for building it.
理论上消化是可能的。但由于 Jackrabbit 以散列形式存储用户密码,因此实施起来可能并不容易。
恕我直言,使用带有基本身份验证的 SSL 可能比使用摘要式身份验证更好。
或者您可能需要考虑不同的身份验证机制,例如 OpenID。
Theoretically digest would be possible. But since Jackrabbit stores user passwords in hashed form it would probably not be easy to implemented.
IMHO using SSL with Basic Authentication might be preferrable to using Digest authentication.
Or you might want to consider different authentication mechanisms such as OpenID.