Title: Subscriber Login for YouTube
Author: LCMAquino
Published: <strong>20 de marzo de  2021</strong>
Last modified: 7 de febrero de  2022

---

Buscar plugins

![](https://ps.w.org/subscriber-login-for-youtube/assets/banner-772x250.png?rev=
2500092)

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga asistencia ni lo mantenga nadie, o puede que tenga problemas
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](https://ps.w.org/subscriber-login-for-youtube/assets/icon.svg?rev=2500092)

# Subscriber Login for YouTube

 Por [LCMAquino](https://profiles.wordpress.org/lcmaquino/)

[Descargar](https://downloads.wordpress.org/plugin/subscriber-login-for-youtube.zip)

 * [Detalles](https://es-ar.wordpress.org/plugins/subscriber-login-for-youtube/#description)
 * [Valoraciones](https://es-ar.wordpress.org/plugins/subscriber-login-for-youtube/#reviews)
 *  [Instalación](https://es-ar.wordpress.org/plugins/subscriber-login-for-youtube/#installation)
 * [Desarrollo](https://es-ar.wordpress.org/plugins/subscriber-login-for-youtube/#developers)

 [Soporte](https://wordpress.org/support/plugin/subscriber-login-for-youtube/)

## Descripción

### 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](https://developers.google.com/identity/protocols/oauth2/web-server)

### 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](https://console.developers.google.com/).
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](https://support.google.com/cloud/answer/6158849?hl=en).

### Access Scopes

The scopes are used by Google to limit your application access to the user account
data. Read more about [YouTube Data API](https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps?hl=pt-br)
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](https://github.com/lcmaquino/subscriber-login-for-youtube/blob/main/LICENSE).

## Capturas

[⌊"Sign in with YouTube" button on the main WP login page.⌉⌊"Sign in with YouTube"
button on the main WP login page.⌉[

“Sign in with YouTube” button on the main WP login page.

[⌊"Revoke access" link on the WordPress profile page.⌉⌊"Revoke access" link on the
WordPress profile page.⌉[

“Revoke access” link on the WordPress profile page.

[⌊Subscriber Login for YouTube on the WordPress Settings page.⌉⌊Subscriber Login
for YouTube on the WordPress Settings page.⌉[

Subscriber Login for YouTube on the WordPress Settings page.

## Instalación

### Automatic installation

 1. Open the WordPress admin screen for your site. Navigate to “Plugins > Add New”,
    and search for Subscriber Login for YouTube.
 2. Click the “Install Now” button.
 3. Then activate the Subscriber Login for YouTube plugin.
 4. Go to the “Settings > Subscriber Login for YouTube” to set up your Google OAuth
    2.0 client and YouTube channel information.
 5. Test the configuration by clicking the sign in button on WordPress login page.

### Manual installation

 1. Download [Subscriber Login for YouTube](https://downloads.wordpress.org/plugin/subscriber-login-for-youtube.zip).
 2. 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.
 3. Activate the Subscriber Login for YouTube plugin through the ‘Plugins’ menu in 
    WordPress.
 4. Go to the “Settings > Subscriber Login for YouTube” to set up your Google OAuth
    2.0 client and YouTube channel information.
 5. Test the configuration by clicking the sign in button on WordPress login page.

## Reseñas

![](https://secure.gravatar.com/avatar/5ff7943bb76c27d71385c2591082bdedad752297e052ed8e1ae3249952454c72?
s=60&d=retro&r=g)

### 󠀁[Does what it says on the tin](https://wordpress.org/support/topic/does-what-it-says-on-the-tin-552/)󠁿

 [Tecca](https://profiles.wordpress.org/tecca/) 12 de enero de 2023

The plugin checks if a user trying to register/login on your site is subscribed 
to your YouTube channel, via Google OAuth. If not subscribed, the user gets rejected
and account is not created, displaying a message to them that they have to be subscribed
to your YT account to login or register. This is very handy in cases where your 
website is subscriber-only, but bear in mind that it doesn't have a setting to turn
sub-only "off." That's understandable since the plugin was made specifically for
subscribers, but I do think more people can find utility with the plugin as just
a YouTube OAuth login (just to simply verify the user is logging in via a YouTube
account). Of course, you can use any OAuth plugin for this, but adding additional
functionality could turn people toward this one specifically. Google will require
manual verification when using the YTv3 scope, and uploading a video is part of 
the requirement. I was approved within a day, however. 5-stars, plugin works exactly
as described.

 [ Leer la 1 reseña ](https://wordpress.org/support/plugin/subscriber-login-for-youtube/reviews/)

## Colaboradores y desarrolladores

“Subscriber Login for YouTube” es un software de código abierto. Las siguientes 
personas han colaborado con este plugin.

Colaboradores

 *   [ LCMAquino ](https://profiles.wordpress.org/lcmaquino/)

“Subscriber Login for YouTube” ha sido traducido a 1 idioma. Gracias a [los traductores](https://translate.wordpress.org/projects/wp-plugins/subscriber-login-for-youtube/contributors)
por sus contribuciones.

[Traduce “Subscriber Login for YouTube” a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/subscriber-login-for-youtube)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/subscriber-login-for-youtube/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/subscriber-login-for-youtube/),
o suscríbete al [log de desarrollo](https://plugins.trac.wordpress.org/log/subscriber-login-for-youtube/)
por [RSS](https://plugins.trac.wordpress.org/log/subscriber-login-for-youtube/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 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.

## Meta

 *  Versión **1.0.4**
 *  Última actualización **hace 5 años**
 *  Instalaciones activas **10+**
 *  Versión de WordPress ** 4.4 o superior **
 *  Testeado hasta **5.9.18**
 *  Versión de PHP ** 7.0 o superior **
 *  Idiomas
 * [English (US)](https://wordpress.org/plugins/subscriber-login-for-youtube/) y
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/subscriber-login-for-youtube/).
 *  [Traducir a tu idioma](https://translate.wordpress.org/projects/wp-plugins/subscriber-login-for-youtube)
 * Etiquetas:
 * [oauth2](https://es-ar.wordpress.org/plugins/tags/oauth2/)[YouTube API V3](https://es-ar.wordpress.org/plugins/tags/youtube-api-v3/)
 *  [Vista avanzada](https://es-ar.wordpress.org/plugins/subscriber-login-for-youtube/advanced/)

## Valoraciones

 5 de 5 estrellas.

 *  [  1 valoración de 5 estrellas     ](https://wordpress.org/support/plugin/subscriber-login-for-youtube/reviews/?filter=5)
 *  [  0 valoraciones de 4 estrellas     ](https://wordpress.org/support/plugin/subscriber-login-for-youtube/reviews/?filter=4)
 *  [  0 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/subscriber-login-for-youtube/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/subscriber-login-for-youtube/reviews/?filter=2)
 *  [  0 valoraciones de 1 estrellas     ](https://wordpress.org/support/plugin/subscriber-login-for-youtube/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/subscriber-login-for-youtube/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/subscriber-login-for-youtube/reviews/)

## Colaboradores

 *   [ LCMAquino ](https://profiles.wordpress.org/lcmaquino/)

## Soporte

¿Tenés algo que decir? ¿Necesitás ayuda?

 [Ver el foro de asistencia](https://wordpress.org/support/plugin/subscriber-login-for-youtube/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Doná a este plugin ](https://www.professoraquino.com.br/ajude)