I am working on a Katacoda scenario in which I connect a spring-boot application to a KeyCloak. I wanted to make it pretty minimal so here are my configs:
pom.xml
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-spring-boot-starter</artifactId>
<version>10.0.1</version>
</dependency>
</dependencies>
Application Properties
#Keycloak Properties
#Katcoda Url
keycloak.auth-server-url=https://2886795315-8444-ollie02.environments.katacoda.com/auth
keycloak.realm=todoRealm
#Client
keycloak.resource=openid-login-client
keycloak.public-client=true
My issue is when I hit an endpoint on my application it redirects correctly to the login page. But the problem is that the redirect_uri
it passes in is not ssl so http://2886795315-8080-ollie02.environments.katacoda.com/v1/todos
which causes a CORs issue.
I added this property to try to force https:
keycloak.ssl-required=all
But then it changes the redirect_uri
param it is passing into the keycloak login to https://2886795315-8080-ollie02.environments.katacoda.com:0/v1/todos
Does anyone have any idea why the url path has :0
appended to the front?