Bonjour,

Je souhaite sécuriser une application Spring. Pour l'instant, l'authentification fonctionne parfaitement avec le CAS. Cependant, je voudrais ajouter la possibilité de s'authentifier avec un formulaire à part. Dans le fichier applicationContext, j'utilise un casAuthenticationProvider :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
	<bean id="casAuthenticationProvider"	class="org.springframework.security.cas.authentication.CasAuthenticationProvider">
		<property name="userDetailsService"><ref bean="constantRoleUserService" /></property>
		<!--<property name="casProxyDecider"><ref bean="casProxyDecider" /></property>-->
		<property name="ticketValidator"><ref bean="casProxyTicketValidator" /></property>
		<property name="serviceProperties"><ref bean="serviceProperties" /></property>
		</bean>
Je souhaiterais savoir qu'elle est la bonne méthode pour à partir d'un formulaire et une base de données accéder aux pages sécurisées par la CAS (simuler une authentification CAS).

Merci