vendredi 19 juin 2015

Wicket AuthenticatedWebApplication do not allow to be Signed In from different accounts on the same computer

I am using Wicket for an Authenticated Application , and for testing reasons , I would like to be logged in on the application with two different accounts in the same time . Even though I am trying on different browsers , even using Incognito mode , it does not work . When trying to sign in with the second user it automatically log me into the first account that I had logged in.

My authenticate method from the class that extends AuthenticatedWebSession looks like this :

    @Override
    public boolean authenticate(String username, String password) {
        User loginUser = userDao.getUser(username, HashPassword.hash(password));
        if(loginUser != null)
        {
            this.user=loginUser;
            return true;
        }

        return false;

    }




Aucun commentaire:

Enregistrer un commentaire