Skip to content
This repository has been archived by the owner on Nov 3, 2017. It is now read-only.

Configuring AuthenticationManager with AcceptUsersAuthenticationHandler

Dmitriy Kopylenko edited this page Jan 16, 2014 · 4 revisions

To configure an AuthenticationManager with all the default components and AcceptUsersAuthenticationHandler use the following configuration element:

<cas:authentication-manager-with-accept-users-handler>
        <cas:user name="user1" password="pass1"/>
        <cas:user name="user2" password="pass2"/>
</cas:authentication-manager-with-accept-users-handler>

In version 1.10

Version 1.10 introduces an ability to inject an attribute repository bean reference into an internally created UsernamePasswordCredentialsToPrincipalResolver by using a new optional attribute-repository-for-principal-resolver attribute like so:

<cas:authentication-manager-with-accept-users-handler attribute-repository-for-principal-resolver="attributeRepository">
        <cas:user name="u1" password="p1"/>
</cas:authentication-manager-with-accept-users-handler>
Clone this wiki locally