Single Sign-On Cas Server to connect to different data source configurations, casserver

Source: Internet
Author: User

Single Sign-On Cas Server to connect to different data source configurations, casserver

Since there are many articles on download and Setup of Cas Server and Cas Client on the Internet, I will not describe them here. After the source code is imported into eclipse, it is as follows :( note: if the jar file is imported using maven, check whether the jar file is successfully downloaded)

Version: CasServer3.5.0

Here I will mainly talk about how Cas Server configures different data sources for authentication and logon. See deployerConfigContext. remarks are provided in the xml file and red box configurations (note: the database driver package needs to be introduced to which database to connect; otherwise, an error will be reported)

 

 

Custom CAS login interface: because the service is deployed in the Intranet, so no verification code, modify the interface please refer to this article: https://www.cnblogs.com/Mockingjay/articles/3578339.html

When designing a specific casLoginView. jsp style, do not change the logic code on the page. Just change the style. See completed custom logon

The client obtains the user information:

Two jar: cas-client-core-3.2.1.jar, commons-logging-1.1.1.jar

 

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.