我创建了一个标准的Azure移动服务,并遵循Add authentication to your Mobile Services app .
注册Google身份并登录工作,我得到一个令牌,如下所示:
{
"user":{"UserId":"Google:123123123"},
"authenticationToken":"[token]"}
}
现在我想使用Postman或cUrl来运行对移动服务的REST调用,但我不知道如何将令牌添加到请求中 .
我创建了一个标准的Azure移动服务,并遵循Add authentication to your Mobile Services app .
注册Google身份并登录工作,我得到一个令牌,如下所示:
{
"user":{"UserId":"Google:123123123"},
"authenticationToken":"[token]"}
}
现在我想使用Postman或cUrl来运行对移动服务的REST调用,但我不知道如何将令牌添加到请求中 .
1 回答
在更详细地阅读了“Windows Azure移动服务”一书后,我添加了Header'X-ZUMO-AUTH'以及我从Google收到的authenticationToken .
Rest呼叫现在通过我从Google收到的UserId身份验证为用户 .