How do I register an Apps Script project and get the Client Secret for oAuth, and set the callback URL?
Google Apps Script – Register Application and Retrieve Client ID and Secret for OAuth
google-apps-script
Related Topic
- Google Apps Script – How to Fill Out OAuth Client Verification Form
- Google Apps Script – Difference Between Add-On and Web App
- Google-apps-script – Please tell me about how to implement privacy policy site for the Google Apps Script project (mail from Google Apps Developers)
- Google Apps Script – Search for Names and File Paths in Folders
- Google Sheets – Wait for Calculations to Update Before Retrieving Cell Data in Apps Script
- Google-apps-script – What works with the new Apps Script runtime powered by Chrome V8 for this project
Best Answer
These are instructions for getting the client ID and secret for oAuth.
This explains the process of navigating the Cloud Platform and getting your Apps Script project information including the client ID and secret.
An Apps Script project is initially given a "default" Google Cloud Project, but you will need to create a "standard" Google Cloud Project, and then associate the Apps Script project with the Google Cloud Project. To create a "standard" Google Cloud Project, you must first open the Google Cloud Platform dashboard at:
Google Cloud Platform
Then you need to create a new Cloud Platform Project, get the Cloud Platform Project id number, and add it to the Apps Script Project.
First go to IAM & admin, and choose "Manage resources" Click "Create Project"
Create a project, and get the id number. Go back to the Apps Script code editor, and open the Resources menu. Enter the id number and associate it with the Apps Script project.
Dialog comes up:
Click Blue Link. Developers Console comes up. Navigate to Credentials.
In the Credentials page, click on either the Name or the "Edit OAuth Client" (pencil) icon.
Get the client ID and the client secret. You will need this for the oAuth authorization.
You must also enter a Redirect URI:
Quote from Eric Koleda's apps-script-oauth2: Eric Koleda's apps-script-oauth2