firebase-authentication

Firebase Auth - list of users by Custom Claims

ぃ、小莉子 提交于 2020-01-02 07:24:24
问题 We're using Custom Claims in Firebase Auth to manage access in Firebase and allow custom UI experience. We're now working on the User Admin part and we can't find a way to retrieve users by the custom claims. For example, a user belongs to an organization and have different access level - admin or user. We need to allow the organization's admin to see all their organization's users. We'd like to avoid using a separate database to manage organization users to not double up the data. Is it

Is Firebase Auth's local (persisted auth state) secure and safe from XSS and CSRF for browsers?

夙愿已清 提交于 2020-01-02 07:15:12
问题 I am using Firebase Auth for a web app that involves financial transactions. Thus, security is the most important thing for my app. According to this doc, Firebase can persist its token across multiple sessions by storing it somewhere. It does not mention how safe it is from XSS. Of course, I can just assume it's safe because it's Google, but I want to know more about it. We've all read articles noting how localStorage is unsafe for storing auth, and cookie + csrf token + jwt + httpOnly is

firebase error W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found

非 Y 不嫁゛ 提交于 2020-01-02 01:54:09
问题 I tried to build app based on login/signup accounts. I created it's Firebase and enable the authentication through email. I added the google-play-services.json file. I added apply plugin: 'com.google.gms.google-services' compile 'com.google.firebase:firebase-auth:10.0.1' in build.gridle(app) And in the module I added classpath 'com.google.gms:google-services:3.0.0' And this is my code public class splashscr extends Activity implements View.OnClickListener{ TabHost tab ; Button logbtn,signup;

How to remove captcha verification from Firebase phone auth using javascript?

廉价感情. 提交于 2020-01-02 01:11:37
问题 I am using firebase phone auth for the very first time and I see captcha verification is must proceed with the process, as per firebase official documentation. Though it serves a good purpose, but sometimes it becomes very bad for the user experience when it starts asking about the road signs, bridges and all. Is there a way to directly skip to the verification code right after getting user's number? As per the documentation, the code is mentioned below. Thanks. var phoneNumber =

Create user in database after Firebase Auth (android)

不羁的心 提交于 2020-01-02 01:04:16
问题 I'm building an Android app and I want my users to be Auth then added to the database. For now I'm only doing the Auth with an email and password, then I click register and the user is created in the Auth section in the Firebase console. But I also want my users to be added in the database. I want to add more fields (such as name, address etc) which will be stored in the users database in Firebase. I just don't really see how to do that. Anyone could explain please? Thanks! 回答1: You should

Cordova inAppBrowser won't work with firebaseAuth

北慕城南 提交于 2020-01-01 19:08:33
问题 I am building a hybrid app using the ionic framework. I'm using angularFire 2.0 with Firebase 3.0. I have the cordova plugin "inAppBrowser" installed. In the depreciated Firebase documents, that's all I need to have authWithOAuthPopup() fire up an inAppBrowser window and do the login process. Currently, I am using signInWithPopup() and it does nothing in my iOS app. The app works fine in browser using ionic serve. 回答1: Firebase 3.0 signInWithPopup/Redirect is not currently supported in a

PhoneAuth Firebase: Update Phone number

回眸只為那壹抹淺笑 提交于 2020-01-01 17:49:10
问题 I have implemented firebase phone auth to verify phone number in my project and its working fine for me, But not able to update phone number. Like if a user had logged in with phone number A and now he wants to update this to phone number B. How will it be solved? 回答1: The answer give above by @bojeil is inaccurate and does not answer the question above. The correct answer would be: Take a user through the standard IOS-Firebase phone verification process, then after a user is done you will

How to get oobCode for localization purpose

冷暖自知 提交于 2020-01-01 14:34:33
问题 Firebase allows only one language for confirmations emails. Whole nicely done products are useless for multi-language apps. I want to make my own confirmation system. The only question is how can I get this oobCode which is generated inside firebase. site.com?mode=&oobCode= Thank you. 回答1: There is currently no way to generate a valid oobCode value through the Firebase Authentication API. It can only be sent in the (as you've said "non-translatable") email message. But you can build your own

Can't import user account with CLI Firebase auth:import command

青春壹個敷衍的年華 提交于 2020-01-01 11:50:51
问题 I need to import a list of users, with email and password, in Firebase. I'm trying to import users in Firebase using the CLI auth:import command. (https://firebase.google.com/docs/cli/auth-import) I've choosed the HMAC_MD5 hash-algo, I'm using helpmeplease as secret string for encritption -> in Base64 becames aGVscG1lcGxlYXNl I'm using mypass as a test password: crypted with HMAC_MD5 and secret "helpmeplease" it becames 3a52377f6635d298436013953a1ce4dd and in Bas64 becames

Can't import user account with CLI Firebase auth:import command

本秂侑毒 提交于 2020-01-01 11:50:50
问题 I need to import a list of users, with email and password, in Firebase. I'm trying to import users in Firebase using the CLI auth:import command. (https://firebase.google.com/docs/cli/auth-import) I've choosed the HMAC_MD5 hash-algo, I'm using helpmeplease as secret string for encritption -> in Base64 becames aGVscG1lcGxlYXNl I'm using mypass as a test password: crypted with HMAC_MD5 and secret "helpmeplease" it becames 3a52377f6635d298436013953a1ce4dd and in Bas64 becames