I am using CAS 3.2.1 . I want to write my own AuthenticationHandler. As of
now, I want to read in-memory data which has username,password and roles
like this :

 <bean id="userService"
class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
    <property name="userMap"><value>
        Shailendra=Mallik,ROLES_USER,ROLES_ADMIN
    </value>
   </property>
 </bean>
I got to know that I'll have to extend
AbstractUsernamePasswordAuthenticationHandler and will have to implement
authenticateUsernamePasswordInternal method which will return a boolean
value. We can intercept here user's input by using methods of
UsernamePasswordCredentials class.
My question is - how can I compare In-memory data with user-input data to
check the authentication of user ? 

-- 
View this message in context: 
http://www.nabble.com/Custom-AuthenticationHandler-tp18537780p18537780.html
Sent from the CAS Users mailing list archive at Nabble.com.

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to