"Test water CAS-4.0.3" No. 01 section _cas Service side build and import source code to MyEclipse

Source: Internet
Author: User
Tags cas

/** * @see------------------------------------------------------------------------------------------------------- -----------------* @see CAS (central authentication Service) * @see official website: Https://www.apereo.org/projects/cas * @see Source: http S://github.com/jasig/cas * @see https://github.com/Jasig/java-cas-client * @see Help: Https://wiki.jasig.org/display/CA sc/cas+client+for+java+3.1 * @see Currently the official version of the Java client for CAS is 3.3.3 and should be upgraded to this version immediately for security reasons * @see Note that since 3.1.11, Maven2 GroupID has  Changed to Org.jasig.cas.client * @see <dependency> * @see <groupId>org.jasig.cas.client</groupId> *       @see <artifactId>cas-client-core</artifactId> * @see <version>3.3.3</version> * @see </dependency> * @see-------------------------------------------------------------------------------------- ----------------------------------* @see Deploy CAS Server * @see 0. The environment used here is as follows * @see Centos-6.4-x86_64-minimal * @see APAC he-tomcat-8.0.21 * @see jdk-7u80-linux-x64 * @see cas-server-webapp-4.0.3 * @see cas-client-core-3.3.3 * @see 1. You can download Cas-server-webapp-4.0.3.war at the two URLs below. Then publish to Tomcat * @see http://central.maven.org/maven2/org/jasig/cas/cas-server-webapp/4.0.3 * @see/http mvnrepository.com/artifact/org.jasig.cas/cas-server-webapp/4.0.3 * @see 2. Can also download CAs source code, Build Your own war package (the resulting war content is the same as Cas-server-webapp-4.0.3.war) * @see https://github.com/Jasig/cas/ Releases download the latest version 4.0.3 get Cas-4.0.3.zip, and extract to Desktop * @see c:\users\jadyer\desktop\cas-4.0.3>mvn install-dskiptests * @see in At the end of the build, the error follows * @see Could not transfer artifact net.jradius:jradius-core:pom:1.0.0 from/to Coova (http://coova-dev.s3.a MAZONAWS.COM/MVN): Software caused connection Abort:recv failed * @see But it's okay, the war we want is now generated, it's \cas-4.0.3\cas-server- Webapp\target\cas.war * @see Deploy Cas.war to Tomcat and access http://127.0.0.1:8080/cas/* @see 3. The default validation rule before logging in to CAS * @see CAS-4.0 is As long as the user name and password are the same as authentication through * @see 4.0 after the change, the default username password is Casuser/mellon, it is configured in \web-inf\deployerconfigcontext.xml * @see------------------------------------------------------------------------------------------------------------------ ------* @create 2015-7-16 PM 4:27:40 * @author Xuan Yu 

/** * @see------------------------------------------------------------------------------------------------------- -----------------* @see Import myeclipse * Create a new Web Project in @see 1.MyEclipse with a name like Cas-server-web (5.0 on new Java EE version) * @ See 2. Unzip the Maven-built Cas.war and copy its contents to the new WEB project in the previous step * @see \web-inf\classes\ A large push properties file in the catalog and log4j.xml copy to SRC. * @see 3. Publish this WEB project to Tomcat and you should see the same effect * @see In addition, we will find the \web-inf of Cas.war \classes\ does not have a class file, in fact it is in the \web-inf\lib\cas-server-*.jar four jar file * @see If you want to import the four Cas-server-*.jar source code, you can do this as follows ( But generally not necessary) * @see 1.cas-server-security-filter-2.0.3.jar * @see Its source address is https://github.com/Jasig/ Cas-server-security-filter, there is actually only one Java file * @see can also be found here http://mvnrepository.com/artifact/org.jasig.cas/ cas-server-security-filter/2.0.3 * @see 2.cas-server-core-4.0.3.jar, Cas-server-support-generic-4.0.3.jar, Cas-server-webapp-support-4.0.3.jar * @see These three jar source code in the previous step to download to the Cas-4.0.3.zip, directly copied to the line * @see------------------------ ------------------------------------------------------------------------------------------------* @create 2015-7-16 PM 4:28:44 * @author Xuan Yu 

/** * @see------------------------------------------------------------------------------------------------------- -----------------* @see CAS supports SSO for HTTP protocol * @see Tomcat does not have the HTTPS protocol turned on by default, Access http://127.0.0.1:8080/cas/will see the following prompt on the page * @see Non-secure Connection * @see You is currently accessing CAS over a non-secure Connection. Single sign on won't work. The order to has a single sign on work and you must log in over HTTPS. * @see This tip is hard coded in \\WEB-INF\\view\\jsp\\default\\ui\\casLoginView.jsp, comments out of the words will not see * @see in order to enable the client under the HTTP protocol single point of success, You can modify the following two configurations so that they do not turn on HTTPS authentication * @see 1.\web-inf\deployerconfigcontext.xml * @see <bean class= "Org.jasig...support. Httpbasedservicecredentialsauthenticationhandler "> Add p:requiresecure=" false "* @see 2.\web-inf\ Spring-configuration\ticketgrantingticketcookiegenerator.xml and \web-inf\spring-configuration\ Warncookiegenerator.xml * @see p:cookiesecure= "true" to P:cookiesecure= "false" * @see-------------------------------- ----------------------------------------------------------------------------------------* @create 2015-7-16 PM 4:45:31 * @author Xuan Yu 







Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"Test water CAS-4.0.3" No. 01 section _cas Service side build and import source code to MyEclipse

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.