google-account

Is it possible to be able to correctly select any available Google account to use when using authorisation via the JS client library for Drive?

余生颓废 提交于 2019-11-27 07:07:24
I've got an existing Google Drive enabled application that's using the Google Java client library and server flow auth. If you're not logged into the application and navigate to the URL AND you have logged into more than one google account on that browser (only one personal Google account is possible, any additional ones have to be Google business accounts) the OAuth callback offers the options to select which Google Account to use. However, whilst testing a switch to using the JavaScript client library I'm not able to activate the multiple account selection screen using gapi.auth.authorize.

GoogleAccountCredential name is null despite calling setSelectedAccountName (Android 6.0)

孤人 提交于 2019-11-27 06:46:50
问题 I've created an endpoint using a secured backend and have been using it since March on an app I'm building (source docs here). I recently installed the latest version to my Android 6.0 device and an odd error popped up (it works perfectly on 4.2.2 & 5.1). The specific error is: IllegalArgumentException: the name must not be empty: null Which I traced to an error with the credential, you can see the code below. On Android 6.0 account may be "user@gmail.com" but the string 'test' turns out to

Who owns calendars created by service account via Google Calendar API and how can they be shared?

微笑、不失礼 提交于 2019-11-27 05:37:15
问题 Let's say I have a Google account some.account@gmail.com with project project-1 (configured as Google App Engine application in Google Developer Console) and a service account with e-mail address 12..@developer.gserviceaccount.com that belong to it. I know how to use this service account to create a calendar and manipulate its entries programmatically: I use the Google APIs Client Library (Java version, with service account´s credentials) to invoke Google Calendar API inside my Google App

Using Google account to log in to an Android Application

拈花ヽ惹草 提交于 2019-11-26 23:56:51
I’m developing an application on Android and I want to allow users to log in with their Google account. How can I achieve this? You might want to authenticate the user using one of the google account already configured in your device like some of the apps do, for that follow the below link - "Authenticating to OAuth2 Services" - http://developer.android.com/training/id-auth/authenticate.html Download Sample from Google - Android SDK Manager/Extras/Google Play Services In simple steps it does Shows list of accounts in your mobile Generates access token from selected accounts Gets the Account

Accessing Google Account Id /username via Android

蹲街弑〆低调 提交于 2019-11-26 21:26:01
How do you access the user's Google Account Id / username in code? I am building an application that will call a web service to store data and I want to identify the identity of the person submitting the data. Fabricio Buzeto I've ran into the same issue and these two links solved for me: The first one is this one: How do I retrieve the logged in Google account on android phones? Which presents the code for retrieving the accounts associated with the phone. Basically you will need something like this: AccountManager manager = (AccountManager) getSystemService(ACCOUNT_SERVICE); Account[] list =

Is it possible to be able to correctly select any available Google account to use when using authorisation via the JS client library for Drive?

蓝咒 提交于 2019-11-26 13:03:45
问题 I\'ve got an existing Google Drive enabled application that\'s using the Google Java client library and server flow auth. If you\'re not logged into the application and navigate to the URL AND you have logged into more than one google account on that browser (only one personal Google account is possible, any additional ones have to be Google business accounts) the OAuth callback offers the options to select which Google Account to use. However, whilst testing a switch to using the JavaScript

Accessing Google Account Id /username via Android

孤街浪徒 提交于 2019-11-26 09:06:46
问题 How do you access the user\'s Google Account Id / username in code? I am building an application that will call a web service to store data and I want to identify the identity of the person submitting the data. 回答1: I've ran into the same issue and these two links solved for me: The first one is this one: How do I retrieve the logged in Google account on android phones? Which presents the code for retrieving the accounts associated with the phone. Basically you will need something like this: