firebase-authentication

Authenticate API Requests in Spring using Firebase Auth

梦想与她 提交于 2021-02-20 04:37:52
问题 Im already authenticating access to my API using a Firebase Auth token (JWT) which is passed inside the Http Authorization Header as Bearer token. This works fine using auto configuration. Now I want to map from the authentication to a user record in my DB. How do I need to adapt the security filter chain? This configuration is automatically applied by spring boot according to the docs and can be overridden: @Override protected void configure(HttpSecurity http) throws Exception { http

In Firebase Realtime Database Rules, how do you give write access to the users with a certain child value?

ぃ、小莉子 提交于 2021-02-20 00:49:10
问题 ,"people" : { ".read": "auth != null", "$uid": { }, "e2" : { ".read": "auth.uid != null", ".write": "$uid == auth.uid" }, "l1" : { ".read": "auth.uid != null", ".write": "auth.uid != null" } So e2 is the @ of an email. For example @gmail or @aol or @yahoo. For the l1 child, I want to make the write rule: Write if auth.uid != null && e2 has the same value as the e2 of the person you are writing l1 to. The furthest I could get, is something like this: "data.parent().child(people).hasChildren([

VueJS Typescript - DOM not updating with variable in Super Class

本秂侑毒 提交于 2021-02-19 07:39:46
问题 Essentially I have a BaseAuthController with on common login functions and variables, I then have a SignupController and a LoginController that inherit from the BaseAuthController. I have looked at the variable through breakpoints and the variables are all being set correctly and they exist. The issue is changing the variable in the super class is not then updating the DOM BaseAuthController.ts import { RouterStates } from './../../../routing/RouterStates'; import Vue from "vue"; export class

How to add scopes to Facebook login with Firebase

一笑奈何 提交于 2021-02-19 03:54:59
问题 I am trying to add scope and access more properties of the signed in user from Facebook. However, Firebase 3 sdk seems to not be clear on that. provider = new firebase.auth.FacebookAuthProvider(); provider.addScope('public_profile, email, gender, user_birthday'); firebase.auth().signInWithPopup(provider).then((result) => { var token = result.credential.accessToken; var user = result.user; // doesn't have any extra information }); Has anyone figured out how to access additional scope? 回答1: The

Firebase Auth Internal Error on login attempt

穿精又带淫゛_ 提交于 2021-02-18 07:40:17
问题 We are an app that uses firebase to create and sign in users. The sign in worked fine before, but recently it started giving an "Internal Error" (in the picture below) whenever we try to sign in with an email and password I checked to make sure that the sign in method (email and password) was enabled on firebase FIRAuth.auth()?.signIn(withEmail: signInEmail.text!, password: signInPassword.text!, completion: { (user, error) in if(error == nil) { print("SUCCESS: User authenticated with firebase

How to update Firebase token in Flutter application after it expires and store it?

本小妞迷上赌 提交于 2021-02-18 07:25:34
问题 I have created authentication with google on first time start up of app and I have my own _authenticatedUser which stores user token for further requests. final FirebaseAuth firebaseAuth = FirebaseAuth.instance; final GoogleSignIn googleSignIn = GoogleSignIn(); Future<String> signInGoogle() async { GoogleSignInAccount googleSignInAccount = await googleSignIn.signIn(); GoogleSignInAuthentication gsa = await googleSignInAccount.authentication; FirebaseUser user = await firebaseAuth

How to update Firebase token in Flutter application after it expires and store it?

筅森魡賤 提交于 2021-02-18 07:25:17
问题 I have created authentication with google on first time start up of app and I have my own _authenticatedUser which stores user token for further requests. final FirebaseAuth firebaseAuth = FirebaseAuth.instance; final GoogleSignIn googleSignIn = GoogleSignIn(); Future<String> signInGoogle() async { GoogleSignInAccount googleSignInAccount = await googleSignIn.signIn(); GoogleSignInAuthentication gsa = await googleSignInAccount.authentication; FirebaseUser user = await firebaseAuth

SAML authentication with firebase

最后都变了- 提交于 2021-02-17 20:33:10
问题 Is there a way to authenticate a user with SAML token using firebase as a backend? The company I am working with requires that SAML is used within the authentication system and I am not sure if this is possible with firebase as a backend. Thanks 回答1: Maybe new GCP service "Cloud Identity for Customers and Partners" (in beta for now) could help you. Cloud Identity for Customers and Partners (CICP) provides an identity platform that allows users to authenticate to your applications and services

Add additional data to user profile via firestore functions onCreate

删除回忆录丶 提交于 2021-02-17 07:01:12
问题 I'm trying to automatically create a user data in my firestore db when user sign up through firestore functions. However I got 2 option for sign up. Bussiness account and personal account. If user signup as bussiness then I want to add "usertype = 1" into my document and when personal then "usertype=2" I managed to automaticaly create a document on signup via functions const functions = require('firebase-functions') const admin = require('firebase-admin') admin.initializeApp() const db =

Firebase-Admin when updating user's email user gets logout if page is refreshed

风格不统一 提交于 2021-02-17 06:44:05
问题 When updating user's email using admin.auth().updateUser({email: newEmail}) the user's email gets updated (as an authentication provider). But whenever I refresh the page, the user gets logout. Is there a way I can prevent that from happening and keeping the user logged in after its email gets updated? 回答1: Firebase treats the email address as its primary way of finding the account for a user when you don't (yet) have their UID. For that reason the email address is considered sensitive