Skip to content

hungdv98/keycloak-blockchain-user-federation

 
 

Repository files navigation

Keycloak Blockchain User Federation

Decentralized Distributed Single Sign On Authentication System with Keycloak

Supported Keycloak Version : 10.0.1

Keycloak

Keycloak

Elasticsearch

Elasticsearch

Kibana

Elasticsearch

Redis

Redis

Hyperledger Fabric

Hyperledger Fabric

Hyperledger Explorer

Hyperledger Explorer

Spring Boot

Spring Boot

Prerequisites

  • Jdk 1.8
  • Maven 3.x
  • Docker 19.03.x
  • Docker Compose 1.25.x

Installation

cd keycloak-user-storage-blockchain
mvn clean install
sudo cp target/user-storage-blockchain.jar ../blockchain-sso/keycloak/jars
cd ..
cd blockchain-sso/first-network
./byfn.sh up -a -s couchdb
cd ..
sudo chmod +x build.sh
./build.sh
docker-compose up -d

Getting Started

Keycloak

Keycloak Admin Username : admin
Keycloak Admin Password : keycloak
Keycloak Admin Url : http://localhost:9080/auth/

Keycloak Login

Keycloak blockchain federation is enabled by default on blochain realm.

Keycloak User Federation

The following operations are currently active in the keycloak admin panel.

  • View All Users on Blockchain
  • Create User on Blockchain
  • Update User on Blockchain
  • Delete User on Blockchain
  • Change User Password on Blockchain
  • Authenticate User on Blockchain
  • Search User on Elasticsearch

Keycloak User View

Blockchain User Rest Api

Admin Username : admin
Admin Password : root
Swagger Url : http://localhost:8081

Blockchain Rest Api Swagger

Basic authentication is enabled in all rest apis.
Only admin user can access these APIs.
All rest apis can be tested on the swagger.

Blockchain Rest Apis

Hyperledger Explorer

Admin Username : admin
Admin Password : adminpw
Hyperledger Explorer Url : http://localhost:8090

All transactions on the blockchain network can be viewed on hyperledger explorer.

Hyperledger Explorer View

Fabric Explorer

Fabric Explorer Url : http://localhost:8081/explorer

Block info,block hash,blockchain network info information on the blockchain network can be viewed on fabric explorer.

Fabric Explorer View

Kibana

Kibana Url : http://localhost:5601

Indexes on the elasticsearch side on kibana can be viewed

Kibana View

Used Technologies

  • Spring Boot 2.2.6
  • Keycloak
  • Elasticsearch
  • Kibana
  • Redis
  • Swagger
  • Hyperledger Fabric
  • Hyperledger Explorer
  • Fabric Explorer

Todo

  • Keycloak Blockchain Federation Helm Deployment

About

Hyperledger Fabric Keycloak User Federation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 56.9%
  • Shell 36.7%
  • Go 6.3%
  • Dockerfile 0.1%