concept Keycloak in category java

This is an excerpt from Manning's book Enterprise Java Microservices.
Thorntail defines each dependency that can be included by your application, such as JPA, JAX-RS, and most parts of Java EE. In addition to Java EE dependencies, Thorntail provides dependencies for libraries that can assist with developing Enterprise Java microservices such as Swagger, Keycloak, and other frameworks and libraries.
Keycloak is an open source project providing identity and access management for modern applications and services. Adding authentication to applications and securing services can be achieved with a minimum of fuss.
Right off the bat you need to let Maven know that you want to use Keycloak with your Thorntail microservice. For that, you need to add a dependency to your pom.xml:
<dependency> <groupId>io.thorntail</groupId> <artifactId>keycloak</artifactId> </dependency>The only other task is to define where Keycloak is, how it’s configured, and what needs protecting. Thankfully, you can do all that from within one file with Thorntail! You add a project-defaults.yml file into the src/main/resources directory of your Stripe microservice with the content shown in the following listing.
Depending on your needs, Keycloak is flexible enough to handle any situation that your application or microservice requires. A common requirement for typical application development, but still relevant for microservices, is the need to authenticate a user and use their credentials when calling services.