You need to develop a custom authentication provider and use it.

First of all you need to implements UserDetails interface to add email then
you have to implement your custom authentication provider which extends

AbstractUserDetailsAuthenticationProvider
<http://static.springsource.org/spring-security/site/apidocs/org/springframework/security/authentication/dao/AbstractUserDetailsAuthenticationProvider.html>

These are the main steps.

Hope this helps !

On Wed, Sep 22, 2010 at 2:04 PM, Reinaldo Coelho Sartorelli <
reinaldo.coe...@gmail.com> wrote:

> Sorry, I missed the email.
>
> Here in English, and sorry for bad english writing.
>
> Guys,
>    I'm trying to customize the code generated by AppFuse's Login
> my application.
>
>    Context:
>    AppFuse when you create the application by default logs Login
> User and Password, using a standard authentication system
> Java (I think the Spring where he uses an action action = "<c: url value =
> '/
> j_security_check'/>") to login.
>
>    The above action is in the login.jsp.
>
>    My intention is to change this structure to validate addition Login
> User E-Mail to the Login option.
>
>    Problem:
>    My problem is I am not able to customize an action
> Login to, this Java security scheme does not allow me
> simply change the action to use a service that I created and
> that is validated for the code that sends password via e-mail address
> (where
> before it was necessary to present username and login and now he accepts
> email).
>
>     If anyone knows how to perform this customization, or where can I find
> stuff to do that thank you.
>
> Thank you,
> Reinaldo.
>
> 2010/9/22 Josep García <jgar...@isigma.es>
>
> Maybe you can repost your question in English?
>>
>>
>> 2010/9/22 Reinaldo Coelho Sartorelli <reinaldo.coe...@gmail.com>
>>
>>> Pessoal,
>>>    Estou tentando customizar o código de Login gerado pelo Appfuse da
>>> minha aplicação.
>>>
>>>    Contexto:
>>>    O Appfuse quando cria a aplicação padrão efetua o Login por
>>> Usuário e Senha, através de um sistema de autenticação padrão do
>>> Java(Acho que do Spring onde ele usa uma action action="<c:url value='/
>>> j_security_check'/>") para efetuar o login.
>>>
>>>    A action acima se encontra no arquivo Login.jsp.
>>>
>>>    Minha intenção é alterar essa estrutura de Login para validar além
>>> do usuário o E-Mail como opção de Login.
>>>
>>>    Problema:
>>>    Meu problema é que não estou conseguindo customizar uma action
>>> para o Login, este esquema de segurança do Java não permite que eu
>>> simplesmente altere essa action para utilizar um serviço que criei e
>>> que está validado para o código que reenvia senha por e-mail (onde
>>> antes era necessário apresentar login e agora ele aceita login e
>>> email).
>>>
>>>
>>>    Sei que este é o primeiro post e que muitos nem mexeram com o
>>> Appfuse ainda, mas se alguém tiver dúvidas na instalação e uso inicial
>>> eu ajudo e depois vocês me ajudam :-P
>>>
>>> Abraço,
>>> Reinaldo.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>
>>>
>>
>
>
> --
> Reinaldo Coelho Sartorelli Linux Counter #227782
> http://pombolouco.com/liberdadenacabeca/
>

Reply via email to