Horje
This plugin allows WordPress users to put a video and description behind Github oauth prompt. It can optionally check for sponsorship of a given organ …

Noted That:

  • To install correctly this authenticate-sponsorware-videos-via-github.zip.
  • Fisrt Download the authenticate-sponsorware-videos-via-github.zip to your computer
  • Extract/Open authenticate-sponsorware-videos-via-github.zip to Your Computer.
  • Then, Find readme.txt file inside authenticate-sponsorware-videos-via-github.zip and Open readme.txt.
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the the Tips Below.

Start the Tips:

1. First Download "authenticate-sponsorware-videos-via-github.zip" Plugin to your Local Computer. (Click Download)

2. Then, Login to your "yourdomain.com/wp-admin" Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on "Plugins" + "Add New" from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse "authenticate-sponsorware-videos-via-github.zip" Downloaded plugin from your computer, Where you downloaded authenticate-sponsorware-videos-via-github.zip According to Step – 1 Above then, click on "Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on "Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. "Authenticate Sponsorware Videos via GitHub" folder is added on left sidemenu. Now, Click on "Authenticate Sponsorware Videos via GitHub" folder.

   Noted that: If you do not see "Authenticate Sponsorware Videos via GitHub" folder on left sidemenu then, see at left sidemenu "Settings" or "Tools".

8. Now you configure yourself oR Watch video tutorial below about Authenticate Sponsorware Videos via GitHub Configurtions and Settings or How to work "Authenticate Sponsorware Videos via GitHub" in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to "Plugins" + "Installed Plugin" from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find "Authenticate Sponsorware Videos via GitHub" Activated Plugin from Plugin List.
  4. Then, Click on "Settings" from Plugin that is Authenticate Sponsorware Videos via GitHub
  5. Now, Edit/Add/Config the setting and Click on "Save Changes" button,
WP Plugin Setting



Guide
  1. Install the plugin via the WordPress Plugin installer.
    1. In the WordPress admin sidebar, navigate to Plugins -> Add New.
    2. WordPress Automatic Installation
      1. Search for its listing near the top of this page: “Authenticate Sponsorware Videos via GitHub”.
      2. Review the plugin information, reviews, details, etc.
      3. Click “Install Now” and WordPress will automatically install it.
    3. or Manual Upload
      1. At the very top towards the left, select the “Upload Plugin” button.
      2. Select the zip file for this plugin.
      3. Click “Install Now”
  2. Activate the Plugin
    1. In the WordPress admin sidebar, navigate to Plugins -> Installed Plugins
    2. Locate the “Authenticate Sponsorware Videos via GitHub” plugin in this list
    3. Select “Activate” beneath it
  3. Specify the requisite settings
    1. A new entry will have appeared at the bottom of your admin sidebar: “Github Video” (you may need to refresh the page)
    2. Hover over this entry and select “Settings” from the submenu.
    3. Fill in the Client ID, Client Secret and Private Key settings, see “Settings Information” below (these are required for the authentication to work).

Settings Information

Github Setup

Since the plugin utilizes Github OAuth to verify users sponsorship status, you must setup a Github OAuth app.
It is quite straightforward to do and Github has a good guide for it here.

Make the application name and description whatever you like; Something that will tell users it’s for your Github Sponsor videos.

The homepage URL will be the root URL of your WordPress site where the videos will be. So let’s say your site is at: https://www.wordpress-example-url.com
This is what you would enter in the Homepage URL field. (**NOTE: It is recommended to include the scheme, either http or https, of your server)

IMPORTANT: READ OR PLUGIN WILL NOT WORK
The Authorization callback URL must be a specific structure for the plugin to work correctly. You must append the query param: ?githubauthvideo_auth=2
to your root url. So using our above example, the Authorization Callback URL should be:
https://www.wordpress-example-url.com?githubauthvideo_auth=2.

After you register the application, you can get the Client ID from the applications settings page, and also generate the Client Secret. (You should be taken to this page after register, but it can also be navigated to here: https://github.com/settings/developers)

  1. Copy and pase the Client ID from your Github OAuth application page to the “Github App Client ID” field in the plugin settings page (WordPress).
  2. Click “Generate a new client secret” on the Github OAuth application page to generate a new secret, and copy that as well into the “Github App Client Secret” field on the plugin settings page.

Private Key for Session Generation

Generate a random Base64 key for the Private Key For Session Generation field. This must be a base64 string, and should be long and random.

Use your favorite generator, or this one works (note: it is recommended to use in offline mode): https://generate.plus/en/base64. We require at least 32 characters.

This is used to cryptographically sign information (in a JWT) from the WordPress server during Github Authentication.
This is an extra layer of security to ensure that no other application is attempting to forge access requests to the WordPress server.

Optional Settings

The remaining settings are optional.

Ignore Sponsorship status

When this is enabled the script will merely check if the user is authenticated with Github to allow them to access videos, and will not check sponsorship status.

Do not Require HTTPS

Normally the plugin requires the server to have HTTPS enabled, and will not perform authentication without it. Check this to disable this requirement.
It is highly recommended you use HTTPS on any production server. This setting should only be utilized in development environments

Use Server-Side Rendering for Player

By default the plugin will render an HTML placeholder for Sponsor videos and check the sponsorship status client-side with Javascript to properly render the correct screen (or video).
This is to remain compatible with as many hosting providers as possible.

Some hosts, especially those for high performance hosting (e.g. Kinsta) will utilize response caching, making this client-side behavior necessary to properly render the videos.
If your host does not do this, you can toggle this setting to render server-side instead if prefered (essentially minor processing will occur on the server instead of client).


optionally, prompt, check, sponsorship, organ, given, oauth, github, wordpress, allows,

Name

Reffered: https://wordpress.org/

Share on: