Results 1 to 5 of 5

Thread: only config AuthenticationProcessingFilterEntryPoint

  1. #1

    Default 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. #2
    Join Date
    Mar 2005
    Location
    montreal, Canada
    Posts
    52

    Default

    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

  3. #3
    Join Date
    Mar 2005
    Location
    montreal, Canada
    Posts
    52

    Default

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

  4. #4

    Default

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

  5. #5
    Join Date
    Mar 2005
    Location
    montreal, Canada
    Posts
    52

    Default

    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]

Similar Threads

  1. Overrides another bean within config...
    By kajh in forum SpringSource Tool Suite
    Replies: 2
    Last Post: Sep 16th, 2005, 12:38 PM
  2. Cannot reference my spring config files from another project
    By lorelia in forum SpringSource Tool Suite
    Replies: 4
    Last Post: Aug 30th, 2005, 01:52 AM
  3. Unexpected behaviour with multiple config files
    By rgitzel in forum Container
    Replies: 7
    Last Post: Mar 8th, 2005, 07:11 PM
  4. Config files with imports
    By p_d_austin in forum Container
    Replies: 3
    Last Post: Oct 25th, 2004, 11:33 AM
  5. Replies: 12
    Last Post: Sep 25th, 2004, 04:24 PM

Posting Permissions

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