firebase-authentication

AOSP Firebase initialisation error (FirebaseApp is not initialized in this process com.package.name)

拥有回忆 提交于 2021-02-11 18:06:05
问题 I'm trying to build a custom app into aosp build which uses Firebase database. I've included the firebase database( com.google.firebase.firebase_database ) along with all it's compile dependencies in Android.bp and build process is a success. However, when I launch the app, I always get this exception java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.package.name. Make sure to call FirebaseApp.initializeApp(Context) first. I have tried calling it in

Theme.MaterialComponents style ruins Firebase AuthUI layout

不想你离开。 提交于 2021-02-11 17:36:05
问题 I am writing my first app in kotlin and am using FirebaseAuth & AuthUI for authentication. My login screen works perfectly, and looked like: Now I am trying to change my AppTheme's parent to "Theme.MaterialComponents.NoActionBar" (from "Theme.AppCompat.NoActionBar") but the login screen changed to: I call the login screen like so: startActivityForResult( authUI.createSignInIntentBuilder() .setAvailableProviders(providers) .build(), RC_SIGN_IN ) I tried to add .setTheme(R.style.FirebaseUI)

When the user_link permission is requested from Facebook, GraphRequest.newMeRequest() returns a null object

谁都会走 提交于 2021-02-11 17:00:02
问题 I'm letting Firebase handle login to Facebook in my app, as advised in the Firebase docs: loginButton.setPermissions("email", "public_profile"); When I call GraphRequest.newMeRequest(), I request the user_link permission as follows: Bundle parameters = new Bundle(); // Need special permission from Faceook in order to get this data. Apply after we've settled on a new name for the app. parameters.putString("fields", "id, first_name, last_name, email, gender, birthday, timezone, picture, locale,

When the user_link permission is requested from Facebook, GraphRequest.newMeRequest() returns a null object

时光怂恿深爱的人放手 提交于 2021-02-11 16:58:45
问题 I'm letting Firebase handle login to Facebook in my app, as advised in the Firebase docs: loginButton.setPermissions("email", "public_profile"); When I call GraphRequest.newMeRequest(), I request the user_link permission as follows: Bundle parameters = new Bundle(); // Need special permission from Faceook in order to get this data. Apply after we've settled on a new name for the app. parameters.putString("fields", "id, first_name, last_name, email, gender, birthday, timezone, picture, locale,

Angular 8 /Firebase: how do I set the displayName when creating user with email and password?

人走茶凉 提交于 2021-02-11 16:51:27
问题 After reading so many posts and empty(or not?) solutions, I figured that the best thing was to post of my own. So my goal is just to get the displayName of the user so in a list of posts or whatever, the authorship doesnt look ugly with a uid... Here's what I find relevant for the problem: Signup reactive form, later called on onInit: createForm() { this.registerForm = this.fb.group( { name: ['', Validators.required], email: ["", [Validators.required]], password: [null, [Validators.required,

Angular 8 /Firebase: how do I set the displayName when creating user with email and password?

安稳与你 提交于 2021-02-11 16:51:02
问题 After reading so many posts and empty(or not?) solutions, I figured that the best thing was to post of my own. So my goal is just to get the displayName of the user so in a list of posts or whatever, the authorship doesnt look ugly with a uid... Here's what I find relevant for the problem: Signup reactive form, later called on onInit: createForm() { this.registerForm = this.fb.group( { name: ['', Validators.required], email: ["", [Validators.required]], password: [null, [Validators.required,

Angular 8 /Firebase: how do I set the displayName when creating user with email and password?

亡梦爱人 提交于 2021-02-11 16:48:59
问题 After reading so many posts and empty(or not?) solutions, I figured that the best thing was to post of my own. So my goal is just to get the displayName of the user so in a list of posts or whatever, the authorship doesnt look ugly with a uid... Here's what I find relevant for the problem: Signup reactive form, later called on onInit: createForm() { this.registerForm = this.fb.group( { name: ['', Validators.required], email: ["", [Validators.required]], password: [null, [Validators.required,

Flutter Firebase signInWithEmailAndPassword cryptography

删除回忆录丶 提交于 2021-02-11 15:41:18
问题 I'm using Flutter + firebase auth to authenticate my users with email and password using this syntax: void signIn({@required String email,@required String pass}) FirebaseAuth.instance.signInWithEmailAndPassword(email: email, password: pass)... The username and password are Strings, plain text My question is, do I have to worry about password security? does the password string goes to the network encrypted? 回答1: All communication between the Firebase Authentication client and the backend

How to get Firebase idToken from AuthResult?

江枫思渺然 提交于 2021-02-11 15:27:33
问题 Firebase are providing AuthResult on the callback for user sign in using startActivityForSignInWithProvider (in my case the provider is apple on Android platform). I can't seem to fetch the idToken from it in a proper (synchronous) way. So far I found two options, both aren't satisfying: Option 1: casting ((OAuthCredential)authResult.getCredential()).getIdToken() This works but I'm not sure if it's a safe cast. Plis, I'm thinking, if Firebase would have wanted us to fetch the idToken this way

Using Firebase Auth Custom Claims for custom permissions

早过忘川 提交于 2021-02-11 15:21:56
问题 Initial situation: I am developing an app (iOS, Android, Web App) that primarily uses Firebase Auth Email & Password to authorize my users and manage permissions . There are complex configuration options for the security and access settings that can be individually set for each user . There are also premade roles (e.g. admin, manager, etc.) . However, these are only templates and don't need to be used by the person who manages the user accounts. The permissions can be customized for each user