I am trying to authorize google app script to the stack overflow rest api.
My script asks me to open the authorization window and everything looks good from there except after I have authorized the app I get.
redirect_uriis not under the registered domain for this application
The redirect URI app script is creating is as follows.
https://script.google.com/macros/d/1iGFdsYBrkOTRYdyv0A81xITdFetvhfxcR_s_3iOj0dyds_Zbk1wzGAG9/usercallback
I have searched all over and I cant seem to figure out how to configure the redirect uri in my client for stack overflow API.

stackApps side:
In your situation, please set the Stackoverflow side as follows.
OAuth Domainisscript.google.com.Application Websiteishttps://script.google.com/macros/d/1iGFdsYBrkOTRYdyv0A81xITdFetvhfxcR_s_3iOj0dyds_Zbk1wzGAG9/usercallback.Google Apps Script side:
Please modify your script as follows.
From:
To:
And, in your script, the scope is not included. So, please modify
getService_()as follows.And, I think that the sample request is required to be modified. So, how about the following sample?
From:
To:
Note:
Reference: