- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
关于 this topic 还有一些其他问题/答案,但他们没有将 Firebase 与 Ionic 一起使用。我刚刚切换到新的 Ionic View,今天,我的应用程序在旧的 Ionic View 中运行,而新的 Ionic View 给了我这个众所周知的错误:
403 Error - Thats an error. Error: disallowed_useragent his user-agent is not permitted to make an OAuth authorization request to Google as it is classified as an embedded user-agent (also known as a web-view). blah blah blah
在我的代码中,我注入(inject)了 Firebase AuthProvider 并使用 angularfire2 进行连接,它看起来像
private getProvider(from: string): AuthProvider {
switch (from) {
case 'twitter': return new firebase.auth.TwitterAuthProvider();
case 'facebook': return new firebase.auth.FacebookAuthProvider();
case 'github': return new firebase.auth.GithubAuthProvider();
case 'google': return new firebase.auth.GoogleAuthProvider();
}
}
signIn(from: string) {
this.afAuth.auth.signInWithPopup(this.getProvider(from))
. . .
同样,这在浏览器或旧 Ionic 中效果很好,但在新 Ionic View 中效果不佳。我确实有一个相当大的库,具有通用的 OAuth 连接,但我认为使用 Firebase 的一个重要原因是我们将不再需要使用这些库和自己管理用户。
有没有办法通过 Ionic 在 iOS/Android 应用程序上进行 Firebase 身份验证?
最佳答案
您应该按照 this article 中的说明进行操作.我认为 signInWithPopup
方法不受支持,您应该尝试 signInWithRedirect
代替。
我通过将以下内容添加到我的 config.xml
来修复 disallowed_useragent
错误:
<preference name="OverrideUserAgent" value="Mozilla/5.0 Google" />
关于angular - Firebase + Ionic3 错误 : disallowed_useragent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47237896/
我是移动应用程序开发的新手,我正在开发一个 ios 应用程序。我正在使用谷歌驱动器从谷歌帐户将文档文件获取到我的应用程序中。我完成了该任务并且工作正常。但是现在当我尝试对其进行身份验证时它现在不工作它
我最近遇到了这个错误Error Message 我认为这是由于 Google Oauth 发生了这种变化:https://developers.googleblog.com/2016/08/moder
我正在尝试将 WebView 用于我的应用程序中的页面,但在尝试登录 google 时出现错误。 我知道谷歌需要一个已知的操作系统浏览器才能登录他们的服务,但有一些方法可以绕过他们的 OAuth。应该
关于 this topic 还有一些其他问题/答案,但他们没有将 Firebase 与 Ionic 一起使用。我刚刚切换到新的 Ionic View,今天,我的应用程序在旧的 Ionic View 中
我的团队使用Firebase身份验证,我们最近遇到了主要问题。我们开始在Facebook上刊登广告。不幸的是,facebook应用程序会打开应用程序内web View 中的所有链接。 Google阻止
直到最近,我才有一个独立的网络应用程序(例如添加到主屏幕)成功地通过 Google 的 OAuth 对用户进行了身份验证。显然,他们最近进行了更改,并且不允许 native Web View 启动 O
我正在尝试授权用户在 IOS 应用程序中使用 Google 日历 API。我正在使用 Google 的 OAuth2 功能来验证用户。授权页面打开时出现 403 错误,描述如下: This user-
我正在尝试授权用户在 IOS 应用程序中使用 Google 日历 API。我正在使用 Google 的 OAuth2 功能来验证用户。授权页面打开时出现 403 错误,描述如下: This user-
目前我正在开发 Xamarin Forms 应用程序并添加了 Google 身份验证。这是我来自 PCL 的代码: var authenticator = new OAuth2Authenticato
我正在尝试在我的项目中实现 Google Drive SDK,但似乎没有什么进展,我想上传图片并在 Google Drive 上创建文件夹,但我遇到了错误,我不知道如何解决,因为我发现与以下错误无关。
有很多关于这个问题的 StackOverflow 帖子,但没有一个提供网络应用程序通过谷歌网络身份验证在嵌入式浏览器(如 iOS 上的 Facebook/Facebook Messenger)中登录服
我正在尝试使用 Google 和 Facebook 实现登录。我已经使用 Xamarin.Auth 成功实现了 Facebook 登录,但是在 Google 登录 中我收到错误 disallowed_
我正在按照以下网址提供的说明进行操作:https://developers.google.com/drive/ios/quickstart?ver=swift . 昨天还可以,今天早上好像总是出故障。
当我尝试在 Azure B2C 登录页面上单击 google 登录时,它会将我重定向到另一个页面,并显示错误 403 disallowed_useragent。 这是我到目前为止尝试过的: 添加 尝试
当我尝试在 Azure B2C 登录页面上单击 google 登录时,它会将我重定向到另一个页面,并显示错误 403 disallowed_useragent。 这是我到目前为止尝试过的: 添加 尝试
我是一名优秀的程序员,十分优秀!