Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 解析REST API密钥会中断客户端密钥身份验证_Swift_Rest_Amazon Web Services_Parse Platform_Parse Server - Fatal编程技术网

Swift 解析REST API密钥会中断客户端密钥身份验证

Swift 解析REST API密钥会中断客户端密钥身份验证,swift,rest,amazon-web-services,parse-platform,parse-server,Swift,Rest,Amazon Web Services,Parse Platform,Parse Server,我目前正在开发一个与Parse交互的iOS应用程序,我们目前正在AWS上托管该应用程序 PFUser.logInWithUsername(inBackground: email.lowercased(), password: password) 我被要求创建一个RESTAPI密钥,我们的web开发人员将使用该密钥创建一个web应用程序,该应用程序也将访问所述解析实例。RESTAPI密钥已添加到解析初始化中 restAPIKey: process.env.REST_KEY || '' Rest

我目前正在开发一个与Parse交互的iOS应用程序,我们目前正在AWS上托管该应用程序

PFUser.logInWithUsername(inBackground: email.lowercased(), password: password)
我被要求创建一个RESTAPI密钥,我们的web开发人员将使用该密钥创建一个web应用程序,该应用程序也将访问所述解析实例。RESTAPI密钥已添加到解析初始化中

restAPIKey: process.env.REST_KEY || ''
Rest服务似乎可以很好地使用这一功能。但是,iOS应用程序不符合此更改的要求,在尝试进行身份验证时返回以下内容

[Error]: unauthorized (Code: 0, Version: 1.14.2)
有没有一种方法可以在不涉及客户机应用程序中的Rest密钥的情况下解决应用程序的这个问题?可能是云代码中的一些附加处理


如果可能的话,我宁愿避免在客户端应用程序中使用Rest密钥。

也许您的问题与此Github线程有关

线程中的结论是,您需要在服务器端设置clientKey。这将解决问题,并且无需从客户端发送/设置clientKey