简体   繁体   中英

Switching Firebase Auth from Android SDK to Firebase Admin SDK

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM