Results 1 to 2 of 2

Thread: Setting up HTTP Basic Authentication

  1. #1
    Join Date
    Mar 2005
    Posts
    4

    Default Setting up HTTP Basic Authentication

    Hi,
    Can someone provide a concise example on how do I set up Acegi+Spring in order to protect some http resources using HTTP Basic Authentication? I already have an AuthenticationManager implementation which validates credentials using an external datasource. Bu i just cant wire things up with all the Acegi Filters.

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    The Contacts Sample uses the Basic authentication mechanism to process credentials. That shows the correct filter ordering. You can optionally remove a whole lot of the other filters, like remember-me, anonymouse and authenticationProcessingFilter. In the end you'll need:

    Code:
    	<bean id="filterChainProxy" class="net.sf.acegisecurity.util.FilterChainProxy">
          <property name="filterInvocationDefinitionSource">
             <value>
    		    CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
    		    PATTERN_TYPE_APACHE_ANT
                /**=httpSessionContextIntegrationFilter,basicProcessingFilter,securityEnforcementFilter
             </value>
          </property>
        </bean>

Similar Threads

  1. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  2. Unable to set BASIC authentication header
    By general_pattonm in forum Security
    Replies: 6
    Last Post: Mar 10th, 2005, 05:00 AM
  3. Transaction Management
    By caverns in forum Data
    Replies: 3
    Last Post: Mar 8th, 2005, 06:38 AM
  4. Replies: 8
    Last Post: Dec 7th, 2004, 06:13 PM
  5. Replies: 3
    Last Post: Dec 3rd, 2004, 02:45 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
  •