Skip to content

hendisantika/spring-boot-multiple-security-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-multiple-security-config

Multiple login page with Spring Security

In real projects, you may encounter some cases where the application needs to use two different login methods depending on the user’s role, for example, there are applications that will need normal users to login using tokens or QR code, and admin login using username and password. How to implement multiple login pages using Spring Security? I will guide you in this sample.

Things todo list:

  1. Clone the repository: git clone https://github.com/hendisantika/spring-boot-multiple-security-config.git
  2. Navigate to the folder: cd spring-boot-multiple-security-config
  3. Run the application: mvn clean spring-boot:run
  4. Open your favorite browser: http://localhost:8080/user/view
  5. Open your favorite browser: http://localhost:8080/admin/view
  6. Use these users: user/user or admin/admin

Images Screen shot

User Login

User Login

User Login

User Page

User Page

Admin Page

Admin Page__

About

Spring Boot Multiple Security Config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published