Chris Laupama
Chris Laupama5mo ago

Providing Buildship my users Google Auth token

How do I pass Buildship my users Google auth token to use the Google nodes? For example, instead of saving a task on my Google calendar I want the user to be able to save it to their own. How do I pass this data to Buildship to be used in the flow?
2 Replies
AI Support
AI Support5mo ago
AI Support Bot Information
<@282284053749694466> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support5mo ago
AI Response
To pass your users' Google auth token to BuildShip and enable the Google nodes to interact with their personal Google Calendar (or other services), you need to follow these steps: 1. Set up OAuth Integration: - You need to set up OAuth integration for your application so that it can request permissions from your users to access their Google services. - This involves creating an OAuth client ID in the Google Cloud Console and configuring it within your BuildShip application. - More details on setting up OAuth for Google services can be found in the Google Workspace integration guide. 2. Obtain User Consent: - Prompt your users to grant authorization and obtain their OAuth tokens. This is typically done using the Google OAuth consent screen. 3. Store and Use Tokens: - Once you have the OAuth tokens, you can securely store them using BuildShip's secret manager. - Use these tokens in your BuildShip workflows to allow nodes to act on behalf of the authenticated user. 4. Build workflows to use the tokens: - Utilize the Google-specific nodes available in BuildShip to perform operations such as creating calendar events, accessing Google Docs, etc. - These nodes can accept the OAuth tokens as input to authenticate requests. Here are the detailed steps: 1. Setup Google OAuth in Google Cloud Console: - Create a new OAuth client ID in the Google Cloud Console. - Configure the OAuth consent screen. - Add the necessary scopes for the APIs you need to access. 2. Integrate OAuth in BuildShip: - Use the pre-built Google OAuth nodes in BuildShip to handle the OAuth flow. - Store the obtained user tokens securely in BuildShip's secret manager following the guide here. 3. Use the tokens in your workflows: - Pass the stored OAuth tokens to Google nodes such as Google Calendar, Google Sheets, etc., to perform authenticated operations. Example workflow to add an event to a user's calendar: - Trigger a workflow (e.g., HTTP Trigger, User Action). - Use a Google OAuth Node to fetch or refresh the token. - Use the Google Calendar Create Event node to add the event to the user's calendar, using the token obtained in the previous step. By following these steps, you can ensure users can save tasks on their own Google Calendars and access other Google services securely. For specific implementation, you can refer to the Google Workspace Documentation【4:1†source】.
BuildShip AI Support

Did you find this page helpful?