- Devaj Mody
- Connor O'Neill
A simple Spring Boot application demonstrating basic authentication and authorization using Spring Security.
- User login/logout
- Role-based access control
- In-memory user storage
- Basic web interface
- Spring Boot 3.5.3 - Application framework
- Spring Security 6.5.1 - Authentication and authorization
- Spring Data JPA - Data persistence layer
- Thymeleaf - Template engine for web pages
- Maven - Build tool
- Java 11 - Programming language
- Java 11 or higher
- Maven 3.6 or higher
Download the project files to your local machine.
cd AuthenticationAndAuthorizationExamplemvn clean compilemvn spring-boot:runOpen your web browser and go to:
http://localhost:8080
The application will automatically redirect you to the login page.
- Admin User: username=
admin, password=admin - Regular User: username=
user, password=user
- Login Page:
http://localhost:8080/login - Dashboard:
http://localhost:8080/dashboard - Admin Panel:
http://localhost:8080/admin/panel(Admin only) - User Profile:
http://localhost:8080/user/profile(User and Admin)
Press Ctrl+C in the terminal where the application is running.