I have created a test server to check how things are. I have created an Applications, added a user manually, registered application to user, and created a password using the link given in email.
String apiKey = "xxx";
FusionAuthClient client = new FusionAuthClient(apiKey, "http://142.93.213.217:9011");
final UUID applicationId = UUID.fromString("yyyy");
LoginRequest request = new LoginRequest(applicationId, "chaks.gautam@gmail.com", "zzzzxxxxss");
ClientResponse<LoginResponse, Errors> result = client.login(request);
if (!result.wasSuccessful()) {
Log.e(TAG, "Could not Authenticate");
}else{
Log.d(TAG, "Logged in Successfully");
}
But I am still not able to login the user. Am I missing anything? It seems like the apiKey is wrong and hence I am unable to connect to the server. I am able to get the user using Node client API on the server side so I guess the setup of FusionAuth is correct. The error does not elaborate where I am wrong in the above steps and hence I am unable to debug.
I have created a test server to check how things are. I have created an Applications, added a user manually, registered application to user, and created a password using the link given in email.
But I am still not able to login the user. Am I missing anything? It seems like the apiKey is wrong and hence I am unable to connect to the server. I am able to get the user using Node client API on the server side so I guess the setup of FusionAuth is correct. The error does not elaborate where I am wrong in the above steps and hence I am unable to debug.
I am able to use the login API in Postman.