firebase-authentication

request.auth.token.email not present in the rules

邮差的信 提交于 2019-12-08 08:16:28
Our app uses Firebase as the back end database. Firebase provides authentication for our app with google as the only provider. The authentication works fine. I am getting a "SUCCESS" in the authentication result. I would like to change my firebase rules so only the users that are present in a collection can access the data. For it, I have the rules in firebase to control access to the data. The rules are not working when I use any variables from request.auth.(where as the same works from a simulator) Below rule working in both app and simulator: match /restaurants/{$rId}/addresses/{document=**

Firebase Google sign-in isn't working [duplicate]

醉酒当歌 提交于 2019-12-08 07:58:01
问题 This question already has answers here : Google Sign In error 12500 (28 answers) Closed last year . The button shows up and everything but for some reason, when I click it, it throws the ApiException error in onActivityResult and doesn't do anything. No popup or prompt shows. Activity_SignIn.java: package com.pineapple.edufinity.clubs; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import

“This domain is not authorized” when using Firebase Authentication

我是研究僧i 提交于 2019-12-08 07:33:11
问题 I am currently following a tutorial on this link I get the following error. firebase.js:75 Uncaught Error: This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console. Do I need to create a Authentication system first? 回答1: You need to go on Firebase Panel, activate the signup method (Email/Password in this case) and then add your domain on the list of authorized domains: https://www.firebase.com/docs/web/guide

Expo, Firebase, Login with google

佐手、 提交于 2019-12-08 07:12:37
问题 in my React Native Expo application, I want to authenticate the user with google account. so I followed the Expo Googlefor a normal sign in with google first, Which was working, then using the idToken and accessToken to authenticate with firebase. signInWithGoogleAsync = async () => { try { const result = await Google.logInAsync({androidClientId: ***, iosClientId: ***, scopes: ["profile", "email"] }); if (result.type === "success") { // I get result object const credential = firebase.auth

How to authenticate in ruby via REST api

夙愿已清 提交于 2019-12-08 06:53:03
问题 I am trying to authenticate with ruby to firebase as Service Account. So what I did so far, is using Google auth lib as I always did (in other google services): require 'googleauth' scopes = ["https://www.googleapis.com/auth/firebase.database"] tt = Google::Auth.get_application_default(scopes).fetch_access_token I get the tt["access_token"] and then I do something like curl -X POST -d '{"user_id" : "jack", "text" : "Ahoy!"}' 'https://project-xxxxxxxxxxxxxxxxxxx.firebaseio.com/message_list

Get User Auth Profile Info in Firebase using Angular2

安稳与你 提交于 2019-12-08 06:36:09
问题 Can you help me? I can't get the user's profile information in Angularfire Authentication like their facebook's profile picture or facebook name. Please help. Thanks a lot! I've tried this code but its not working. I use Angular 2 TypeScript. var user = firebase.auth().currentUser; var name, email, photoUrl, uid; if (user != null) { name = user.displayName; email = user.email; photoUrl = user.photoURL; uid = user.uid; // The user's ID, unique to the Firebase project. Do NOT use // this value

request.auth.token.email not present in the rules

烂漫一生 提交于 2019-12-08 06:32:18
问题 Our app uses Firebase as the back end database. Firebase provides authentication for our app with google as the only provider. The authentication works fine. I am getting a "SUCCESS" in the authentication result. I would like to change my firebase rules so only the users that are present in a collection can access the data. For it, I have the rules in firebase to control access to the data. The rules are not working when I use any variables from request.auth.(where as the same works from a

Firebase check email registered if Login via facebook and google

家住魔仙堡 提交于 2019-12-08 05:38:15
问题 I use firebase authentication and firebase database, i want to register every new user who login via fb and google. this is the code i use to login : FB Login // [START auth_with_facebook] private void handleFacebookAccessToken(AccessToken token) { Log.d(TAG, "handleFacebookAccessToken:" + token); // [START_EXCLUDE silent] showProgressDialog(); // [END_EXCLUDE] AuthCredential credential = FacebookAuthProvider.getCredential(token.getToken()); mAuth.signInWithCredential(credential)

How to use Firebase Auth REST API using Google Apps Script?

徘徊边缘 提交于 2019-12-08 05:11:48
问题 I am trying to sign up users on Firebase Auth using Google Apps Script via the Firebase Auth REST API. My code looks this. var apiKey = "XXXX"; var url = "https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key=" + apiKey; var options = { method: 'post', contentType: 'application/json', email: "email@gmail.com", password: "12345678", returnSecureToken: true }; var response = UrlFetchApp.fetch(url, options); I am receving the following error. { "error": { "code": 400,

How to store the uid of the Facebook users in Firebase?

孤街醉人 提交于 2019-12-08 04:41:38
问题 I have just integrated the Facebook Login function to my Firebase App. I want to add some extra information to the user in the FIRDatabase. Thats why I add a child user with the uid as the identifier to my firebase database. When a user uses the "normal" sign up function (without Facebook) everything works smooth like butter. However now that I added the same information to the Facebook register form, it gives that fatal error which occurs when swift found unexpectedly nil while unwrapping an