Generic

Table of Contents
Home
Overall Architecture
Authentication
Authentication Managers
Security Policy
TicketRegistry
Testing
Protocols
Advanced Features
Tutorials and HOWTOs
Troubleshooting
Services Management
Extensions

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
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.