[英]Google drive, Firebase different client ids for same iOS app
First, I integrated Google Drive in my iOS native app and used GTMOAuth2 for authorization login, with a client id.首先,我将 Google Drive 集成到我的 iOS 本机应用程序中,并使用 GTMOAuth2 进行授权登录,并使用客户端 ID。
Then, I am now trying to integrate firebase authentication, and I got a new client id in GoogleService-Info.plist.然后,我现在正在尝试集成 firebase 身份验证,并且我在 GoogleService-Info.plist 中获得了一个新的客户端 ID。
When I used firebase authorization and then got the data in google drive, I got an Invalid Credentials error.当我使用 firebase 授权然后在 google drive 中获取数据时,出现无效凭据错误。
How can I use firebase authorization to get the data in google drive?如何使用 firebase 授权获取 google drive 中的数据? Why does the same APP have two client ids, can I modify the client id in GoogleService-Info.plist?
为什么同一个APP有两个client id,我可以修改GoogleService-Info.plist中的client id吗?
I have passed through the same.我也经历过。 After Enable GglDrive api,In Credential, Don't create new credential you'll find in below list(auto created by google services),You'll find one id with same ClientId & ReturnUrl like in Google.plist.
启用 GglDrive api 后,在 Credential 中,不要创建新的凭证,您会在下面的列表中找到(由 google 服务自动创建),您会发现一个与 Google.plist 中具有相同 ClientId 和 ReturnUrl 的 ID。 Use to download that file and use.
用于下载该文件并使用。 You'll not face this "invalid_client" error further.
您将不会再遇到此“invalid_client”错误。 Check image below I have shown with arrow:
检查下面我用箭头显示的图像:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.