Skip to content

tahagur/TestMultipleLoginPagesFormAndBasic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A sample project with multiple login page in using Spring Security.

form user resources are under /form/formHome (login with user/test), logout with /form/logout

Basic authentication user is under /basic/basicHome (login with basic_user/test) when prompted, logout with basic/logout

Note

Since these login pages are not from different applications, they share the SecurityContextHolder or the security context. So if you login from one login page and then try to go the protected resource of the other, you won't be redirected to the next login page. Instead you'll get the 403 (depending on the roles assigned by the different login pages). At a time only one login session can be maintained.

About

Spring security project with Form and HttpBasic login options. Basic logout is also implemented in this project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 66.7%
  • HTML 33.3%