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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -