google-signin

Firebase Google sign-in as Users in Authentication

有些话、适合烂在心里 提交于 2021-01-29 14:01:25
问题 I'm developing a Xamarin.Forms app. I've succesfully implemented Google sign-in thanks to the NuGet Plugin.GoogleClient. The problem is when I want to modify the Firebase project rules so only authenticated users can access to the Cloud Firestore database. In my Firebase console appears that the project doesn't have any user: But in the app I'm using my Google account with no problem: How can I authenticate Google signed-in accounts so they can appear in Users, so I can modify the rules of

How to pass an GoogleApiClient objet to another activity

送分小仙女□ 提交于 2021-01-29 11:09:07
问题 In my loginactivity, I have an google Sign In button to LogIn. I checked and works fine. I had anothers buttons to log out and Revoke and worked fine too. This is my code of the loggin screen. import android.app.ProgressDialog; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget

YouTube Data API Error 403 Insufficient Permission

怎甘沉沦 提交于 2021-01-29 09:57:50
问题 I'm working on an IOS app using Swift that requires accessing to the user's YouTube subscriptions. After adding all scopes I need on Google Cloud Platform and implementing GoogleSignIn in Firebase. I sign in (GIDSignInButton), then I get the error shown down below after making this request: https://www.googleapis.com/youtube/v3/subscriptions?part=snippet%2CcontentDetails&mine=true&key=\(apiKey)&access_token=\(Access_Token) . The Access_Token is the one I got after I call: func sign(_ signIn:

Only allow google sign in with G Suite accounts?

て烟熏妆下的殇ゞ 提交于 2021-01-29 02:31:52
问题 I'm creating a custom web app and I'm using Google sign in to authenticate. I would like for the Choose an account screen, to only allow the user to chose a G Suite account to login to my web app. I'm aware of passing the param hostedDomain with a single domain, array or an asterisk. When I use the asterisk as the value, the Choose an account screen display correctly, only showing accounts that are G Suite. The issue is that I get an error after selecting a G Suite Account. Error: 'Account

SRI for Google Sign-In

China☆狼群 提交于 2021-01-28 01:16:49
问题 I have a requirement for a site, I need to set the Subresource Integrity (https://www.w3.org/TR/SRI/) for the Google sign-in functionality, can someone tell me if it's feasible or if the resource (https://apis.google.com/js/platform.js) changes and I need to use any version mechanism or workaround in order to implement the SRI. I've tried setting the hash generated in https://www.srihash.org/ and works fine but I don't know if this is going to continue working in the future: <script src=

Build iOS App having Google Sign with support for Mac

此生再无相见时 提交于 2021-01-27 22:15:06
问题 I have manually embedded the Google Sign In framework into an iOS app with the .bundle and .framework files. After adding the Mac as deployment target with the most recent Xcode and macOS Catalina versions I get the following error message when trying to run the app on the Mac. Building for Mac Catalyst, but the linked framework 'GoogleSignIn.framework' was built for iOS + iOS Simulator. You may need to restrict the platforms for which this framework should be linked in the target editor, or

Which methods of Google OAuth2 API accept login_hint as a parameter

只谈情不闲聊 提交于 2021-01-27 08:50:14
问题 I am using the Google Sign-In JavaScript client and also referencing the Example App The example app (app.js) tells me that login_hint is a valid option for the signIn method: // If the user is not signed in with expected account, let sign in. return auth2.signIn({ // Set `login_hint` to specify an intended user account, // otherwise user selection dialog will popup. login_hint: id || '' }); But the reference manual does not say it does anything there but is only effective with the authorize(

Google signin - not working in production

强颜欢笑 提交于 2021-01-24 07:25:10
问题 Google sign in works when testing on the emulator and a real device, however, in production it doesn't work. I have added the SHA 1 key to my Firestore project. How would I fix this? Future<User> googleSignIn() async { try { GoogleSignInAccount googleSignInAccount = await Global.googleSignIn.signIn(); GoogleSignInAuthentication googleAuth = await googleSignInAccount.authentication; final AuthCredential credential = GoogleAuthProvider.credential( accessToken: googleAuth.accessToken, idToken:

Google signin - not working in production

╄→гoц情女王★ 提交于 2021-01-24 07:22:09
问题 Google sign in works when testing on the emulator and a real device, however, in production it doesn't work. I have added the SHA 1 key to my Firestore project. How would I fix this? Future<User> googleSignIn() async { try { GoogleSignInAccount googleSignInAccount = await Global.googleSignIn.signIn(); GoogleSignInAuthentication googleAuth = await googleSignInAccount.authentication; final AuthCredential credential = GoogleAuthProvider.credential( accessToken: googleAuth.accessToken, idToken:

Get user's birthday/gender using Google Sign-In in Flutter

≡放荡痞女 提交于 2021-01-21 04:58:31
问题 I want to get user's birthday and gender using Firebase Auth and Google Sign-In. Unfortunately, after the login happens, I am getting only the user's email, display name, photo url and phone number. I saw that I can add scopes to the GoogleSignIn object, which I do - https://www.googleapis.com/auth/user.birthday.read, https://www.googleapis.com/auth/userinfo.profile, but still, I don't see any additional data after the login. Any idea how to get the result of this? Because when these scopes