Сүрөттөө
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.
Скриншоттор
Орнотуу
Automatic installation
- Open the WordPress admin screen for your site. Navigate to “Plugins > Add New”, and search for Subscriber Login for YouTube.
- Click the “Install Now” button.
- Then activate the Subscriber Login for YouTube plugin.
- Go to the “Settings > Subscriber Login for YouTube” to set up your Google OAuth 2.0 client and YouTube channel information.
- Test the configuration by clicking the sign in button on WordPress login page.
Manual installation
- Download Subscriber Login for YouTube.
- Upload Subscriber Login for YouTube through “Plugins > Add New > Upload” admin screen or upload subscriber-login-for-youtube folder to the
/wp-content/plugins/
directory. - Activate the Subscriber Login for YouTube plugin through the ‘Plugins’ menu in WordPress.
- Go to the “Settings > Subscriber Login for YouTube” to set up your Google OAuth 2.0 client and YouTube channel information.
- Test the configuration by clicking the sign in button on WordPress login page.
Сын-пикирлер
Contributors & Developers
“Subscriber Login for YouTube” is open source software. The following people have contributed to this plugin.
Мүчөлөрү“Subscriber Login for YouTube” has been translated into 1 locale. Thank you to the translators for their contributions.
Translate “Subscriber Login for YouTube” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Өзгөртүүлөр
1.0.4
- Code refactoring for PSR-4 compliance.
1.0.3
- Update version on
includes/SlytOption.php
.
1.0.2
- Add assets directory for release on WordPress Plugin Directory.
- Change plugin license to GPLv2 or later to match with WordPress license.
- Update readme.txt.
1.0.1
- Fix issues in WordPress Plugin Review #1.
1.0.0
- Initial plugin version.