How can I authenticate user credentials against a WordPress instance?

The JWT Authentication for WP REST API plugin offers a user authentication mechanism. You will need to: install and configure the plugin make user authentication requests against the new token endpoint optionally use the token to make further queries on behalf of users continue using OAuth 1.0 for WP/WC REST queries References: https://jwt.io/introduction/ Using JWT … Read more

Calling an API to do authentication / user login

It’s better not to do so. And I’m completely against overriding the default authentication mechanism simply because of WordPress and it’s plugins usually are depended on the website’s database. But if you’re really into this situation WordPress provides a filter called authenticate: add_filter( ‘authenticate’, ‘wpse75679_auth’, 30, 3 ); function wpse75679_auth( $user, $username, $password ) { … Read more