Configure permission scopes calendar.events.readonly & userinfo.email in the consent screen section.
Add https://$REGION.recall.ai/api/v1/calendar/google_oauth_callback/ as a redirect URI for the OAuth client id. Replace $REGION with your Recall.ai Region such as us-west-2.
(Note: For development purpose, see below for moving app to production/submitting for verification)
📘
If you'd like to test out your OAuth integration by connecting your account directly from the dashboard, you can add the base URL of you Recall Region.
This** must** be removed before submitting your app for approval, as Google will require you to verify ownership of any authorized domains.
Example: Adding us-east-1.recall.ai as an authorized JS origin (for testing purposes).
If you're on the Pay-as-you-go plan, you should add https://us-west-2.recall.ai.
Save the calendar client credentials in your Recall workspace.
You can access this at the following link, according to your Recall.ai region:
Each user in your application must connect their Google calendar via OAuth before using calendar integration. The process for connection is triggered by redirecting user to the OAuth URL.
REDIRECT_URI
This parameter should be one of the redirect_uris configured in your Google OAuth 2.0 client.
CLIENT_ID
This parameter should be your Google OAuth 2.0 client's client_id property.
STATE
This parameter needs to be a JSON stringified object, which should contain
a. recall_calendar_auth_token: The calendar auth token for the user. (required)
b. google_oauth_redirect_url: The redirect_uri (should be same as REDIRECT_URI parameter in the url) (required)
c. success_url: The URL to redirect the user to once authentication has completed (optional)
d. error_url: The URL to redirect the user if the authentication errored (optional)
You must use your own app's name because the Google app reviewer will need to identify your app during the app approval process.
The next step is to select the scopes you are requesting through the OAuth interaction. The 2 scopes you require for the Recall Calendar integration are
calendar.events.readonly(sensitive scope)
userinfo.email(non-sensitive scope)
For the "How will the scopes be used?" section, you should explain why your app requires calendar permissions as well as any other scopes you request. In terms of the calendar permissions specifically, something like:
"We need access to the /auth/calendar.events.readonly scope in order to automatically record our user's video conference meetings on their "primary" calendar. We read event data in order to find video conference events that our users have scheduled."
The demo video should walk through the process of signing up to your app, approving the permissions through the OAuth flow, and showing the interface to sync and mark meetings to be recorded. This is the official guide to the elements that need to be shown in the app demonstration video.
🚧
Remember to update your Redirect URI before submitting!
If your redirect URI is recall.ai or any other domain that you don't own, Google will reject your submission.
Before submitting your Google OAuth Application to production, please ensure to update the redirect_uri to be on your own domain (rather than being on recall.ai domain) as Google requires to verify domain ownership of each of the redirect URIs added in the app.
For example, add https://your_website_domain/api/google_oauth_callback as redirect_uri. In the request handler for above URL, return a HTTP redirect response to /ahttps://us-west-2.recall.ai/api/v1/calendar/google_oauth_callback/.
All request query parameters should be forwarded as is from your domain to recall.ai's OAuth endpoint.