It is impossible to obtain an access token with an OAuth URI which worked until the end of August, and which is used by various clients.
It's a general issue with third party clients as of now:
Thus, currently, it is impossible to use a Google Hangouts Chat Bot (third party application) using hangups. It now fails with this error:
Here is how URI created to access Google OAuth with Python :
OAUTH2_SCOPE = 'https://www.google.com/accounts/OAuthLogin'
OAUTH2_CLIENT_ID = 'some_client_id'
OAUTH2_CLIENT_SECRET = 'some_client_screet'
OAUTH2_LOGIN_URL = 'https://accounts.google.com/o/oauth2/auth?{}'.format(
urllib.parse.urlencode(dict(
client_id=OAUTH2_CLIENT_ID,
scope=OAUTH2_SCOPE,
redirect_uri='urn:ietf:wg:oauth:2.0:oob',
response_type='code',
))
)
OAUTH2_TOKEN_REQUEST_URL = 'https://accounts.google.com/o/oauth2/token'
Google has made some OAuth changes that killed the way hangups does its initial login: see issue here and here
Existing bots will also stop working as soon as their tokens expire find this article.
So, how can we access the Authorization Code for accessing Hangouts?