OAuth Issue
abu-zaid opened this issue · 2 comments
abu-zaid commented
There isnt an 'others' option in credentials-oauth client id.
out386 commented
I don't know why that option is missing for you. Using the other options you told me were present (in PM) properly will make it harder to set up for users, as this bot usually runs on headless servers. Use the following as a workaround until I decide whether to use an OAuth callback.
- In
src/drive/drive-auth.ts
replace all instances ofinstalled
withweb
in lines 32, 33, & 34. - Delete
client_secret.json
- In the Cloud Console, create a "Web" client ID, and add
http://localhost:xxxxx
in the "Authorized redirect URIs" section. Replacexxxxx
with any unused port number for your local machine. - Download the JSON again
- After granting access this time, you should get an error page. The URL in your browser will be something like:
http://localhost:6580/?code=xxxxxx&scope=xxxx
. Copy the value of thatcode
argument, and paste that in the terminal.
abu-zaid commented
Works. Thanks . :)