简体   繁体   中英

keycloak version to use with (react, spring boot, postgres)

what is the best version of keycloak to use with spring boot as backend and react as frontend and I can setup easily with a postgres database, I've tested the latest version 19.0.1 but I couldn't set it up with react and spring boot and it doesn't take the postgres DB I specified in env variables.

can you please suggest me the best version to use and some tutorials, videos or articles to learn more about it and how to implement it in production.

thanks in advance.

I'd recomend using the keycloak-spring-boot-starter. Here is an article on how to set it up: https://www.baeldung.com/spring-boot-keycloak

I would also recomend to always use the most recent version. Especially for a security tool like keycloak. If it doesn't work with the tutorial just set it up in the version the tutorial references and then migrate to a newer version step by step using migration guides.

I recommand you don't use Keycloak Spring adapters , it is deprecated .

The latest Keycloak version works perfectly. Maybe you just misconfigured or use the wrong libs.

For client (react app), pick a library from certified list

For resource-server (Spring REST API), use either:

Regarding the connection to Postgres, maybe should you return to the doc and read more carefully.

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