You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the OpenID documentation, access_type is optional and if it is absent, the server behaves as though it was "offline", which is exactly the behavior that the example indicates.
What is this "prompt asking for offline access"? I don't see anything like that in this library.
I changed the sample to use this for url generation, and even tried to force the consent dialog:
// Generate the url that will be used for the consent dialog.constauthorizeUrl=oAuth2Client.generateAuthUrl({access_type: 'offline',scope: ['https://www.googleapis.com/auth/userinfo.profile','https://www.googleapis.com/auth/devstorage.read_write','https://www.googleapis.com/auth/plus.me','https://www.googleapis.com/auth/compute'],prompt: 'consent select_account'});
This generates a consent dialog, but nowhere does it ask me if I should allow offline access:
Note, my redirect_uri is set to localhost:3000. I am also using the alpha npm release of our 1.0 library, which you can try out at npm install google-auth-library@1.0.0-alpha.1.
Given that this issue is nearly a year old, I'm going to go ahead and close it out. if you can include detailed instructions on how to reproduce it - I'd be happy to take a look :)
the
generateAuthUrl()
method generatates thee different urls for me, which differs from theaccess_type
parameterwith
access_type = 'online'
:with
access_type = 'offline'
:and without
access_type
(according to this example it should defaults to online):Regardless of the url, there is always a prompt asking for offline access.
The version of the library I've used:
0.9.6
The code I've used to generate the url:
The text was updated successfully, but these errors were encountered: