Currently working on generating Application Passwords on the fly. I have an android app that is successful in getting a JWT from my WordPress instance. It can validate and i can read and update posts without issue (in testing..)
Im currently trying to generate an application password for the users programmatically so its not reliant on Java Web Tokens. I'm testing with the RESTED plugin for Firefox, but im not able to get the endpoint to authenticate with my tokens..
The API endpoint it always generating some variation of this:
I have tested the following end points:
/wp-json/wp/v2/users/me/application-passwords/
This results in:
{
"code": "rest_not_logged_in",
"message": "You are not currently logged in.",
"data": {
"status": 401
}
}
- `/wp-json/wp/v2/users/1/application-passwords/ This resulted in:
{
"code": "rest_cannot_create_application_passwords",
"message": "Sorry, you are not allowed to create application passwords for this user.",
"data": {
"status": 401
}
}
neither will authenticate with JWT. I am running WP 6 with cloud flare as my DNS provider but they are not set to proxy the connection. Everything I've read so far mentions my .htaccess not being correct. But if that were the case then it shouldn't be able to validate the tokens either.
Just for reference, my HTACCESS is pastebined. https://pastebin.com/P8NVpWqL