Skip to content

About

Admin Portal Service — A Spring Boot microservice that manages administrative privileges, authentication, and authorization using Keycloak (Dockerized). It integrates with a PostgreSQL database for persistent data storage and uses Flyway for schema migrations. Built with Spring Boot 3.3.5 and secured through OAuth2 and JWT.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Spring-boot-Keycloack

🔐 Admin Portal Service

A secure Spring Boot microservice designed to manage administrative privileges and access control using Keycloak for authentication and token-based authorization.
The service connects to a PostgreSQL database (via Docker) and supports schema migrations through Flyway.


🧠 Overview

The Admin Portal Service acts as the central authentication and authorization gateway within the MyCare system.
It leverages Keycloak for identity management, Spring Security for resource protection, and JWT tokens for secure access to endpoints.

With role-based access control (RBAC), administrators can perform privileged operations while other users are restricted according to their assigned roles.


🧩 Features

✅ Role-based authorization for admin users
✅ Secure login and JWT validation via Keycloak
✅ Integration with Dockerized Keycloak and PostgreSQL
✅ Database schema versioning using Flyway
✅ RESTful API architecture built on Spring Boot 3.3.5
✅ Centralized configuration and modular design for scalability


🛠️ Tech Stack

Category Technology
Language Java 21 ☕
Framework Spring Boot 3.3.5 🌱
Security Keycloak, OAuth2, JWT 🔐
Database PostgreSQL 🐘
Migration Tool Flyway 🪶
Build Tool Maven 🧱
Containerization Docker 🐳

Admin Portal Service

🐳 Dockerized Components

  1. Keycloak 2.PostgreSQL

🔒 Authentication Flow

1.A user logs in via Keycloak (Realm: Mycare_realm).

2.Keycloak issues a JWT access token.

3.The token is passed with each request to the Admin Portal Service.

4.Spring Security validates the token via the Keycloak public JWK endpoint.

5.Access is granted or denied based on roles (ADMIN, USER, etc.).


⭐ "Authorization is the heartbeat of secure systems — protect it like your data depends on it."

About

Admin Portal Service — A Spring Boot microservice that manages administrative privileges, authentication, and authorization using Keycloak (Dockerized). It integrates with a PostgreSQL database for persistent data storage and uses Flyway for schema migrations. Built with Spring Boot 3.3.5 and secured through OAuth2 and JWT.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages