I am sending the following POST request as per the documentation:
POST http://localhost:56049/auth/credentials?format=json HTTP/1.1
User-Agent: Fiddler
Host: localhost:56049
Content-Length: 64
{
"UserName" : "admin",
"Password" : "test",
"RememberMe" : true
}
However, it gives me an unexpected result:
{"responseStatus":{"errorCode":"ValidationException","message":"Validation failed:
\r\n -- 'User Name' should not be empty.\r\n -- 'Password' should not be empty.",
"stackTrace":[...]
Why does it think my user name and password are empty?
Ref. https://github.com/ServiceStack/ServiceStack/wiki/Authentication-and-authorization