How to create a new realm with the Keycloak REST API?

In this blog post I want to show, how to create a new realm with Keycloak REST API , because later I want to automate the Keycloak realm creation for a workshop using curl in a bash script.

The reason of that blog post is, that the information in the REST API documentation wasn’t detailed enough for me. The image shows what I found first in the Keycloak REST API documentation .

keycloak-create-realm-01

In common it’s very simple to use the Keycloak REST API. For more details see in my blog post Getting started to secure a simple Java Microservice with Keycloak, MicroProfile and OpenLiberty.

First you need a bearer authorization token for an administration user and with that token you create a new realm using the realm json exported before.

Here is what I found:

I used POSTMAN to check it out. These are the steps I did in POSTMAN.

Continue reading

Expose and consume a REST API built with MicroProfile – a short teaser video

Part 4 is ready for my   “Let’s get started with cloud native Java applications on Kubernetes hands-on workshop”  3-minutes teaser videos series on youtube.

This short 3-minute teaser video is about: expose and consume a REST API built with MicroProfile in context of the cloud native starter project and workshop on GitHub project.

Check it out:

You can get more detailed information about the topic: Invoking REST APIs from Java Microservices in one of the blog posts of @Niklas.

Continue reading

„Let’s get started with cloud native Java applications on Kubernetes“ Our hands-on workshop is ready to rumble!

Our hands-on workshop: „Let’s get started with cloud native Java applications on Kubernetes“ , is ready to rumble!

cns-workshop

After all the effort Niklas and Harald did to deliver that awesome and valuable content of the “Cloud Native Starter” open sourced GitHub project, I contribute to that (ongoing) project with this hands-on workshop based on all the given great materials of blog posts, manuals and documentation which is available in the internet.

The outcome is an easy to consume hands-on workshop. The workshop  provides a wide but concentrated introduction to Java development with MicroProfile, Kubernetes, Containers, REST APIs, Traffic management, and Resiliency that is relevant for developers who want more hands-on practical cloud native development introduction of the usage of these technologies.

I would say, this workshop is a must have for beginners who start with cloud native Java applications on Kubernetes. We all put a lot of effort in this project to make that easy to consume.

Continue reading