Skip to content

Connect Google Drive

Google Drive is connected using a bring-your-own OAuth setup: you create a small Google Cloud project, enable the Drive API on it, and paste the resulting Client ID and Client Secret into Cinaura’s pairing page.

It’s a one-time setup, and it takes about 10 minutes.

  • A Google account.
  • The 8-character session code shown on your TV, and a phone or laptop browser for cinaura.tv/pair/google-drive.
  1. Open the Google Cloud Console. Sign in with the Google account whose Drive you want to connect.

  2. Click the project picker at the top of the page, then New project.

  3. Give the project a name (e.g. Cinaura). If the Location selector offers a choice, pick No organization for a personal project. Click Create.

  1. With your new project selected, open the navigation menu (top left) and go to APIs & Services → Library.

  2. Search for Google Drive API and open its detail page.

  3. Click Enable.

Step 3: Configure the Google Auth Platform

Section titled “Step 3: Configure the Google Auth Platform”
  1. Open the Google Auth Platform. Older projects reach the same place through APIs & Services → OAuth consent screen. If you see “Google auth platform not configured yet”, click Get started.

  2. Fill in the wizard:

    • App Information: app name Cinaura (or any name you like), your email as user support email
    • Audience: choose External, the only option on a personal Google account. Internal appears on Workspace accounts only, and skips Step 4
    • Contact Information: your email as the developer contact
    • Agree to the Google API Services User Data Policy, then click Create
  3. Open Data access in the sidebar, click Add or remove scopes, and add this scope by hand:

    https://www.googleapis.com/auth/drive.readonly

    It’s read-only. Cinaura never writes to your Drive. Click Update, then Save.

  4. Ignore the Test users list. The next step publishes the app, which makes that list irrelevant.

Your project starts in Testing mode. Google expires the sign-in after 7 days in that state, so your Drive would disconnect every week. Publishing removes the expiry, and takes a minute.

  1. Open Branding in the sidebar, with the project picker at the top on the project you just made.

  2. Under Authorised domains, add cinaura.tv if it isn’t already there. Do this first, because Google rejects a link whose domain isn’t listed.

  3. Fill in the three App domain fields:

    FieldValue
    Application home pagehttps://www.cinaura.tv
    Application privacy policy linkhttps://www.cinaura.tv/privacy
    Application Terms of Service linkhttps://www.cinaura.tv/terms

    Google won’t publish without these. Leave the app logo empty: adding one means Google requires a review you don’t want.

  4. Save.

  5. Open Audience in the sidebar. Under Publishing status, click Publish app and confirm.

  6. Check it now reads In production.

Google will then show a yellow banner asking you to submit the app for review. Ignore it, your app is working. Don’t click Back to testing underneath it, which would undo this and restart the 7-day clock.

Later, when you sign in, Google will show a full-page “Google hasn’t verified this app” warning instead of the usual consent screen. Click Advanced, then Go to your project name (unsafe).

It’s safe. The app Google is warning you about is the project you just created, in your own account, and the only thing it can read is your own Drive. Google shows this for anything it hasn’t reviewed itself.

You don’t need that review, and you shouldn’t ask for it: for Drive access Google requires a paid annual security assessment, which is an absurd bill for a project with one user.

  1. Open the Clients tab in the Google Auth Platform sidebar (or go to APIs & Services → Credentials, which still works).

  2. Click Create client (or Create credentials → OAuth client ID on the Credentials page).

  3. Application type: Web application.

  4. Name: Cinaura (or any name you like).

  5. Under Authorized redirect URIs, click Add URI and paste:

    https://www.cinaura.tv/api/google-drive/callback

    This is the only redirect URI you need. Don’t add anything else.

  6. Click Create. A dialog appears with your Client ID and Client Secret. Keep this dialog open, or copy both values somewhere safe.

  1. On the TV, open Cinaura → Settings → Sources → Google Drive. The TV displays an 8-character session code and a QR code linking to cinaura.tv/pair/google-drive.

  2. Scan the QR code with your phone (or open the URL manually).

  3. Paste your Client ID and Client Secret into the form, then click Connect with Google.

  4. Sign in with the same Google account you set up the project under.

  5. Click through the “Google hasn’t verified this app” screen. Click Advanced, then Go to your project name (unsafe). This is expected and it is safe, for the reasons in Step 4.

  6. Approve the read-only Drive access when Google asks.

  7. Return to the TV. Within a few seconds the source unlocks and Cinaura lists the folders available in your Drive.

  8. Pick which folders to sync, and confirm. Cinaura starts scanning them for media. You can change the selection later.

Setting up

  • “Valid app name, support email, homepage URL and privacy policy URL are required”: the Branding page isn’t filled in. See Step 4. Google lists four fields, but the wizard already filled the first two, so it’s the home page and the privacy policy link that are missing.
  • Authorised domains mentions the Google Search Console: that only applies to apps going through Google’s review, which yours isn’t. You don’t need to verify ownership of anything.
  • “Ineligible accounts not added” when adding a test user: once the app is published you don’t need test users, so publish instead. The message usually just means the account is already on the list.

Signing in

  • “Error 403: access_denied”, or “The app is currently being tested, and can only be accessed by developer-approved testers”: your project is still in Testing. Publish it (Step 4) and this goes away for every account. Ignore the message’s advice to contact the developer, which here means you.
  • “redirect_uri_mismatch”: the redirect URI in your OAuth client doesn’t exactly match https://www.cinaura.tv/api/google-drive/callback. Check for typos, trailing slashes, and http vs https.
  • “invalid_client” on the pair page: the Client ID or Client Secret was pasted with extra whitespace. Copy them again.

After pairing

  • Google Drive disconnects after about a week: your project is still in Testing, and Google expires the sign-in 7 days after you grant it. Publishing stops it, but you’ll also need to reconnect once: My Google Drive disconnects every week.
  • No folders appear: check you have files in your Drive that the Drive API can see. Shared drives aren’t supported yet, only the contents of “My Drive”.