Bonjour à tous,
Je me suis tenté à utiliser Sping security pour l'authentification de mon site.
J'ai réussi à faire quelque chose de très basique avec le fichier de conf suivant:
applicationContext.xml:
Mon souci est que spring security me génère une page de login lambda alors que je désire faire ma propre page de login en java (gwt-ext) et non avec une jsp et comment l'appeler dans le fichier de conf spring.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> <http auto-config="true"> <intercept-url pattern="/gwtspringsecurityproject/**" access="ROLE_USER"/> <intercept-url pattern="/gwt/**" access="ROLE_USER"/> <intercept-url pattern="/**/*.html" access="ROLE_USER"/> <intercept-url pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY" /> </http> <beans:bean id="customAuthListener" class="com.gwt.security.server.auth.CustomAuthListener"/> <beans:bean id="customAuthenticationProvider" class="com.gwt.security.server.auth.CustomAuthenticationProvider"> <!--security:custom-authentication-provider /--> </beans:bean> <authentication-manager alias="authenticationManager"> <authentication-provider ref="customAuthenticationProvider"/> </authentication-manager> </beans:beans>
Merci d'avance
Partager