Skip to content

Commit

Permalink
Fixed REST API authentication when using 3rd party auth methods
Browse files Browse the repository at this point in the history
Closes #21789
  • Loading branch information
claudiosanches authored and claudiulodro committed Nov 28, 2018
1 parent 7077571 commit 35c701b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/api/class-wc-rest-authentication.php
Expand Up @@ -39,7 +39,7 @@ class WC_REST_Authentication {
*/
public function __construct() {
add_filter( 'determine_current_user', array( $this, 'authenticate' ), 15 );
add_filter( 'rest_authentication_errors', array( $this, 'check_authentication_error' ) );
add_filter( 'rest_authentication_errors', array( $this, 'check_authentication_error' ), 15 );
add_filter( 'rest_post_dispatch', array( $this, 'send_unauthorized_headers' ), 50 );
add_filter( 'rest_pre_dispatch', array( $this, 'check_user_permissions' ), 10, 3 );
}
Expand Down

0 comments on commit 35c701b

Please sign in to comment.