Announcement Announcement Module
Collapse
No announcement yet.
entry-point-ref element Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • entry-point-ref element

    greeting all.
    i need to do something when usre requested loginpage and i implement custom filter and
    dont use than <http auto-config="true">
    i think i must be do somethings like as below :

    Code:
    <http entry-point-ref="authenticationEntryPoint" use-expressions="true" >
    
            <custom-filter position="FORM_LOGIN_FILTER" ref="myLoginFilter"/>
            <intercept-url pattern="/loginp.jsp" access="permitAll"/>
            <intercept-url pattern="/login/failure.html" access="isAnonymous()"/>
            <intercept-url pattern="/**" access="hasRole('ROLE_USER')"/>
        </http>
        <beans:bean id="authenticationEntryPoint"
                    class="authenticate.CheckUserAtEntryPoint">
            <beans:property name="loginFormUrl" value="/loginp.jsp"/>
        </beans:bean>
    in my security xml file and implementing LoginUrlAuthenticationEntryPoint like as this:

    Code:
    public class CheckUserAtEntryPoint extends LoginUrlAuthenticationEntryPoint {
    is this correct way?

  • #2
    It looks correct.

    Comment

    Working...
    X