Managing Keycloak user metadata and custom attributes

Each user that is stored in Keycloak can store basic Metadata information such as name and email. Besides that, you can store arbitrary user attributes, also called Custom Attributes. In this tutorial, we will show an example application which retrieves User Metadata and Custom Attributes for a Keycloak Realm.

Read more

Keycloak tutorial for beginners – Mastertheboss

Keycloak is an Identity and Access Management Server for Modern Applications and Services. In this Keycloak tutorial we will learn how to set up Keycloak and configure it to authenticate/authorize Enterprise applications. First of all, download the latest stable build of Keycloak from http://keycloak.jboss.org/keycloak/downloads Then, you will need to patch our WildFly server in order … Read more

Keycloak OAUTH2 example with a REST Application

This article will guide you through understanding OAuth2 and OpenID usage with Keycloak using a JAX-RS filter named ContainerRequestFilter which is available in JAX-RS servers such as WildFly. OpenID is a process which deals with authentication (i.e. proving who you are). On the other habd, OAuth is about authorisation (i.e. to grant access to resources … Read more

Running Keycloak with Docker

Keycloak is an Open Source Identity and Access Management solution for modern Applications and Services. Docker Images for Keycloak are available on the quay.io Docker repository. Let’s see in this tutorial how we can boot it with Docker, using some common environment parameters. So as said, the Docker Image for Keycloak is currently maintained in … Read more

Installing Keycloak Client adapters on WildFly

This article covers how to install Keycloak Client Adapters on WildFly so that you can let Keycloak manage the whole authentication/authorization of your applications running on WildFly. There are mainly three options for patching WildFly with Keycloak Client adapters: 1) Download Keycloak Client Adapters and run the install scripts The most common option is to … Read more

Configuring Keycloak Database

This tutorial will show you three different ways to configure a different database for your Keycloak Identity Provider. Let’s check it out! Configuring a local Keycloak Database So the first way to configure a Keycloak Identity Provider with a Database is by adding a Datasource configuration specific for keycloak. This can be done by setting … Read more

Keycloak quickstart example

In this tutorial we will learn how to create a quickstart Java EE application secured with Keycloak using its command line interface (kcadm). The requirements to run this tutorial are: A Keycloak server A WildFly Application Server with Keycloak plugin installed You can check this tutorial for more details about the set up of Keycloak … Read more

Securing a MicroProfile application with Keycloak

In this tutorial we will learn how to secure a Microprofile application running with Thorntail runtime and Keycloak.   Keycloak is an Identity and Access Management Server for Modern Applications and Services. In this tutorial we will learn how to delegate a bash Web application authentication (running on WildFly) to a KeyCloak server. First of … Read more

Google Social Login with KeyCloak

In this tutorial we will learn how to create a Social Login with Keycloak using Google Identity Brokering An Identity broker is responsible for creating a trust relationship with an external Identity provider in order to use its identities to access internal services exposed by service providers. The identity provider is usually based on a … Read more