Title: New filter request
Last modified: February 25, 2019

---

# New filter request

 *  [benjaminniess](https://wordpress.org/support/users/benjaminniess/)
 * (@benjaminniess)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/new-filter-request/)
 * Hi,
 * On a third party plugin, I’m working with the `REDIRECT_HTTP_AUTHORIZATION` server
   variable and I’d like to be able to disable the JWT `validate_token` method on
   a specific URL. Would you mind adding a filter before calling this method or 
   inside it so we could prevent it to send a WP_Error?
 * Thank you very much.
    Best, Ben

Viewing 1 replies (of 1 total)

 *  Thread Starter [benjaminniess](https://wordpress.org/support/users/benjaminniess/)
 * (@benjaminniess)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/new-filter-request/#post-11249164)
 * What I’d suggest is adding the following code in the class-jwt-auth-public.php
   file on line 200.
 *     ```
       if ( true === apply_filters( 'jwt_auth_skip_authentication', false ) ) {
         return $user;
       }
       ```
   
 * With this filter we could skip the auth process when we need to.
 * Thank you.
    Best, Ben

Viewing 1 replies (of 1 total)

The topic ‘New filter request’ is closed to new replies.

 * ![](https://ps.w.org/jwt-authentication-for-wp-rest-api/assets/icon-256x256.jpg?
   rev=3372068)
 * [JWT Authentication for WP REST API](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [benjaminniess](https://wordpress.org/support/users/benjaminniess/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/new-filter-request/#post-11249164)
 * Status: not resolved