如何使用 Firebase 验证专用设备?

问题描述 投票:0回答:1

我有几个使用 Android Management API 的专用设备,这些设备需要访问我的 AppEngine 端点、云存储等。在我的 Kiosk 应用程序中,我当前正在使用 Firebase AuthUi(Google 登录)并最初登录到所有具有相同 Gmail 地址的设备。 有没有一种方法可以使用 Firebase 对我的设备进行身份验证,而不需要我使用相同的 Gmail 手动登录每台设备?

android firebase-authentication android-management-api
1个回答
0
投票

创建特定的电子邮件和密码组合,并通过托管配置将其发送到您的应用程序。

按照 https://developer.android.com/work/managed-configurations 中的步骤设置托管配置 xml 文件,然后将

policy.applications[n].managedConfiguration
设置为 {"email": "[email protected]" ,密码:“好,很难猜到的密码”}

然后从应用中的托管配置获取托管电子邮件和密码(也在上面的 ling 中进行了描述),并使用它来登录 Firebase。

© www.soinside.com 2019 - 2024. All rights reserved.