Announcement Announcement Module
Collapse
No announcement yet.
Setting up HTTP Basic Authentication Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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>

    Comment

    Working...
    X