4 Replies Latest reply on May 8, 2018 3:54 PM by Sana Korejo

    identity - Picketlink login fails

    Sana Korejo Newbie

      I am new to picket link, on trying to login using below code I am getting failed authentication although my user name and password are correct.. Picket link compares the login password provided to what? Also is there any configuration I am missing, any hint would be really appreciated.

      @Inject Identity identity;

      @Inject DefaultLoginCredentials credentials;

      String user = "abc@abc.com";

      String password = "password";

      credentials.setUserId(user);

      credentials.setPassword(password);

      String result = identity.login().toString();