【问题标题】:Firebase and the Google OAuth consent screenFirebase 和 Google OAuth 同意屏幕
【发布时间】:2017-09-20 15:19:27
【问题描述】:

我有一个使用 Firebase 开发的网络应用。它由 Firebase 托管,我的域已连接到它。它使用 Google 作为身份提供者进行身份验证。但是,当通过弹出窗口登录时,Google 的“OAuth 同意屏幕”会提供一个直接指向 Firebase 项目的链接。

有没有办法让链接指向相关的网站?

【问题讨论】:

    标签: firebase web-applications firebase-authentication google-oauth


    【解决方案1】:

    事实证明,我的方案有一个简单的解决方案。只需将传递给 firebase.initializeApp() 方法的 config 的 authDomain 参数设置为我的域(而不是默认的 .firebaseapp.com 值)。最初,这将导致 OAuth 屏幕引发错误,但它包含指向配置页面的链接,我需要在其中将 https://<my-domain>/_auth/handler 添加到授权处理程序列表中。

    【讨论】:

      猜你喜欢
      • 2020-05-02
      • 2019-12-07
      • 2019-03-20
      • 2021-08-25
      • 1970-01-01
      • 2019-08-03
      • 2018-07-17
      • 2020-10-29
      • 2021-05-04
      相关资源
      最近更新 更多