Open giricgoyal opened 2 years ago
Not able to authenticate protected apis with jwt token. Receiving invald_username error. Using postman to create and test the workflow.
Configuration: General:
Login:
Authentication:
Steps to reproduce:
{ "email": "test1@gmail.com", "password": "password", "AUTH_KEY": "{{PASSPORT_API_KEY}}" }
Authorization: "Bearer <JWT TOKEN>"
Received the error:
{ "code": "invalid_username", "message": "<strong>Error</strong>: Unknown username. Check again or try your email address.", "data": null }
Same here It seems like the JWT auth is triggering the "Default authentication filters" The file wp-includes/user.php function "wp_authenticate_username_password" which throws this error
Bug Description
Not able to authenticate protected apis with jwt token. Receiving invald_username error. Using postman to create and test the workflow.
Configuration: General:
Login:
Authentication:
Steps to reproduce:
Received the error:
Environment