Skip to content

Spring Boot application implementing Form-Based Authentication using Spring Security. After successful login, users are automatically redirected to the Store Home Page.

Notifications You must be signed in to change notification settings

vatsalvarma/Spring-Security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Spring Security Form-Based Authentication

Spring Boot application implementing Form-Based Authentication using Spring Security. After successful login, users are automatically redirected to the Store Home Page. Screenshot 2026-01-22 225757


Screenshot 2026-01-22 230756
Screenshot 2026-01-22 225835

🧰 Tech Stack

  • Java 17
  • Spring Boot
  • Spring Security
  • Thymeleaf
  • Maven

✨ Features

  • Custom login page
  • Form-based authentication
  • In-memory user configuration
  • Role-based access
  • Redirect to store page after login
  • Logout support

πŸ— Authentication Flow

Login Page β†’ Spring Security β†’ Authentication Success β†’ Store Page
user:vhere
password:v123

πŸ“ Project Structure

ds
β”‚
β”œβ”€β”€ src/main/java/com/example/store
β”‚ β”œβ”€β”€ config
β”‚ β”‚ └── SecurityConfig.java
β”‚ β”‚
β”‚ β”œβ”€β”€ controller
β”‚ β”‚ └── StoreController.java
β”‚
β”‚ └── StoreApplication.java
β”‚
β”œβ”€β”€ src/main/resources
β”‚ β”œβ”€β”€ templates
β”‚ β”‚ β”œβ”€β”€ login.html
β”‚ β”‚ └── store.html
β”‚ β”‚
β”‚ └── application.properties
β”‚
β”œβ”€β”€ pom.xml
└── README.md

πŸš€ Author

Vatsal Varma
Spring Boot | Spring Security

About

Spring Boot application implementing Form-Based Authentication using Spring Security. After successful login, users are automatically redirected to the Store Home Page.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published