Git Product home page Git Product logo

spring-boot-auth-keycloak's Introduction

SpringBoot REST API Keycloak Auth

Development setup

Java version: JDK 17

Maven version >= 3.8.x

Run Microservices

docker-compose up

Available microservices:

The blue part in the schema is part of the project https://github.com/trodix/activemq-jms-client

Postgresql

Database for keycloak

Port 5432

Keycloak

Authentication server (SSO)

Port 8080 for web ui

Port 9990 for wildfly managment interface

OpenLDAP

Users and Groups source (synchronized with Keycloak)

port LDAP 1389

port LDAPS 1636

Prometheus

Metrics agregator

Port 9090

Node exporter

Linux metrics collector

Port 5100

Cadvisor

Docker metrics collector

Port 5110

Grafana

Metrics visualisation and alerting

Port 3000

Grafana renderer

Transform metrics Graphs to .png images for mailing alerts

Port 3001

Maildev

Development SMTP server for grafana mail alerts

Port SMTP 1025

Port Webmail 1080

Activemq

Message Broker

Port 61616

Run backend API

mvn spring-boot:run

Open REST API to http://localhost:8000/swagger-ui/index.html

Add users and assign them to roles

Generate a token with Postman

Tests

Generate Code Coveage report

mvn jacoco:prepare-agent test install jacoco:report

Monitoring

With SpringBootAdmin

http://localhost:8000/admin

With grafana:

spring-boot-auth-keycloak's People

Contributors

trodix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.