Skip to content

LPF-24/auth-session-cookie

Repository files navigation

📝 Auth Session Cookie

This is a Java-based task manager application with role-based authorization, Cookie and Sessions-based session handling.

The application follows a clean layered architecture with a clear separation of concerns: controllers handle HTTP requests, services encapsulate business logic, and repositories manage access to data.

🚀 Technologies Used

  • Java 17
  • Spring Boot 3
  • Spring Security (Session + Cookie-based auth)
  • Spring Data JPA + Hibernate
  • Thymeleaf + HTML
  • PostgreSQL
  • Docker & Docker Compose

📦 Features

  • 👥 Registration & login (Cookie + Session)
  • 🪪 Account creation, update, deletion
  • 📌 Display information about employees and tasks
  • 📝 Task management (admin)
  • 👤 Role-based access (User/Admin)
  • 🧩 Input validation with custom annotations

🐳 Run with Docker

docker-compose up --build
  • Frontend: http://localhost:8080

👥 Sample Accounts

Role Username Password
Admin thomas@gmail.com Test234!
User alex23@gmail.com Test345!

🔐 Cookie + Session Authentication

  1. POST /auth/login returns personal account page at /employees/{id}/profile
  2. POST /auth/login invalidates the HTTP session and deletes cookies

📌 Project Status

✅ Core functionality is complete.
🛠 JavaDoc and integration testing to be added in future iterations.

👤 Author

LPF-24 — aspiring Java backend developer building real-world projects with Spring, REST APIs, Thymeleaf and Docker.

GitHub: @LPF-24

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Simple web app using Spring Security

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published