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


i using wicket authenticated application , , testing reasons , logged in on application 2 different accounts in same time . though trying on different browsers , using incognito mode , not work . when trying sign in second user automatically log me first account had logged in.

my authenticate method class extends authenticatedwebsession looks :

    @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;      } 

check happens @ iauthenticationstrategy#load() [1]. wicket applies "rememberme" functionality. don't see how cookie still there in incognito mode or different browser.

  1. https://github.com/apache/wicket/blob/11e969a030007e6bd0987bba551f3cf2b6b1c4a3/wicket-core/src/main/java/org/apache/wicket/authentication/strategy/defaultauthenticationstrategy.java#l114

Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -