码迷,mamicode.com
首页 > 移动开发 > 详细

api-gateway实践(14)新服务网关 - 业务场景验证(五)api-gateway-engine携带有效token访问SvcApp (未完!!!!!!!!!!)

时间:2017-07-07 13:20:53      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:bsp   size   fresh   上下   准备   scope   匹配   index.jsp   targe   

api-gateway实践(14)新服务网关 - 业务场景验证(五)api-gateway-engine携带有效token访问SvcApp (未完!!!!!!!!!!)

环境信息

1、Security-Filter拦截(web.xml)

技术分享

2、Zuul-Filter拦截(web.xml)

 技术分享

3、zuul servlet(web.xml)

技术分享

 4、spring的DispatcherServlet(web.xml)

技术分享

准备工作

1、api-gateway-engine2向SvcApp申请access_token

http://localhost:8080/api-gateway-engine2/index.jsp

{"access_token":"dc125aaa-8715-4cc2-bf60-a4af57925413","token_type":"bearer","refresh_token":"9dfc790c-f586-4f6b-a370-2807eb277e43","expires_in":43199,"scope":"read write"}

http://localhost:8080/SvcApp/oauth/token

access_token2=dc125aaa-8715-4cc2-bf60-a4af57925413

2、api-gateway-engine访问SvcApp地址

 

一、请求上下文

1、Security配置

2、Security匹配的过滤器列表

 

二、请求拦截:Security执行 身份识别设置 和 权限检查

1、身份识别设置

2、权限检查

三、请求处理

api-gateway实践(14)新服务网关 - 业务场景验证(五)api-gateway-engine携带有效token访问SvcApp (未完!!!!!!!!!!)

标签:bsp   size   fresh   上下   准备   scope   匹配   index.jsp   targe   

原文地址:http://www.cnblogs.com/lexiaofei/p/7131186.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!