FAUN — Developer Community 🐾

We help developers learn and grow by keeping them up with what matters. 👉 www.faun.dev

Follow publication

Member-only story

Integrating Keycloak SSO with Jenkins

--

Hi Folks! This is a tutorial explaining the Keycloak SSO integration procedure with the Jenkins server. If you don’t have any idea about the Jenkins or Keycloak and SSO terms, I would suggest you take a look at my previous articles explaining SSO terms, Keycloak Server, and Jenkins Server. By taking a read at those two articles, you can get an idea about SSO technologies, Keycloak server, and Jenkins which are very important to this tutorial but will not be explained in this context. So Let’s dig into the tutorial.

Note: I have installed Keycloak Server and Jenkins on the EC2 computer engine.

In order to install the Keycloak Server and Jenkins follow the below links

  1. Create a Realm in Keycloak
Adding a security realm to Keycloak

By default, the master realm will be there. The master realm has access to all other realms. Therefore, I recommend creating a new realm.

Adding a realm.

In this use-case, I’ve created a security realm for the test environment.

2. Create a client in the Realm

If you’re expecting to integrate a client with Keycloak, you’re required to create a client. So Let’s create a client for Jenkins. You can use any client-Id, client protocol should be OpenID-connect and you can use the Jenkins server public IP address as the root server URL.

adding a client to Keycloak

3. Generating the Keycloak Installation JSON

once you create the client, you have to generate the keycloak JSON in order to use it with the later stages of this tutorial (using with the Keycloak plugin with…

--

--

Published in FAUN — Developer Community 🐾

We help developers learn and grow by keeping them up with what matters. 👉 www.faun.dev

Written by Supun Sandeeptha

Follow me for content on Cybersecurity, DevOps, and Software Development practices.

Responses (1)

Write a response