OAuth protocol not working only for Workspace (G Suite) accounts

96 views
Skip to first unread message

Jean

unread,
Mar 23, 2022, 3:40:37 PM3/23/22
to Google Cloud Developers
We have a Google application (a Sheets complement) which is currently on production and properly working using OAuth2 to sign clients in and access their data via Google APIs (REST methods only, no SDKs). However, for some reason it only works for regular Google accounts. If the client is trying to authorize a Google Workspace (former G Suite) account, our server receives the error 401: "Expected OAuth 2 access token, login cookie or other valid authentication credential." Could someone please help us with that? Thanks in advance!

Horace (Cloud Platform Support)

unread,
Mar 23, 2022, 8:21:57 PM3/23/22
to Google Cloud Developers
Hello,

You might need to change the scope or delegation, kindly take a look at the following public docs [1, 2] for more information on how to change your settings.

Regards

Reply all
Reply to author
Forward
0 new messages