Tmeister / wp-api-jwt-auth

A simple plugin to add JSON Web Token (JWT) Authentication to WP REST API
GNU General Public License v2.0
560 stars 161 forks source link

Other plugin endpoints get jwt_auth_bad_auth_header response code #229

Open obrunopolo opened 2 years ago

obrunopolo commented 2 years ago

This plugins eliminates possibilites of using "Authorization" headers in other endpoints. I have a plugin that has one endpoint using Basic Auth, and I cant use it anymore, because it gets jwt_auth_bad_auth_header response.

I believe there should be a way where this code can only be returned in jwt-auth/v1 endpoints.

I guess this is quite well explained.

pesseba commented 2 years ago

Try this other plugin: https://github.com/usefulteam/jwt-auth It is based in wp-api-jwt-auth

This other plugin has a filter to skip this problem