Dropwizard 是否也支持摘要认证?我发现的只是基本身份验证和 OAuth。这方面的示例代码会很好。
如果确实没有摘要支持并且已经存在代码,那么在 DW 中进行摘要验证的最佳想法是什么?
实现过滤器将终止对非身份验证所需资源的使用。
到目前为止我发现了什么:
- How can I test HMAC authentication using Dropwizard? (从 2012 年开始?)
- http://gary-rowe.com/agilestack/2012/10/23/multibit-merchant-implementing-hmac-authentication-in-dropwizard/ (也许对以后有用)
- https://gist.github.com/usamadar/2912088 (HttpDigestAuthServlet 处理摘要认证)
最佳答案
据我所知——答案是否定的(至少不是官方的)。目前仅有的两种受支持的身份验证方案是 Basic Auth + OAuth ( http://dropwizard.io/manual/auth.html )。
我也找不到任何第三方 validator ——抱歉 :(
关于java - Dropwizard 摘要认证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26804030/