firebase-authentication

I'm Developing an Android app and using Firebase as my Backend

非 Y 不嫁゛ 提交于 2019-12-20 05:55:12
问题 By Using Firebase , all my Logic will be inside the client app . So if someone got my source code by reverse engineering the android app , then he/she can easily change the Firebase References (node names) and can change things of other users and that's not a good thing at all. My app uses Phone Authentication to authenticate Users . but The hacker can change the reference and then authenticate himself using his phone no and then he is good to go altering someone else's account . So how to

Firebase Hosting - Members Only / Secured Webpages? [duplicate]

孤人 提交于 2019-12-20 05:29:13
问题 This question already has answers here : Can Firebase hosting restrict access to resources? (2 answers) Closed 3 years ago . I understand that there are Realtime Database Rules which can be configured to restrict access to data at multiple levels. That's great. What about hosting? Are 'Members Only' webpages secured exclusively by the Realtime Database Rules? In other words, the client side Javascript could look at the firebase.auth().currentUser; properties to determine what form , table ,

How to prevent new user registration on Firebase?

社会主义新天地 提交于 2019-12-20 04:38:49
问题 Is there any way to turn off more users from signing up on Firebase after I've signed up specific users? For instance, if I only want 10 particular users to be signed up and no more, is there a way to turn off future signups? 回答1: After some digging, even though this method isn't officially listed in the documentation, I found that you can automatically delete any new user that's created once they have signed up using Cloud Functions and the admin SDK. Here's the code I used to delete any new

Error in adding dependency for firebase-ui-auth:2.3.0

心不动则不痛 提交于 2019-12-20 04:13:12
问题 I'm facing this issue since yesterday... I am adding: //Add Library compile 'com.android.support:design:26.1.0' compile 'com.firebaseui:firebase-ui:0.2.0' compile 'com.google.android.gms:play-services-auth:11.2.2' compile 'com.google.firebase:firebase-auth:11.2.2' and the only code left for the app is: compile 'com.firebaseui:firebase-ui-auth:2.3.0' As soon as I'm adding this I'm getting an error: Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute

Confusion on how to use “IdToken” properly

北城余情 提交于 2019-12-20 02:53:07
问题 I have been trying to implement an OAuth 2.0 authentication process into my app. We have a backend server with REST API, fully coded in Java and with Spring integrated. The app is registered on Firebase (I can access it through the Console) and I have successfully implemented the Google SignIn process and the Email/Password (users get added in my userbase as displayed in the Firebase Console). My problem here is most probably my poor understanding of the OAuth process: as I understand it, I

How do I manually view an authenticated user's display name in Firebase?

筅森魡賤 提交于 2019-12-20 02:37:09
问题 I know that you can set/retrieve an authenticated user's display name using Firebase but where is this being stored? Can I login to the Firebase console to see the display name? Thank you! Edit: Basically, the reason I need to be able to do all this is to prevent 2 users from having the same display name (username). 回答1: Where is the Firebase user's display name being stored ? Well it's a good question because it's hidden somewhere but it's not easily displayed . Can I login to the Firebase

How to use FirebaseUI for Google authentication on iOS in Swift?

情到浓时终转凉″ 提交于 2019-12-20 01:42:13
问题 I'm following https://firebase.google.com/docs/auth/ and want to use FirebaseUI (https://github.com/firebase/FirebaseUI-iOS/tree/master/FirebaseUI) for authentication. The UI shows successfully and I'm able to click "sign in with google" and then complete the web sign in flow. The app re-opens with the auth url, but the authUI function never fires. What's wrong? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { //

Firebase user.updateProfile({…}) not working in React App

瘦欲@ 提交于 2019-12-20 01:14:14
问题 So, I have this ReactJS app, there is a user database, The function for creating the user is this import { ref, firebaseAuth } from './../Components/config' export function auth (email, pw) { return firebaseAuth().createUserWithEmailAndPassword(email, pw) .then(saveUser) } export function saveUser (user) { return ref.child(`users/${user.uid}/info`) .set({ email: user.email, uid: user.uid, number: "" //custom }) .then(() => user) } as you see the user is made of 3 properties, email, uid, and a

Firebase user.updateProfile({…}) not working in React App

喜夏-厌秋 提交于 2019-12-20 01:14:02
问题 So, I have this ReactJS app, there is a user database, The function for creating the user is this import { ref, firebaseAuth } from './../Components/config' export function auth (email, pw) { return firebaseAuth().createUserWithEmailAndPassword(email, pw) .then(saveUser) } export function saveUser (user) { return ref.child(`users/${user.uid}/info`) .set({ email: user.email, uid: user.uid, number: "" //custom }) .then(() => user) } as you see the user is made of 3 properties, email, uid, and a

Linking custom auth provider with Firebase

筅森魡賤 提交于 2019-12-20 01:03:14
问题 I read that with Firebase I can allow users to sign in to my app using multiple authentication providers by linking auth provider credentials to an existing user account. Is possible linking custom auth provider such as Linkedin? I read that I need to pass the AuthCredential object to the signed-in user's linkWithCredential method but I don't find a custom AuthCredential. 回答1: One way to link an unsupported provider custom token to an existing account is to get the Firebase account's user id