access to request object when using spring security -


When I am logging in, the URL and base are read on a combination of subdomain, user name and password should be user authorized . URL like / p>

is abc.xyz.com

I somehow need an object to get a subdomain and authorize the user using the subdomain and user name.

You can create your own pre-authorized And can add it to the Spring Security Filter Chain. The method in the filter is getPreAuthenticatedPrinciple (HttpServletRequest request) where you can view the request and act accordingly. If you want to make the check if the user has already been authenticated, just subdivide the base SpringSecurityFilter and add it to the filter series after the authentication step.


Comments