Apache Keycloak

Keycloak

What is keycloak ?

This is an authentication service provided by Apache and  developers no need to worry about high secure user authentication if they are going to use keycloak.

They can set up keycloak server and get connect with keycloak server when authenticating they applications.

How to use Keycloak :-

01. Download keycloak

http://www.keycloak.org/index.html

02. Unzip or gunzip the tar file.

03. Go  to bin and run standalone

./standalone.sh

04. Then load http://localhost:8080/auth and create admin user. Now you should be able to login as admin via http://localhost:8080/auth/admin/

05.  Now you have to create realm user as below.

add-realm-menu.png

06. Now create user under  the newly created realm

users.png

add-user.png

credentials.png

Now you can login to that user account under below url.

http://localhost:8080/auth/realms/demo/account

07. Now you have to a client add-client.png

This client is the web application that developer have developed and which has authentication panel to login but need to secure by keycloak. Once created the client you can edit that client profile. Click on installation tab and select Keycloak OIDC JSON and then click download button.

Downloaded file would be some thing similar to below.

{
“realm”: “demo”,
“auth-server-url”: “http://localhost:8080/auth”,
“ssl-required”: “external”,
“resource”: “testclient”,
“public-client”: true
}

This file can be placed where your project HTML file placed.

Install Jboss :- Follow below URL

https://docs.jboss.org/author/display/WFLY8/Getting+Started+Guide

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Advertisements