【发布时间】:2014-09-24 23:09:47
【问题描述】:
我正在根据文档发送以下 POST 请求:
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
}
然而,它给了我一个意想不到的结果:
{"responseStatus":{"errorCode":"ValidationException","message":"Validation failed:
\r\n -- 'User Name' should not be empty.\r\n -- 'Password' should not be empty.",
"stackTrace":[...]
为什么它认为我的用户名和密码为空?
参考。 https://github.com/ServiceStack/ServiceStack/wiki/Authentication-and-authorization
【问题讨论】:
标签: authentication servicestack