用户可见的iOS Firebase Auth域 [英] iOS Firebase Auth Domain visible to users

查看:48
本文介绍了用户可见的iOS Firebase Auth域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在寻找解决此问题的方法,但是我发现的所有内容似乎都适用于Firebase Web应用程序,而不适用于iOS实现.

I have searched for solutions to this issue but everything I've found seems to be applicable to a firebase web app, not to iOS implementations.

当使用iOS的Firebase电话身份验证来验证用户时,我知道重新验证不太可能出现.但是,如果确实如此,它将为Recaptcha创建一个Web视图,如下所示:

When verifying a user using firebase phone auth for iOS, I understand the recaptacha is very unlikely to appear. However in the event it does, it creates a webview for the recaptcha like so:

我有什么办法可以向用户隐藏 myProjectId-12345.firebaseapp.com ?恐怕不是很干净或安全.我无法以任何形式找到关于此主题的文档,并且解决该问题的大多数堆栈溢出答案似乎仅适用于firebase web sdk.

Is there any way for me to hide the myProjectId-12345.firebaseapp.com from the user? It's not very clean or secure I'm afraid. I haven't been able to find anything in the way of documentation on this topic, and most stack overflow answers that solved the issue seem to be applicable to the firebase web sdk only.

我在某处想念它吗?我也遵循了有关静默通知的文档,因此通常不会出现recaptcha.根据文档,只有极少数的用户会遇到重新输入密码的情况",但我仍然想说明这些用户.

Am I missing it somewhere? I have followed the documentation for silent notifications as well, so normally the recaptcha does not appear. From the documentation, "only a very small percentage of users will experience the recaptcha", but I would still like to account for those users.

推荐答案

设置您的域以进行托管

第1步:添加域

  • 在项目的托管"页面上,输入用于连接自定义域:

  • From your project's Hosting page, enter the wizard for connecting a custom domain:

如果只有一个托管站点,请单击连接域".如果你有个以上的托管站点,请单击查看"查看所需的站点,然后
单击连接域.输入您想要的自定义域名连接到您的托管站点.

If you have only one Hosting site, click Connect domain. If you have more than one Hosting site, click View for the desired site, then
click Connect domain. Enter the custom domain name that you'd like to connect to your Hosting site.

(可选)选中该框以重定向自定义项上的所有请求
域到第二个指定域(例如example.com和
www.example.com 重定向到相同的内容).

(Optional) Check the box to redirect all requests on the custom
domain to a second specified domain (such that example.com and
www.example.com redirect to the same content).

单击继续以启动验证过程.

Click Continue to initiate the validation process.

第2步:验证域所有权

如果在连接域"设置向导中要求,请验证您的顶点域.

If requested in the Connect Domain setup wizard, verify your apex domain.

第3步:上线

  • 在Firebase控制台的连接域"窗口中,选择快速"为新站点进行设置,或者如果已有站点,则为高级设置"在其他托管服务提供商上运行,并且需要零停机时间迁移.

有关详细信息,请参见.

Have a look at this for detailed information.

这篇关于用户可见的iOS Firebase Auth域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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