zuul sample

https://github.com/kakawait/uaa-behind-zuul-sample/git

 

1.參考資料github

項目:https://github.com/kakawait/uaa-behind-zuul-sample/,按照這個項目實現後,雖然會跳轉到認證服務的登陸頁,但登陸成功後沒法跳轉回來,緣由是作了二次302,但302的過程當中將一些信息丟了,查緣由是,主要跟蹤了下面的類app

預過濾器:spa

0 = {ServletDetectionFilter@9816} ,肯定是否支持Dispatch請求
1 = {Servlet30WrapperFilter@9817} ,進行Servlet30請求包裝
2 = {FormBodyWrapperFilter@9818} ,FormBody包裝
3 = {DebugFilter@9819} 
4 = {PreDecorationFilter@9820} 
5 = {AuthenticationHeaderFilter@9821} ,addIgnoredHeaders不知道是啥意思
6 = {OAuth2TokenRelayFilter@9441} ,這個被跳過了,不知道是否能夠直接disable算了orm

   ctx.addZuulRequestHeader("authorization", ctx.get(TOKEN_TYPE) + " " + getAccessToken(ctx));get

正式過濾器:it

0 = {RibbonRoutingFilter@9478} 
1 = {SimpleHostRoutingFilter@9669} 
2 = {SendForwardFilter@9692} io

 

2.zuul中主要的類登錄

2.1 ZuulControllerrequest

public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {}

2.2 RibbonRoutingFilter

相關文章
相關標籤/搜索