Announcement Announcement Module
Collapse
No announcement yet.
only config AuthenticationProcessingFilterEntryPoint Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • only config AuthenticationProcessingFilterEntryPoint

    I want to only config a authenticationProcessingFilterEntryPoint
    for support ACEGI_SECURITY_CONTEXT_KEY in HttpSession.

    How to?



    Code:
      <bean id="authenticationProcessingFilterEntryPoint"
      class="net.sf.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint">
    
        <property name="loginFormUrl">
          <value>/customlogin.jsp</value>
        </property>
    
        <property name="forceHttps">
          <value>false</value>
        </property>
      </bean>

  • #2
    I'm sorry I didn't understand what you want.
    Normally an authenticationProcessingFilterEntryPoint is just for defining the form to trigger when redirecting the user to the login page.

    Can you elaborate a little more with your issue/need ?

    thanks

    paskos

    Comment


    • #3
      I think what you are looking for is HttpSessionContextIntegrationFilter. This filter manages the session (but once the request is done).

      Comment


      • #4
        I want to only mapping a filter for reading login info to session.
        Is it possible?

        Comment


        • #5
          Yes it's possible, Acegi has defined different filters for the different phases of security :

          - HttpSessionContextIntegrationFilter loads the context into session
          - authenticationProcessingFilterEntryPoint to redirect the user to the login page when trying to access a secured ressource
          - AuthenticationProcessingFilter will detect that the request is a "authenticate me" request.
          - SecurityEnforcementFilter will check if the ressource the user is trying to access is secured or not.

          Hope it helps

          paskos[/list]

          Comment

          Working...
          X