Skip to content

Commit

Permalink
Merge branch 'main' of github.com:joshcanhelp/wp-rest-api-auth0
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Oct 16, 2023
2 parents 4237207 + b3a21cf commit 350b912
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ,gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.github/ export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/phpcs.xml.dist export-ignore
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# 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)

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/)**

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"src/wp-rest-api-auth0.php"
]
}
}
}
2 changes: 1 addition & 1 deletion src/wp-rest-api-auth0.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 350b912

Please sign in to comment.