2.5.3. Basic Authentication
If you want to enable HTTP Basic Authentication, configure the
AuthenticationFilter
as follows:
<filter> <filter-name>AuthenticationFilter</filter-name> <filter-class>org.picketlink.authentication.web.AuthenticationFilter</filter-class> <!-- Configure HTTP BASIC Authentication Scheme --> <init-param> <param-name>authType</param-name> <param-value>BASIC</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>