oauth creation broken?

213 views
Skip to first unread message

Peter Smulders

unread,
Mar 30, 2023, 10:59:34 AM3/30/23
to GAM for Google Workspace
I am reviving a GAMADV-XTD3 installation I have not used in 6 months. It gave me some weird errors (has been working fine for years) and the domain has migrated, so I assumed bad caches and/or stale config. Blew away everything (.gam/*, bin/gamadv-xtd/*, everything) and started a new shell.

I tried (re)installing and cleaning out several times, but I keep getting stuck on the oauth creation step (gam oauth create) --> it provides a list of scopes, I select all and continue, provide email address and paste the URL. URL in a browser (no_browser = true) leads to error page:

Bad Request
Error 400

(which I think is not the error page the installer is predicting; it is an error before processing rather than an error for the callback URL on 127.0.01 not connecting).

I tried pasting the error URL anyway, but the installer does not like it and keeps asking the same question. Note: the error URL is longer than the URL the installer produced itself; it should be a lot shorter. It also has no & or mention of the word 'scope'.

Is this a known problem, possibly related to the installer issues from yesterday or am I running into the next issue? (or doing something stupid, but I really have been very careful in following the exact steps two or three times)

help?

--Peter



Ian Crew

unread,
Mar 30, 2023, 11:01:14 AM3/30/23
to GAM for G Suite
There have been some changes to how OAuth works from Google in the past several months. Are you running the most-current version of GAM/Gam Advanced?

Cheers,

Ian

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/9c64135f-36da-4158-8d98-de0366bbbea0n%40googlegroups.com.

 

Ian Crew

Solutions Architect
Productivity & Collaboration Services
Berkeley IT

Peter Smulders

unread,
Mar 30, 2023, 11:04:38 AM3/30/23
to GAM for Google Workspace
Fresh download through curl, from github thingy. --peter

Peter Smulders

unread,
Mar 30, 2023, 11:05:28 AM3/30/23
to GAM for Google Workspace
Oh, and running on a cloudshell instance. Not sure if or why that would make a difference, but anyway. --peter

Adam Strugatch

unread,
Mar 30, 2023, 11:08:04 AM3/30/23
to GAM for Google Workspace
De-select some of the unused options when you do gam oauth create. Your URL is too long.

Ross Scroggs

unread,
Mar 30, 2023, 11:11:15 AM3/30/23
to google-ap...@googlegroups.com
These scope are good candidates:

[ ] 37)  Email Audit API

[*] 38)  Groups Migration API

[*] 39)  Groups Settings API

[*] 40)  License Manager API

[*] 41)  People API (supports readonly)

[*] 42)  People Directory API - read only

[ ] 43)  Pub / Sub API

[*] 44)  Reports API - Audit Reports

[*] 45)  Reports API - Usage Reports

[ ] 46)  Reseller API

[*] 47)  Site Verification API

[ ] 48)  Sites API

[*] 49)  Vault API (supports readonly)




--

Peter Smulders

unread,
Mar 31, 2023, 6:53:41 AM3/31/23
to GAM for Google Workspace
Deselecting a few did  the trick. @Ross: knowing this, it might be a solution to test for a max length and break up the authorisation process in two or more steps.

In any case, case closed. Thanks all.

tnx -- Peter

DJNinNZ

unread,
Apr 3, 2023, 11:59:24 PM4/3/23
to GAM for Google Workspace
Hi Ross,
I'm also having this issue,  what is the individual select, deselect process for certain scopes?
can I list all the ones I want  in a list i.e. 0,1,2,3,4,5,6,7......  or must I select them indivdually.

I have updated from 6.24 to 6.55.08 GAMADV-XTD on windows 10 with Chrome browser v111.0.5563.147. 
I also see Access blocked: authorisation error - some requested scopes were invalid

Thanks in advance
Duncan

DJNinNZ

unread,
Apr 4, 2023, 12:37:17 AM4/4/23
to GAM for Google Workspace
My error on the cam version i tshould be 6.52 although I have now tried v6.53.02 and still have the issue

Ross Scroggs

unread,
Apr 4, 2023, 10:41:46 AM4/4/23
to google-ap...@googlegroups.com
s - Select all scopes
u - Unselect all scopes
number - toggle selection of a specific scope

Send me a Meet/Zoom invitation.

Rpss

The information contained in this email is privileged and confidential and intended for the addressee only. If you are not the intended recipient, please respect that confidentiality and do not disclose, copy or make use of its contents. If received in error, please destroy this email and contact the sender immediately. Thank you.

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.


--

DJNinNZ

unread,
Apr 4, 2023, 6:48:35 PM4/4/23
to GAM for Google Workspace
Hi Ross,
tried deselecting a few but still no joy. 
What time zone are you in? I'm New Zealand based so we are currently New Zealand Standard Time (GMT+12).

Regards
Duncan

Ross Scroggs

unread,
Apr 4, 2023, 7:13:16 PM4/4/23
to google-ap...@googlegroups.com
I'm in California (PDT), now is a good time.

Ross



--

DJNinNZ

unread,
Apr 4, 2023, 8:31:07 PM4/4/23
to GAM for Google Workspace
Hi Ross,
thanks again for your assistance.

Regards
Duncan

Reply all
Reply to author
Forward
0 new messages