Hi all,
     Some users could authenticate through facebook or stand alone mode. So,
I need to reimplement the following method

@Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken
authcToken) throws AuthenticationException {
        UsernamePasswordToken token = (UsernamePasswordToken) authcToken;
        UsuarioDAO usuarioDAO=new UsuarioDAO();
        Usuario user = usuarioDAO.buscarPorMail(token.getUsername());

        if( user != null ) {
            return new SimpleAuthenticationInfo(user.getEmail(),
user.getClave(), "realmA");
        } else {
            return null;
        }
}

As I don't have anything similar to a password in a facebook authentication
- I don't know the password and I don't know anything that can work
similarly.

How can I incorporate facebook authentication to my shiro implementation?

Any help would be appreciate it.

My implementation is wicket-shiro impl.

Thanks in advance.


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus

Reply via email to