kakawait / uaa-behind-zuul-sample

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

Remove loopback trick by Ribbon client #22

Closed kakawait closed 7 years ago

kakawait commented 7 years ago

Instead of using loopback trick for accessTokenUri like http://localhost:${server.port}/uaa/oauth/token, I found a way to enhance RestTemplate used to target accessTokenUri to add load balanced (Ribbon) feature.