Flash FileReference loose cookies during upload issue (2)

I will give solutions for Java EE applications in this article.

First I will introduce how to configure SSO (Single Sign-On) and SSL in Tomcat server.

Realm Refer: http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html

Very easy if you follow the above reference. Just give a example for auth-method = BASIC:

1. Edit Tomcat conf/server.xml, add following XML under Host node

<!-- SingleSignOn valve, share authentication between web applications -->

<Valve className="org.apache.catalina.authenticator.SingleSignOn"/>

2. Edit web.xml in your web application

<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Intra Web Application</realm-name>
</login-config>
<security-role>
<description>The role that is required to access intrasites</description>
<role-name>intrauser</role-name>
</security-role>

<security-constraint>
<web-resource-collection>
<web-resource-name>test</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>intrauser</role-name>
</auth-constraint>
</security-constraint>

However, SSL configuration is somewhat difficult.

Refer: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

To be continue…

“Flash FileReference loose cookies during upload issue (2)”的一个回复

Allie进行回复 取消回复

电子邮件地址不会被公开。 必填项已用*标注