assistant-sdk-nodejs icon indicating copy to clipboard operation
assistant-sdk-nodejs copied to clipboard

Cannot use google-oauthlib-tool

Open bentoemanuel opened this issue 5 years ago • 1 comments

When I run this on a python environment: env/bin/google-oauthlib-tool --client-secrets credentials.json \ --credentials devicecredentials.json \ --scope https://www.googleapis.com/auth/assistant-sdk-prototype \ --save I get this Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=324326529759-7v7i5qhjmbnniqtq5hdfflavaqe9626e.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fassistant-sdk-prototype&state=HmHLOq6phamDdQF7y2TaRf3swSHtJf&access_type=offline

when I go to this link and log in to my account I am redirectioned to localhost and I get the error

ERR_CONNECTION_REFUSED

bentoemanuel avatar Jun 16 '20 15:06 bentoemanuel

I have found a way of solving this. Just see your url bar where it is written "&code=xxxxxxxxxxxxxxxxxx". Just copy paste the code from there. and paste it in your terminal. now it should work

lakshaycodes avatar Nov 08 '20 08:11 lakshaycodes