Announcement Announcement Module
No announcement yet.
problem with using entry-point and intercept-url patterns Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem with using entry-point and intercept-url patterns


    my configuration looks like this:

    <security:http entry-point-ref="loginUrlAuthenticationEntryPoint" auto-config="true" use-expressions="true" disable-url-rewriting="true">
    <security:intercept-url pattern="/web/**" filters="none" />
    <security:intercept-url pattern="/ajax/**" filters="none" />
    <security:intercept-url pattern="/user/**" access="hasRole('ROLE_USER')" />
    <security:form-login login-page="/index.htm" default-target-url="/start.htm" always-use-default-target="true" authentication-failure-url="/index.htm" />
    <security:logout />
    <session-management session-authentication-strategy-ref="sas" />

    <security:authentication-manager alias="authenticationManager">
    <authentication-provider ref='authenticationProvider' />

    <beans:bean id="loginUrlAuthenticationEntryPoint"
    class=" tion.LoginUrlAuthenticationEntryPoint">
    <beansroperty name="loginFormUrl" value="/index.htm"/>
    <beansroperty name="useForward" value="true"/>

    <beans:bean id="authenticationProvider"
    class=" onProvider">
    <beansroperty name="accountDao" ref="accountDao" />

    <beans:bean id="sas"
    class=" tion.session.ConcurrentSessionControlStrategy">
    <beans:constructor-arg ref="sessionRegistry" />
    <beansroperty name="maximumSessions" value="1" />

    <beans:bean id="sessionRegistry" class=" essionRegistryImpl" />


    So I am using the entry point with the URL index.htm which I want to access by a useForward.

    My problem:

    When I not log in and want to access the URL /user/home.htm (which is not allowed because of my ROLE_USER), this URL is nevertheless opened but I am not redirected to the index.htm because of the intercept-url pattern.

    What might be the failure with my configuration?