内容简介:feat: 增加 jap-http-api 模块。 (Gitee Issue #I43ZS7) feat: 增加 jap-ids-web 模块。 将 jap-ids 的过滤器打包为一个单独的组件。 feat: 添加 HTTP servlet 适配器以解耦 jakarta servlet。注[1] feat: [jap-...
- feat: 增加
jap-http-api模块。 (Gitee Issue #I43ZS7) - feat: 增加
jap-ids-web模块。 将jap-ids的过滤器打包为一个单独的组件。 - feat: 添加 HTTP servlet 适配器以解耦 jakarta servlet。注[1]
- feat: [jap-social] 支持绑定第三方平台账号,该版本将社会化登录和绑定账号独立开来,以使其更加使用与多场景。 (Gitee Issue #I46J6W)
- change: [jap-ids]
scope在各个流程中都更改为可选,遵循 RFC6749 规范。 - change: [jap-sso] 升级
kisso的版本为 3.7.7, 解决 jackson 的漏洞。 - change: [jap-mfa] 升级
googleauth的版本为 1.5.0, 解决 apache httpclient 的漏洞。 - change: 替换文档站主题 https://justauth.plus,解决文档站内存暴涨的问题。(Gitee Issue #I4958H | Github Issue #8)
- change: 升级
simple-http的版本为 1.0.5. - change: 升级
JustAuth的版本为 1.16.4. - change: 优化代码,添加 package-info。
注[1]:
在 1.0.5 以前版本,jap 中依赖 jakarta-servlet 中 javax.servlet.http 包下的 HttpServletRequest、Cookie、HttpServletResponse 、HttpSession,比如:
// jap 提供的接口
public interface JapStrategy {
default JapResponse authenticate(AuthenticateConfig config, HttpServletRequest request, HttpServletResponse response) {
return null;
}
}
// 在spring框架中使用 jap
XxJapStrategy.authenticate(config,request,response);
为了提高框架适配性,自 1.0.5 版本开始,JAP 去掉了 jakarta-servlet 依赖,采用了一套全新的接口(参考:jap-http),开发者在调用 JAP 接口时需要对原 request 进行适配。
比如,开发者使用了 jakarta-servlet,那么需要对 HttpServletRequest 进行适配处理:
// 在spring框架中使用 1.0.5 或更高级版本的 jap
XxJapStrategy.authenticate(config,new JakartaRequestAdapter(request),new JakartaResponseAdapter(response));
jap-http-api 更多使用帮助,请参考:https://justauth.plus/quickstart/jap-http-api/
以上所述就是小编给大家介绍的《JAP v1.0.5 发布,支持 Basic、Digest 和 Bearer 认证方式》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Cracking the Coding Interview
Gayle Laakmann McDowell / CareerCup / 2015-7-1 / USD 39.95
Cracking the Coding Interview, 6th Edition is here to help you through this process, teaching you what you need to know and enabling you to perform at your very best. I've coached and interviewed hund......一起来看看 《Cracking the Coding Interview》 这本书的介绍吧!