Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible to be able to correctly select any available Google account to use when using authorisation via the JS client library for Drive?
    primarykey
    data
    text
    <p>I've got an existing Google Drive enabled application that's using the Google Java client library and server flow auth.</p> <p>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.</p> <p>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. Is it possible to handle multiple accounts using the JS library?</p> <p>Update : I tried with the <code>immediate</code> parameter <code>false</code>. I can log in as long as I don't change account in the popup. If I do change account, I get to:</p> <p><a href="https://accounts.google.com/o/oauth2/auth?client_id=433863057149.apps.googleusercontent.com&amp;scope=https://www.googleapis.com/auth/drive.file+https://www.googleapis.com/auth/drive.install+https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile&amp;immediate=false&amp;redirect_uri=postmessage&amp;origin=https://drivedrawio.appspot.com&amp;proxy=oauth2relay593063763&amp;response_type=token&amp;state=701344514&amp;authuser=1" rel="noreferrer">https://accounts.google.com/o/oauth2/auth?client_id=433863057149.apps.googleusercontent.com&amp;scope=https://www.googleapis.com/auth/drive.file+https://www.googleapis.com/auth/drive.install+https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile&amp;immediate=false&amp;redirect_uri=postmessage&amp;origin=https://drivedrawio.appspot.com&amp;proxy=oauth2relay593063763&amp;response_type=token&amp;state=701344514&amp;authuser=1</a></p> <p>in a new tab and nothing happens. I've <a href="http://youtu.be/MU7jfMsn28w" rel="noreferrer">made a video to demonstrate</a>.</p> <p>Update 2 : <a href="https://github.com/google/google-api-javascript-client/issues/108" rel="noreferrer">This bug</a> against the JS client library for the need for double selection of mulitple account has been accepted.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload