Use of spring security for multi-user data sources on multiple login pages

Source: Internet
Author: User

The processing of the spring Security multi-login page expands the entrypoint on the Internet, but the policy bean does not exist in version 3.1, so I don't know how to write it, I saw the point code and didn't find these things .. I have such a requirement that a site has administrator login and member login. The two are not verified by a database, the first way to think of this is to judge the identity of the login user based on the hidden domain parameter value on the login page in userdetailsservice. Unfortunately, for such a parameter, it can be obtained in the filter, but it cannot be stored in userdetailsservice. If it is around, you can splice it with username and click "Remove" in userdetailsservice to solve the problem ..

 

However, there are different error pages for Logon errors on different login pages, and different success pages for Logon success .. What about these ..

Spring security does not really consider so many application scenarios ..

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.