Authentication Method
The YouTube plugin uses OAuth 2.0 authentication exclusively.oauth_2(default) — OAuth 2.0 for the YouTube Data API v3
client_id and client_secret and run the Corsair auth flow. You can use the same Google Cloud project as your other Google OAuth apps if you add the YouTube API and the right scopes to the consent screen.
OAuth 2.0 Setup
Step 1: Create or select a Google Cloud project
- Go to Google Cloud Console.
- Create a new project or select an existing one (the same project you use for Gmail/Drive/Calendar is fine if you prefer one OAuth app for all Google services).
Step 2: Enable YouTube Data API v3
- Open APIs & Services → Library.
- Search for YouTube Data API v3.
- Open it and click Enable.
Step 3: Configure the OAuth consent screen
- Go to APIs & Services → OAuth consent screen.
- Choose External (or Internal for Workspace-only apps) and complete the required fields.
- On Scopes, add the YouTube scopes your app needs. Examples (add only what you use):
https://www.googleapis.com/auth/youtube.readonly— read-only access to channel and video metadata the API allows.https://www.googleapis.com/auth/youtube— manage your YouTube account (upload, edit, etc.; broad).https://www.googleapis.com/auth/youtube.force-ssl— account access over HTTPS (often used with full channel management).
Step 4: Create OAuth 2.0 credentials
- Go to APIs & Services → Credentials.
- Click Create credentials → OAuth client ID.
- Choose Web application (or the client type Corsair expects for your deployment).
- Under Authorized redirect URIs, add the callback URL your app uses for YouTube OAuth (the same pattern as Gmail or Calendar — e.g.
https://yourapp.com/auth/youtube/callbackor whatever you configured in Corsair). - Create the client and copy the Client ID and Client secret.
Required Credentials Summary
For general information about how Corsair handles authentication, see Authentication. For Google OAuth setup shared across products, you can also align with Gmail Get Credentials and Google Calendar Get Credentials — the Cloud project and OAuth client pattern is the same; only the enabled API and scopes differ.