spring-boot-keycloak Securing Spring Boot REST APIs with Keycloak KeyCloak Application using docker-compose docker-compose -f docker-compose.yml up Configuration KeyCloak Create Realm Settings Create ClientID Create Realm Role Create Users add Password Verify Endpoint KeyCloak (Token) Test Access by Postman Get Token BY Auth 2.0 Access jwt.io verify data token Run Application Employee mvn spring-boot:run Test Call Api pass param token KeyCloak 401 Unauthorized 200 Authorized