api-gateway實踐(10)新服務網關-新需求驗證(三)api-gateway-engine攜帶有效token訪問SvcApp

來源:互聯網
上載者:User

標籤:實踐   處理   上下文   uri   cap   nbsp   access   列表   ges   

環境資訊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實踐(10)新服務網關-新需求驗證(三)api-gateway-engine攜帶有效token訪問SvcApp

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.