在尝试身份验证令牌时遇到“ unsupported grant_type”问题

时间:2018-07-17 09:43:35

标签: swift

解决问题

  

不受支持的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"].

0 个答案:

没有答案