Skip to content

Commit

Permalink
Remove PHP SDK and references (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp authored Feb 16, 2021
1 parent ac792de commit 30d5e16
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This repo contains a working MU plugin that will receive and validate access tok

## Installation

Add your Auth0 credentials to `wp-config.php` or another location that will get loaded before plugins.
First, install the [Login by Auth0 plugin](https://wordpress.org/plugins/auth0/), then add your Auth0 credentials to `wp-config.php` or another location that will get loaded before plugins.

```php
// Auth0 credentials
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
],
"homepage": "https://www.joshcanhelp.com/protect-wordpress-rest-api-with-oauth2-auth0/",
"require": {
"php": "^7.1",
"auth0/auth0-php": "^7.5"
"php": "^7.1"
},
"license": "MIT",
"authors": [
Expand Down
7 changes: 0 additions & 7 deletions wp-rest-api-auth0-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,4 @@

declare(strict_types=1);

if (
! class_exists( 'Auth0\\SDK\\Helpers\\Tokens\\SymmetricVerifier' )
&& is_file( __DIR__ . '/vendor/autoload.php' )
) {
require_once __DIR__ . '/vendor/autoload.php';
}

require_once __DIR__ . '/src/wp-rest-api-auth0.php';

0 comments on commit 30d5e16

Please sign in to comment.