解决问题
不受支持的grant_type
尝试获取身份验证令牌时。
将参数传递为:
let payloadParams = ["grant_type" : "password",
"username" : "some@gmail.com",
"password" : "some",
"domain-name" : "some.Database"]
电话是:
NetworkInterface.fetchJSON(.autharization, headers:nil, payload: payloadParams, requestCompletionHander: {(success, data, response,error)
标题为:
["Content_Type" : "application/x-www-form-urlencoded"].