Published in Keycloak·PinnedKeycloak EssentialsOpen Source Identity Solution for Applications, Services, and APIs In this post, we will see the core concept of Keycloak and application integration mechanisms. You can integrate frontend, mobile, monolithic application to microservice architecture. …Authentication3 min readAuthentication3 min read
Published in Keycloak·Oct 18, 2022Running Keycloak with TLS (Self-signed certificate)This post will go through how to quickly set up a self-signed TLS certificate for running an instance of Keycloak locally. Only for local development purposes. Setup Openssl Keycloak(Quarkus) distribution Generate the SSL certificate (self-signed certificate) in your preferred terminal openssl req -newkey rsa:2048 -nodes \ -keyout keycloak-server.key.pem -x509 -days 3650 -out keycloak-server.crt.pemTls2 min readTls2 min read
Published in Keycloak·Jul 27, 2022Dynamic Client Registration in KeycloakIn this post, you will learn about the dynamic client registration (clients-registration) API in Keycloak. It's a common use case to create clients in an automated way. Dynamic registration in Keycloak can be done in two ways: Using Admin API Client Registration API Admin API allows you to register clients…Keycloak5 min readKeycloak5 min read
Published in Towards Dev·Jul 15, 2022Using jq to fetch key value from json outputIn this post, you will get insights into using jq tool. For parsing json data & retrieve specific fields. Which can be further processed or used for any other operations. To know more about jq follow the link Objective: Parse the json from a file or end-point using `jq` and…Jq3 min readJq3 min read
Jun 8, 2022Error: error parsing template {{.data.”key-x”}}, template: output:1: bad character U+002D ‘-’Error return by the Openshift cluster when using the oc tool to retrieve secrets with a key containing a dash(“-”) in it. Solution Let’s say the secret is defined in follow namespace & namespace: test name of the secret: `config-parameters` Secret kind: Secret apiVersion: v1 metadata: name: config-parameters namespace: test data: test-id: dGVzdC12YWx1ZQ== type: Opaque Let’s try to retrieve the secret “config-parameters” with the key:”test-id”Openshift1 min readOpenshift1 min read
Apr 18, 2022nodef found org.apache.kafka.common.serialization.stringserializerException when you are trying to deploy a Kafka Producer/Consumer application as a jar. Problem I encountered this error while I was writing: Keycloak: Event Listener SPI & Publish to Kafka Example code Producer.java#L41 Here I defined the StringSerialized.class as a property for the Kafka Producer configuration. This application is deployed…Java1 min readJava1 min read
Published in Keycloak·Mar 26, 2022Secure JupyterLab using KeycloakIn this post, we will see how to secure JupyterLab & manage access for the JupyterLab notebook using Keycloak. I will be setting up the JupyterLab in the local system & require config changes for running it locally which will differ from the production setup. If you are not familiar…Keycloak3 min readKeycloak3 min read
Published in Keycloak·Mar 4, 2022Secure a Svelte app & Golang service with KeycloakIn this post, we will learn about how to secure a Svelte fronted application & Golang service using Keycloak. If you are not familiar with the Keycloak basics, you can go through this post Essentials. Let’s get started. About the Application Created a simple svelte frontend application. Which has a click button on…Keycloak5 min readKeycloak5 min read
Published in Keycloak·Jun 7, 2021Secure Kafka with Keycloak: SASL OAuth BearerThis post will do a step-by-step configuration of the strimzi-operator (Apache Kafka) on Openshift. Expose an external listener on the Openshift platform as a route over TLS and Secure the Kafka Cluster using Keycloak using SASL OAuth Bearer. Suppose you don’t want to do a bunch of configurations. An easy…Kafka6 min readKafka6 min read
Published in Keycloak·May 28, 2021Running Keycloak using PostgreSQL database.In this post, we will be going over how to configure the PostgreSQL database with Keycloak. Keycloak standard distribution comes with H2 embedded database. The process discussed in this post can be used for other supported databases like Mysql. Prerequisites Docker Keycloak (using version: 13.0.1) PostgreSQL JDBC 4.2 Driver, 42.2.20 git …Keycloak3 min readKeycloak3 min read