Little intro. I had this problem with last version of acegi, security 2 and now I upgraded to security 3 and it is still the same.
Problem being that after I logout from not secured content (only login.html page is secured) I have to submit the login information twice in order to go to my account.
Tomcat config:
Application Context:Code:<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" <!-- tried all java protocols here and it is the same with each one --> maxThreads="150" scheme="https" secure="true" SSLEnabled="true" clientAuth="want" keystoreFile="c:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\cert\tomcat.keystore" keystorePass="topsecretstuff" keyAlias="tomcat" />
Funny thing is that there is nothing in logs. Everything looks as it should. If I add this to channelProcessingFilter:Code:<bean id="filterChainProxy" class="org.springframework.security.web.FilterChainProxy"> <security:filter-chain-map path-type="ant"> <security:filter-chain pattern="/**" filters="channelProcessingFilter, <!-- without this it works nice and but NO https login --> httpSessionContextIntegrationFilter, securityContextPersistenceFilter, logoutFilter, usernamePasswordAuthenticationFilter, rememberMeProcessingFilter, anonymousProcessingFilter, exceptionTranslationFilter, filterInvocationInterceptor"/> </security:filter-chain-map> </bean> <bean id="channelProcessingFilter" class="org.springframework.security.web.access.channel.ChannelProcessingFilter"> <property name="channelDecisionManager" ref="channelDecisionManager"/> <property name="securityMetadataSource"> <security:filter-security-metadata-source path-type="ant" lowercase-comparisons="true"> <security:intercept-url pattern="/login.html" access="REQUIRES_SECURE_CHANNEL"/> <security:intercept-url pattern="/j_spring_security_check" access="REQUIRES_SECURE_CHANNEL"/> <security:intercept-url pattern="/images/**" access="ANY_CHANNEL"/> <security:intercept-url pattern="/css/**" access="ANY_CHANNEL"/> <security:intercept-url pattern="/**" access="REQUIRES_INSECURE_CHANNEL"/> </security:filter-security-metadata-source> </property> </bean>
The login works just fine but when I try to go to anyCode:<security:intercept-url pattern="/account/**" access="REQUIRES_SECURE_CHANNEL"/>
http:/host/**
page there is no user present. But if I go to
http:/host/account/**
the user shows up. And I have to logout from https:/host/j_spring_security_logout
because the
http:/host/j_spring_security_logout
doesn't work.
I even got the new book "Spring Security 3" from Peter Mularien just because of this but no luck. Got some nice ideas from it though.
I'm pulling my hear out here for 2 days now. Please HELP




.
