Skip to content

新增Swagger的Authorization全局授权功能 #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 22, 2018
Merged

新增Swagger的Authorization全局授权功能 #68

merged 5 commits into from
Mar 22, 2018

Conversation

gumutianqi
Copy link
Contributor

  1. 新增了 Swagger 的 Authorization 功能,开始 Api Key 的授权模式;
  2. 同时授权模式支持通过 authRegex 正则表达式进行匹配哪些URL传递授权信息;
  3. 升级 Springfox-swagger 到 2.8.0;
  4. 升级 lombok 到 1.16.18;
  5. 升级spring-boot到 1.5.9.RELEASE;

2. 同时授权模式支持通过 authRegex 正则表达式进行匹配哪些URL传递授权信息;
3. 升级 Springfox-swagger 到 2.8.0
4. 升级 lombok 到 1.16.18
5. 升级spring-boot到 1.5.9.RELEASE
@dyc87112
Copy link
Member

@gumutianqi 感谢PR!!!可否补充一下README中的这部分配置说明

2. 优化springfox在2.8版本更新后废弃的方法;
3. 核心升级主要是终于修复了SecuritySchemes和SecurityContexts在这个版本的可用性,已经默认开启ApiKey模式,可自由配置;
3.1 默认ApiKey("Authorization", "token", "^.*$"),分别为鉴权策略ID,鉴权是header的参数名,和需要开启鉴权URL的正则;
@gumutianqi
Copy link
Contributor Author

好的,没问题,马上补充了提交上来

@gumutianqi
Copy link
Contributor Author

搞定了,求合并,公司内部今天已经用上了,高大上的新UI+完美的Token鉴权功能

@dyc87112 dyc87112 changed the base branch from master to 1.6.1 March 22, 2018 00:59
@dyc87112 dyc87112 changed the base branch from 1.6.1 to 1.7.0 March 22, 2018 01:06
@dyc87112 dyc87112 merged commit 372461f into SpringForAll:1.7.0 Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants