(http mode)
Installation EnvironmentTomcat7.0 JDK6 CAS SERVER 3.5.2, download address http://www.jasig.org/cas/download 1. Open Cas\web-inf\deployerconfigcontext.xml file (1 Logoff system default login mode: class= "Org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler" >
The complete code is as follows:
Declare that my
(http mode)
Installation EnvironmentTomcat7.0 JDK6 CAS SERVER 3.5.2, download address http://www.jasig.org/cas/download 1. Open the Cas\web-inf\deployerconfigcontext.xml file (1 ) Logout system default Logon method: class= "Org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler" >
The complete code is as follows:
Declare my
Cas single point java, php client skip SSL authentication, login in http mode here you can briefly talk about the modified content, also previously queried from the internet! Below are the jar package modification content and java, php client corresponding to the need to modify the configuration instructions !? 1. WEB-INFdeployerConfigContext.xml lt; bean? Classorg. jasig.
:
Where:
Queryattributemapping is the query condition attribute used to assemble SQL statements. After the preceding configuration, combined with the encapsulated query SQL statement, select * From userinfo where loginname = # username #
Resultattributemapping is the structure attribute returned after the SQL statement is executed. The key corresponds to the database field and the value corresponds to the client to obtain parameters.
2. Configure the parser for converting user a
CAS officials are already developing integrated plug-ins for CAs and OAuth, using the Scribe-up project to obtain user-authorized basic information. Planned in the cas3.5.0 version of the launch, but now available, the following will be Sina Weibo, for example, how to use Sina Weibo account to log in to CAS, to https://github.com/
Yesterday I tried to deploy the Java client side of CAs to another machine, and the result was a problem. (localhost deployment CAS server and Java client side see: http://www.cnblogs.com/sunshineatnoon/p/4119565.html)The main client access time error: Javax.net.ssl.SSLHandshakeException:java.security.cert.CertificateException:No subject Alternative names present.Later found a solution on the StackOverflow:
Modify the CAS Server:
/Webroot/WEB-INF/spring-configuration/ticketgrantingticketcookiegenerator. xml file:
Bean
ID
= "Ticketgrantingticketcookiegenerator"
Class
= "Org. JASIG. Cas. Web. Support. cookieretrievingcookiegenerator"
P: cookiesecure
= "True"
// The default value is true. HTTPS is used. If you only need HTTP, change it to false.P:
not. If yes, you can get your results. I often do this.How to cancel a single sign-on in jasig cas
Recently, I am working on single-point logon. The software has the sample war of roller4.0.1jasig CAS 3.3.2acegi security that can complete unified logon. However, I encountered the following problems:. the current situation is that the user is not sure whether he
such handler and declaring
14 | edu. someschool. its. cas. MySpecialHandler here, or you might use one of the handlers provided in the adaptors modules.
15
16 17 class = "org. jasig. cas. authentication. handler. support. SimpleTestUsernamePasswordAuthenticationHandler"/>
18 + -->
19
20
21 22 p: filter = "sAMAccountName = % u"
23 p: searchBase = "ou = yourOU, dc
In fact, there is no need to repeat unnecessary things on the Internet, but I can't help but make a few complaints. I want to share my experience with others, so I need to pretend to be true. The software is constantly being upgraded and its usage will be constantly improved. do not always use the old version method in the new version. It will not only help others, but delay time, it is better to go directly to the official website to translate English documents. Even if it is painful, it is bet
How to remove HTTPS authentication?
Note: by default, HTTP can also access CAS server, but authentication, login, exit, and other operations have no effect. Therefore, the following changes must be made:
1. Go to the WEB-INF \ spring-configuration directory
Open the warncookiegenerator. xml file and change P: cookiesecure to false.
2. Open the ticketgrantingticketcookiegenerator. xml file.Similarly, change P: cookiesecure to false.
3. Open WEB-INF \ d
CAS implementation SSO Single sign-on principle
1.CAS Introduction
1.1.What is CAS?
CAS (central authentication Service) is an enterprise-class, open-source project initiated by Yale University, designed to provide a reliable single sign-on solution (belonging to Web SSO) for Web application systems.
Http://www.blogjava.net/rain1102/articles/227739.html
CAs (central authentication Service) is an open source project initiated by Yale University, and according to statistics, about 10 Java projects that use open source to build Web SSO, there are 8 of them using CAS. I disagree with these statistics, but one thing is certain that CAS is the most str
Single Sign-on, or SSO, is one of the most popular solutions for enterprise business integration, and SSO enables users to access all trusted applications in multiple application systems with only one login. CAS (central authentication Service) is a good single sign-on framework for WEB applications, this article describes the principles, protocols, configuration and use of CAs in Tomcat, for
1. Introduction of CAS 1.1. What is a CAS?CAS (central authentication Service) is an enterprise-class, open-source project initiated by Yale University, designed to provide a reliable single sign-on solution (belonging to Web SSO) for Web application systems.CAS began in 2001 and officially became a project in Ja-sig in December 2004.1.2. Key Features1. Open sour
1. Introduction of CAS 1.1. What is a CAS?CAS (central authentication Service) is an enterprise-class, open-source project initiated by Yale University, designed to provide a reliable single sign-on solution (belonging to Web SSO) for Web application systems.CAS began in 2001 and officially became a project in Ja-sig in December 2004.1.2. Key Features1. Open sour
1. Introduction of CAS 1.1. What is a CAS?CAS (central authentication Service) is an enterprise-class, open-source project initiated by Yale University, designed to provide a reliable single sign-on solution (belonging to Web SSO) for Web application systems.CAS began in 2001 and officially became a project in Ja-sig in December 2004.1.2. Key Features1. Open sour
1. Introduction of CAS 1.1. What is a CAS?CAS (central authentication Service) is an enterprise-class, open-source project initiated by Yale University, designed to provide a reliable single sign-on solution (belonging to Web SSO) for Web application systems.CAS began in 2001 and officially became a project in Ja-sig in December 2004.1.2. Key Features1. Open sour
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.