kakawait / uaa-behind-zuul-sample

Spring AuthorizationServer load balanced behind Zuul
322 stars 156 forks source link

Error when get refresh token .(when token is expired) #36

Open stereo720712 opened 6 years ago

stereo720712 commented 6 years ago

Dear Sir: I am trying to practice spring cloud and oauth2 by your code. And I found a problem : When token is expired and go to refresh token, it failed. After trace code, i found the final http request is still htttp://service-name:port?parameter. So it's get faild at : OAuth2TokenRelayFilter.getAccessToken(). Can you help me to find the reason why the service name not change to real http address to execute Very thank you and appreciate.

stereo720712 commented 6 years ago

i found the problem is because the LoadBalancerInterceptor not work when a refresh token request invoke, interceptor become null, why ?