• 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

    (@benjaminniess)

    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.