PlayTubeVideo

Google Login

Connect Google OAuth so visitors can create an account or sign in with their Google profile.

G

Google OAuth client

Use a Web application client and keep the secret private.

1. Create a Google project

  1. Open Google Cloud Console.
  2. Create or select a project for your PlayTubeVideo installation.
  3. Enable the APIs required by the sign-in flow.
  • Choose the appropriate external/internal audience for your organization.
  • Set the application name, support email, logo and authorized domain.
  • Add the scopes required for basic profile and email access.
  • Add test users while the consent screen is in testing mode.

3. Create Web credentials

  1. Open APIs & Services → Credentials.
  2. Create an OAuth client ID with application type Web application.
  3. Add your production origin, for example https://your-domain.example.
  4. Copy the client ID and client secret. Do not commit either value to source control.

4. Configure PlayTubeVideo

Sign in as an administrator and open Settings → Social Login Settings at PUBLIC_URL/video-admin/settings/login. Enable Google Login and paste the client ID/secret into the Google fields.

Redirect URL: use the exact redirect/callback URL displayed by your installed Social Login Settings page. Google requires an exact match, including protocol, host, path and trailing slash.

5. Test the integration

  • Use HTTPS on the deployed domain.
  • Test a new account and an existing account.
  • Check that the returned email/profile data is accepted by your signup policy.
  • Review browser and server logs if Google returns a redirect URI, consent or invalid client error.