Hi,
I'm using Websphere 7 and Spring Security 3 and keeps getting UNAUTHENTICATED after I login.
My web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>All_Admin_User</web-resource-name>
<description />
<url-pattern>*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>Authenticated User</role-name>
</auth-constraint>
</security-constraint>
My applicationContext-security.xml:
<sec:http auto-config="true" realm="Demo EOL Login" use-expressions="true" access-denied-page="/accessDenied.jsp" >
<sec:intercept-url pattern="/internal/**" access="hasRole('ROLE_VIEW_EARS_ONLINE')" />
<sec:intercept-url pattern="/external/**" access="hasRole('ROLE_VIEW_EARS_ONLINE')" />
<sec:intercept-url pattern="/**" access="permitAll" />
<sec:form-login/>
<sec:custom-filter position="PRE_AUTH_FILTER" ref="webspherePreAuthFilter" />
</sec:http>
The log from websphere:
MyWebSpherePreAuthenticatedProcessingFilter - principal name is UNAUTHENTICATED
Authentication a is null
I'm using form login for my login_j2ee.jsp I also using the j_spring_security_check action:
<form name="logonForm" action="j_spring_security_check" method="post">
But some how Websphere can't authenticate my login.
Anyone who has had the same problem and managed to solve it?
Kind regards
Jerry Johansson


Reply With Quote
