From a2de13888377efd0a88cb52f9c43e3d1926f096e Mon Sep 17 00:00:00 2001 From: Josh Cunningham Date: Fri, 13 Oct 2023 12:53:29 -0700 Subject: [PATCH 1/5] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index c8b4b55..088fbf0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Protect your WordPress REST API with Auth0 -[![Latest Stable Version](https://poser.pugx.org/joshcanhelp/wp-rest-api-auth0/v/stable)](https://packagist.org/packages/joshcanhelp/wp-rest-api-auth0) [![License](https://poser.pugx.org/joshcanhelp/wp-rest-api-auth0/license)](https://packagist.org/packages/joshcanhelp/wp-rest-api-auth0) [![Total Downloads](https://poser.pugx.org/joshcanhelp/wp-rest-api-auth0/downloads)](https://packagist.org/packages/joshcanhelp/wp-rest-api-auth0) From 120ce0fb621226855982a4ae4421cdad164f7a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 16 Oct 2023 18:16:16 +0200 Subject: [PATCH 2/5] Fix a typo in README (#13) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 088fbf0..eac03d1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![License](https://poser.pugx.org/joshcanhelp/wp-rest-api-auth0/license)](https://packagist.org/packages/joshcanhelp/wp-rest-api-auth0) [![Total Downloads](https://poser.pugx.org/joshcanhelp/wp-rest-api-auth0/downloads)](https://packagist.org/packages/joshcanhelp/wp-rest-api-auth0) -This repo contains a working MU plugin that will receive and validate access tokens obtained from Auth0. For information on how this works and the values used withing please see the post here: +This repo contains a working MU plugin that will receive and validate access tokens obtained from Auth0. For information on how this works and the values used within please see the post here: **[Protect your WordPress REST API with OAuth2 using Auth0](https://www.joshcanhelp.com/protect-wordpress-rest-api-with-oauth2-auth0/)** From ff7cf43a7c2ec902d246e320e4bbf5256875e944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 16 Oct 2023 18:17:20 +0200 Subject: [PATCH 3/5] Stop exporting development files (#14) --- ,gitattributes | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ,gitattributes diff --git a/,gitattributes b/,gitattributes new file mode 100644 index 0000000..73b77d3 --- /dev/null +++ b/,gitattributes @@ -0,0 +1,4 @@ +/.github/ export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore +/phpcs.xml.dist export-ignore From 85530061339bf7323d9c4b493844a6df0702b2f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 16 Oct 2023 18:19:05 +0200 Subject: [PATCH 4/5] Add final new line to composer.json (#15) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4ff65a0..603b2bd 100644 --- a/composer.json +++ b/composer.json @@ -26,4 +26,4 @@ "src/wp-rest-api-auth0.php" ] } -} \ No newline at end of file +} From b3a21cf026ca5fa3ae00493c8523e8d42bf178cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 16 Oct 2023 18:20:00 +0200 Subject: [PATCH 5/5] Fix namespace in defined() (#17) --- src/wp-rest-api-auth0.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-rest-api-auth0.php b/src/wp-rest-api-auth0.php index c079f0b..30b6c93 100644 --- a/src/wp-rest-api-auth0.php +++ b/src/wp-rest-api-auth0.php @@ -22,7 +22,7 @@ function determine_current_user( $user ) { global $wpdb; - $debug_mode = defined( '\AUTH0_API_DEBUG' ) && \AUTH0_API_DEBUG; + $debug_mode = defined( 'AUTH0_API_DEBUG' ) && \AUTH0_API_DEBUG; // Only checked, not saved or output anywhere. // phpcs:ignore WordPress.Security.ValidatedSanitizedInput