google-oauth

Error 400: invalid_scope “https://www.googleapis.com/auth/chat.bot”

扶醉桌前 提交于 2020-08-24 07:43:30
问题 The documentation for the new google hangouts chat says that you need to authorize the scope https://www.googleapis.com/auth/chat.bot to do pretty much anything. Here's the error: While generating an authentication URL using their OAuth2 client I get the message that the scope is invalid. I don't have that problem if I use https://www.googleapis.com/auth/chat or some other scope like the one for google plus. When I try to google things on in the API Explorer no combination of the URL or parts

Not being able to choose the right channel when using OAuth 2.0 for Web Server Applications flow

蹲街弑〆低调 提交于 2020-08-24 06:30:29
问题 My app follows the server side authorization flow as described in https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps. I force prompt=select_account . In the most basic case, on "Step 3: Google prompts user for consent", the user sees a screen with one or more accounts titled "Choose an account". If the account that the user chooses only has a single channel associated with it, the flow then proceeds directly to "Step 4: Handle the OAuth 2.0 server response". If the user

Alternative to calling gapi.auth.authorize every time

此生再无相见时 提交于 2020-08-24 03:31:59
问题 I have a single-page web application that uses Google Apps Script Execution API to call functions that return the data I need. I based my project on the quick start sample code provided by Google. This requires the use of OAuth and I am accomplishing that via functions that make use of the client JavaScript library provided by Google. The first time a user is asked to authenticate the following function is used with immediate: false : gapi.auth.authorize({client_id: CLIENT_ID, scope: SCOPES,