User failed to be authenticated.
Agile version - 9.3.6.29
I am able to login to Agile plm UI but when trying to connect using sdk API using below code, always struck with error - Error code : 60062
Error message : Invalid username or password
Root Cause exception : javax.security.auth.login.LoginException: java.lang.SecurityException: User failed to be authenticated.
Code -
public static void main(String[] args) throws APIException {
String agileUrl = "https://agile.abc.com/Agile";
String agileUserName = "*****";
String agilePassword = "*******";
AgileSessionFactory factory = AgileSessionFactory.getInstance(agileUrl);
HashMap<Integer, String> params = new HashMap<Integer, String>();
params.put(AgileSessionFactory.USERNAME, agileUserName);
params.put(AgileSessionFactory.PASSWORD, agilePassword);
IAgileSession session = factory.createSession(params);