
Rupam Das • over 7 years ago
Consumer Authentication Error
1) I have been able to register user through API.
2) I am able to obtain list of registered users
but while trying to authenticate a user ( consumer) it always give invalid username password combination.
For example if I register a user abc with password abc, while authenticating I always get 401.
I checked with interactive API tool https://developer.knurld.io/developer-guide and result is always same.
Is there anything I am missing? this is my payload:
{"password":"abc","username":"abc"}
Comments are closed.
2 comments
Nilesh Darade • over 7 years ago
Sure we can help you in figure out what is the issue?
Can you please send code snippet of authenticating user so we can take a look?
Rupam Das • over 7 years ago
Thanks for the reply. I figured it out. There was an extra '\0' at the end of the username string. I used a Trim() method with username and password fields. Now it's working fine.