google-authentication

How to create Google Sheets using Service Account Credential in Python?

家住魔仙堡 提交于 2020-03-25 17:38:29
问题 I created Service Account Credentials here and got json key service.json . Then I tried: from google.oauth2 import service_account SCOPES = ['https://www.googleapis.com/auth/spreadsheets'] credentials = service_account.Credentials.from_service_account_file( 'service.json', scopes=SCOPES) drive = build('drive', 'v3', credentials=credentials) file_metadata = { 'name': 'sampleName', 'parents': ['#### folderId ###'], 'mimeType': 'application/vnd.google-apps.spreadsheet', } res = drive.files()

How to use Google application-specific password in script?

时间秒杀一切 提交于 2020-03-18 11:25:12
问题 Since enabling 2-factor authentication (aka. 2-step verification) on Google, my Google export scripts no longer work. The computer is verified and trusted, but somehow the scripts are not. In effect, every time the cron job is run I receive a new "Google verification code" and the script fails. I assume it should be a simple matter to authenticate such scripts once and for all with wget or curl , but I couldn't find any documentation for how to do it. Google authentication schemes have gone

Exception has occurred. PlatformException (PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null))

寵の児 提交于 2020-02-07 03:14:04
问题 I am using firebase for google authentication in my flutter app. I registered app in the firebase and set all configurations like adding SHA1 and SHA256 key, and all. However, I get the error: final FirebaseAuth _auth = FirebaseAuth.instance; final GoogleSignIn googleSignIn = new GoogleSignIn(); Future<FirebaseUser> _signIn() async{ GoogleSignInAccount googleSignInAccount = await googleSignIn.signIn(); GoogleSignInAuthentication googleSignInAuthentication = await googleSignInAccount

how to add a service account security definition in openapi yml file

丶灬走出姿态 提交于 2020-02-04 22:18:01
问题 I want to add a security definition to an API to run it in the google cloud scheduler (using OIDC token, and a service account).My openapi.yml looks like this "/common/test": post: description: "test" operationId: "test" responses: 200: description: "Success" 400: description: "Fail" security: - service_account: [] securityDefinitions: service_account: authorizationUrl: "" flow: "implicit" type: "oauth2" x-google-issuer: "xx@example.iam.gserviceaccount.com" x-google-jwks_uri: "https://www

how to add a service account security definition in openapi yml file

房东的猫 提交于 2020-02-04 22:17:52
问题 I want to add a security definition to an API to run it in the google cloud scheduler (using OIDC token, and a service account).My openapi.yml looks like this "/common/test": post: description: "test" operationId: "test" responses: 200: description: "Success" 400: description: "Fail" security: - service_account: [] securityDefinitions: service_account: authorizationUrl: "" flow: "implicit" type: "oauth2" x-google-issuer: "xx@example.iam.gserviceaccount.com" x-google-jwks_uri: "https://www

Amazon cognito not giving refresh token provided by federated identity provider (Google login)

白昼怎懂夜的黑 提交于 2020-01-24 20:59:48
问题 I am trying to add a Google login through Amazon Cognito, I have setup everything needed, I have also configured the attribute mapping from google to my pool attributes, I've mapped 'access_token' attribute to 'google_access_token' attribute and 'refresh_token' to 'google_refresh_token'. When sign in process starts, google prompts me for required permissions needed and redirects back to my app, and I can see on cognito dashboard that user is added with access token mapped in 'google_access

How to authorize user with Google in OS X Cocoa application

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-23 01:06:06
问题 I am using Firebase in my OS X application. I am trying to add Google Authentication. This is an example for iOS. Question is: How to obtain Google OAuth access token in OS X application? 回答1: Firebase auth can be integrated with Google sign in on OS X the following way using the GTMOAuth2 pod. import Cocoa import GTMOAuth2 import Firebase class MainWindowController: NSWindowController { let ref = Firebase(url: "https://xyz.firebaseio.com") override func windowDidLoad() { super.windowDidLoad(

WPF application authentication with Google

我怕爱的太早我们不能终老 提交于 2020-01-13 09:30:09
问题 I have found many different solutions with OAuth and either with some libraries or with pure requests (https://github.com/googlesamples/oauth-apps-for-windows). However, none of the solutions looks like the one that I really need. Currently, my application uses its own database for users to log in using WCF service request (with username and password). However, all users have their domain e-mail created with Google accounts, so I want to add another button "Sign In with Google", which will

Use Google Firebase Authentication without 3rd Party Cookies

元气小坏坏 提交于 2020-01-11 05:48:06
问题 I'm currently experimenting with Social Media Sign-in and have realised something slightly strange on how these logins are delivered which is stemming from the fact that my workplace, like most offices, blocks 3rd party cookies as a security policy. Google Firebase Authentication uses 3rd party cookies and so if I try to use Firebase, I'm redirected to the Google page (as expected) but when I'm redirected back to the originating webpage after logging in (and Firebase tries to set cookies), I

iOS firebase: FIRAuthUIDelegate.authUI not being called

假装没事ソ 提交于 2020-01-11 05:24:06
问题 I am trying to launch google login from AppDelegate.swift and then launch my app's main screen upon login success. I am able to show the google login button as shown above the user is sent to google to sign in the user is sent back to original (step 1) After step 3. I'd like to send the user to my app's main page. My code is below. The problem I'm having is that authUI is not being called. @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, FIRAuthUIDelegate { var window