Unity Firebase 访问无需 Firebase 认证

huangapple go评论115阅读模式
英文:

Unity Firebase Access without Firebase Authentication

问题

我明白典型的认证系统使用Google或其提供商之一,但我有自己的认证系统,不兼容。

我想知道是否有可能创建一个在应用程序分发时就内置的“服务账号”。我的逻辑是这个“服务账号”是安全的,因为我们将需要我的认证系统的批准来使用它。

我知道有一个AnonymousAuthentication选项,但我想尽量避免出现外部(即Google)的登录界面。

英文:

I understand that the typical authentication system uses Google or one of their providers, but I have my own authentication system that isn't compatible.

I was wondering if it was possible to create a "service account" that is baked into the app as it's distributed. My logic is that this "service account" is secure because we will require my authentication system's approval to utilize.

I am aware of an AnonymousAuthentication option, but I want to avoid presenting an external (read: Google) login screen as much as possible.

答案1

得分: 0

Firebase提供了一种相对简单的方式来使用您自己的自定义身份验证进行登录。

使用您的自定义身份验证的最直接方法是将登录凭据传递给您的服务器,使用您自己的方法进行确认,然后使用Firebase Admin SDK 返回令牌,以供用户进行身份验证。

英文:

Firebase provides a relatively easy way to use your own custom authentication to sign in.

The most straightforward approach to using your custom auth is to pass login credentials to your server, confirm them using your own method and return tokens using the Firebase Admin SDK for users to authenticate with.

huangapple
  • 本文由 发表于 2023年6月6日 00:34:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76408406.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定