Dashboard > CAS User Manual > Home > Authentication > Generic
Log In   View a printable version of the current page.
Generic
Added by Scott Battaglia , last edited by Scott Battaglia on Jan 31, 2008  (view change)
Labels: 
(None)


Generic Authentication Handler

Note that all of these authentication handlers accept a PasswordEncoder, which would allow you to translate the supplied password into something like an MD5 hash, which would mean you do not need to store the passwords on your system in plain text. The examples below are simple, and thus do not use this advanced technique.

Accepts Users Authentication Handler

<bean class="org.jasig.cas.adaptors.generic.AcceptUsersAuthenticationHandler">
    <property name="users">
       <map>
          <entry key="scott" value="password" />
       </map>
    </property>
</bean>

File System Authentication Handler

<bean class="org.jasig.cas.adaptors.generic.FileAuthenticationHandler"
   p:fileName="file:/opt/cas/file_of_passwords.txt" />

Example password file:

scott::password
bob::password2

Powered by a free Atlassian Confluence Open Source Project License granted to Java Architectures Special Interest Group. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators