Product SiteDocumentation Site

2.5.4. Digest Authentication

If you want to enable HTTP Digest Authentication, configure the AuthenticationFilter as follows:
<filter>
  	<filter-name>AuthenticationFilter</filter-name>
  	<filter-class>org.picketlink.authentication.web.AuthenticationFilter</filter-class>
  	
	<!-- Configure HTTP DIGEST Authentication Scheme -->
  	<init-param>
        	<param-name>authType</param-name>
        	<param-value>DIGEST</param-value>
    	</init-param>

	<!-- You can also provide the realm name. If this parameter is not set, defaults to 'PicketLink Default Realm' -->
        <init-param>
            <param-name>realmName</param-name>
            <param-value>My Realm</param-value>
        </init-param>
</filter>

<!-- Defines which URLs should be protected by this filter -->
<filter-mapping>
	<filter-name>AuthenticationFilter</filter-name>
  	<url-pattern>/*</url-pattern>
</filter-mapping>

Table 2.5. Initialization Parameters

Configuration Description
realmName Specifies the realm name.