Subscriber Login for YouTube Subscriber Login for YouTube

Subscriber Login for YouTube

Created by: Luiz C. M. de Aquino

Rating:
Downloaded: 651 times

Introduction

Subscriber Login for YouTube is a WordPress plugin for Google OAuth 2.0 authentication with YouTube Google account.

Features

  • Authentication — get the user coming from Google authentication;
  • Get user information — get the user data from their Google account;
  • Refresh token — refresh the user’s access token;
  • Revoke token — revoke the user’s access token;
  • Check if an user is subscribed on a given YouTube channel;

For more information about Google OAuth 2.0, please see Using OAuth 2.0 for Web Server Applications

Requirements

  • PHP 7.0 or later;
  • WordPress 4.4 or later;

Setting

Before using Subscriber Login for YouTube, you need to set up an Google project for web application in Google Console. It’s a Google requirement for users to login! The web application project will provide: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, and GOOGLE_REDIRECT_URI.

Activate the “YouTube Data API v3” in your project and add the scopes openid, email, and https://www.googleapis.com/auth/youtube.readonly for its consent screen. See more details in Setting up OAuth 2.0.

Access Scopes

The scopes are used by Google to limit your application access to the user account data. Read more about YouTube Data API scopes.

Usage

After you activated the plugin, then the plugin will automatically:

  • add the “Sign in with YouTube” button to the WordPress login page. See screenshot #1.
  • add the “Revoke access” link to the WordPress profile page. See screenshot #2.

License

Subscriber Login for YouTube is open-sourced software licensed under the GPL v2.0 or later.

Screenshots

  • "Sign in with YouTube" button on the main WP login page.
  • "Revoke access" link on the WordPress profile page.
  • Subscriber Login for YouTube on the WordPress Settings page.

Categories

Get New Themes & Resources