You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guide: Generating and Registering Google OAuth Refresh Token
This document outlines the process of generating a Google OAuth Refresh token and registering it as a GitHub Environment Secret for the booking-app project.
Copy the URL displayed by the script and paste it into your web browser.
You will be redirected to a Google authorization page. Click "Continue" to proceed.
After authorization, you will receive a Refresh token. Copy this token.
Note: If you encounter any errors during this process, it may indicate issues with the Client ID or Client Secret in the script. Review the script configuration to ensure these are set correctly.
3. Update GitHub Secrets
Go to the GitHub repository settings for the booking-app project.
Navigate to the Secrets section.
Look for the GOOGLE_REFRESH_TOKEN secret.
Update the secret with the new Refresh token you obtained.
Important: There are separate GOOGLE_REFRESH_TOKEN secrets for each environment (dev, stg, prod). Ensure you update the correct one corresponding to the environment used in the script.
4. Redeploy Google Action
Access the Google Actions console.
Find the Action deployed to the target environment (dev, stg, or prod).
Trigger a "Rerun script" operation for the Action to apply the changes.
Guide: Generating and Registering Google OAuth Refresh Token
This document outlines the process of generating a Google OAuth Refresh token and registering it as a GitHub Environment Secret for the booking-app project.
Prerequisites
Steps
1. Run the Script
Navigate to the
booking-app/scripts
directory( https://github.com/ITPNYU/booking-app/tree/main/booking-app/scripts) in the repository on terminal
Run scripts for the required environment.
Upon execution, it will display a URL in the console.
2. Obtain the Refresh Token
Ensure you are logged in to the Google account associated with booking-app@itp.nyu.edu.
Copy the URL displayed by the script and paste it into your web browser.
You will be redirected to a Google authorization page. Click "Continue" to proceed.
After authorization, you will receive a Refresh token. Copy this token.
Note: If you encounter any errors during this process, it may indicate issues with the Client ID or Client Secret in the script. Review the script configuration to ensure these are set correctly.
3. Update GitHub Secrets
Go to the GitHub repository settings for the booking-app project.
Navigate to the Secrets section.
Look for the
GOOGLE_REFRESH_TOKEN
secret.Update the secret with the new Refresh token you obtained.
Important: There are separate
GOOGLE_REFRESH_TOKEN
secrets for each environment (dev, stg, prod). Ensure you update the correct one corresponding to the environment used in the script.4. Redeploy Google Action
Access the Google Actions console.
Find the Action deployed to the target environment (dev, stg, or prod).
Trigger a "Rerun script" operation for the Action to apply the changes.
Video
https://drive.google.com/file/d/1e8t9fNkA6YTAqqGzeZln538QZDO_a6Wg/view?usp=sharing
The text was updated successfully, but these errors were encountered: