kakawait / uaa-behind-zuul-sample

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

Authentication Failed: Could not obtain access token #27

Closed isis-github closed 6 years ago

isis-github commented 7 years ago

Hi @kakawait ,

I have gone through your code. It is working as expected when I run it locally.

Using spring-boot 1.5.7.RELEASE

I want to achieve a similar thing.

So I add spring session and redis surport to Uaa Service and Uaa Server ,there are dependencies as fowlling.

org.springframework.boot spring-boot-starter-data-redis
    <dependency>
        <groupId>org.springframework.session</groupId>
        <artifactId>spring-session-data-redis</artifactId>
    </dependency>

when I run Uaa Service greater than one.I get "Authentication failed could not obtain access token". "InvalidGrantException: Invalid authorization code: FDHOsW"

debug logs from zuul gateway. apigateway.txt.txt

kakawait commented 6 years ago

@isis-github thank you for reporting. Sorry for delay I was really busy.

Do you still have the issue?

Otherwise I will try to check when I have some time

isis-github commented 6 years ago

Yes,I understand. the " authorization code " should be store in databases not in memory.