Google OAuth client
Use a Web application client and keep the secret private.
1. Create a Google project
- Open Google Cloud Console.
- Create or select a project for your PlayTubeVideo installation.
- Enable the APIs required by the sign-in flow.
2. Configure the consent screen
- 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
- Open APIs & Services → Credentials.
- Create an OAuth client ID with application type Web application.
-
Add your production origin, for example
https://your-domain.example. - 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.