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