Skip to content

Commit 350b912

Browse files
committed
Merge branch 'main' of github.com:joshcanhelp/wp-rest-api-auth0
2 parents 4237207 + b3a21cf commit 350b912

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

,gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.github/ export-ignore
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/phpcs.xml.dist export-ignore

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# Protect your WordPress REST API with Auth0
22

3-
[![Latest Stable Version](https://poser.pugx.org/joshcanhelp/wp-rest-api-auth0/v/stable)](https://packagist.org/packages/joshcanhelp/wp-rest-api-auth0)
43
[![License](https://poser.pugx.org/joshcanhelp/wp-rest-api-auth0/license)](https://packagist.org/packages/joshcanhelp/wp-rest-api-auth0)
54
[![Total Downloads](https://poser.pugx.org/joshcanhelp/wp-rest-api-auth0/downloads)](https://packagist.org/packages/joshcanhelp/wp-rest-api-auth0)
65

7-
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:
6+
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:
87

98
**[Protect your WordPress REST API with OAuth2 using Auth0](https://www.joshcanhelp.com/protect-wordpress-rest-api-with-oauth2-auth0/)**
109

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
"src/wp-rest-api-auth0.php"
2727
]
2828
}
29-
}
29+
}

src/wp-rest-api-auth0.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
function determine_current_user( $user ) {
2323
global $wpdb;
2424

25-
$debug_mode = defined( '\AUTH0_API_DEBUG' ) && \AUTH0_API_DEBUG;
25+
$debug_mode = defined( 'AUTH0_API_DEBUG' ) && \AUTH0_API_DEBUG;
2626

2727
// Only checked, not saved or output anywhere.
2828
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput

0 commit comments

Comments
 (0)