Results 1 to 2 of 2

Thread: entry-point-ref element

  1. #1

    Default 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. #2
    Join Date
    Dec 2010
    Posts
    315

    Default

    It looks correct.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •