ivangfr / springboot-react-keycloak

The goal of this project is to secure movies-app using Keycloak (with PKCE). movies-app consists of two applications: one is a Spring Boot Rest API called movies-api and another is a React application called movies-ui.
398 stars 156 forks source link

Cannot access api via postman #3

Closed barounis closed 3 years ago

barounis commented 3 years ago

Hi Ivan, you did a great job with this demo app it has helped me a lot. Congrats! But I do face a problem. I just cannot hit the endpoint via postman. When I do not provide a token I get a 400 bad request with an HTML response in the body saying:

Invalid parameter: redirect_uri

When I try to call the api after I receive a token I get a 401 unauthorized. Any hint what can go wrong ? Maybe some Keycloak configuration ?

Thanks in advance!

barounis commented 3 years ago

it seems like localhost and 127.0.0.1 are different entities for Keycloak :( I am closing the issue