Subscriber Login for YouTube

plugin banner

Introduction

Author:Luiz C. M. de Aquino (profile at wordpress.org)
WordPress version required:4.4
WordPress version tested:5.9.9
Plugin version:1.0.4
Added to WordPress repository:20-03-2021
Last updated:07-02-2022
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:https://wordpress.org/plugins/subscriber-logi...
Total downloads:618
Active installs:10+
plugin download
Click to start download

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
ChangeLog