火力地堡谷歌认证挂在Chrome扩展程序 [英] Firebase Google Authentication Hangs in Chrome Extension

查看:125
本文介绍了火力地堡谷歌认证挂在Chrome扩展程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现一个Chrome扩展的弹出窗口火力地堡的谷歌认证。常规电子邮件/密码认证工作正常,但是当我尝试与谷歌权威性,它挂起一个灰色的屏幕,其网址开头的的 https://auth.firebase.com/auth/google/callback?state= ......

I'm trying to implement Firebase's Google authentication in the popup window of a chrome extension. The regular email/password authentication works fine, but when I try with Google auth, it hangs on a grey screen whose URL begins with "https://auth.firebase.com/auth/google/callback?state=..."

任何想法是什么问题?

推荐答案

注意的火力地堡简单登录是建立在火力地堡认证的顶级,旨在简化用户身份验证和生成火力地堡验证。令牌在安全规则使用。

Note that Firebase Simple Login is a separate service built on top of Firebase Authentication, intended to simplify authenticating users and generating Firebase Auth. Tokens for use in Security Rules.

在写这篇文章的时候,通过在浏览器扩展弹出验证可通过火力地堡简单登录不支持,由于各地的OAuth认证起源的约束。为了使用火力地堡简单登录此任务,登录将要发生在托管域。

At the time of this writing, authenticating via pop-up in a browser extension is unsupported via Firebase Simple Login, due to the constraints around authenticating origins in OAuth. In order to use Firebase Simple Login for this task, the login will have to take place on a hosted domain.

请参阅Firebase认证为相关的信息和回答一个Chrome扩展背景页

这篇关于火力地堡谷歌认证挂在Chrome扩展程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆