Switching Firebase Auth from Android SDK to Firebase Admin SDK

匆匆过客 提交于 2021-01-29 10:01:57

问题


Currently I have an android app that uses the Firebase Auth for user Authentication. I would like to move the authentication part to the Admin Sdk server, such that The android app makes an http request to the server and the server does the authentication. Unfortunately the the Admin SDK for Java does not have the signInWithEmailAndPassword method. Is there a way to go about this or do I have to include the android sdk on the server also?


回答1:


That's not a supported situation with Firebase Authentication. The client app must authenticate itself using the client SDK so that it can manage the ID token that lets the other SDKs work with respect to the security rules defined for those products (Realtime Database, Firestore, Storage).

You could call the Authentication APIs directly from the client, but it's far better to just let the client SDK do all that work for you.



来源:https://stackoverflow.com/questions/59079720/switching-firebase-auth-from-android-sdk-to-firebase-admin-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!