简体   繁体   中英

Keycloak 18 +Spring boot

I want to use Keycloak 18 with my Spring boot 2.7.2 version. I can run & config Keycloak in a docker container (bitnami/keycloak:18), and finally I've got token by Postman. And then I tried to configure Spring boot by https://www.baeldung.com/spring-boot-keycloak . When I start SB I've got an error: Failed to load URLs from http://localhost:48080/auth/realms/XXX/.well-known/openid-configuration java.lang.Exception: Not Found

where XXX is an existing realm.

I think so something is changed in Keycloak 18.

Has somebody a working example with Spring boot & keycloak?

thx Zamek

Finally I found it: In application.properties I used

keycloak.auth-server-url=http://localhost:48080/auth but it needs keycloak.auth-server-url=http://localhost:48080

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM