I agree, authentication, along with the ability to edit content remotely, would be tremendously helpful.
Authentication is already enabled in Basic form; that is http://user:password@example.com/
More advanced authentication (OAuth, for example) can be provided by plugins through the json_check_authentication
filter.
Could someone give me an example of how to use the authentication in a Jquery ajax call and how to pull the current_users authentication details (username/password) into this?
I looked at the github documentation, but it only explains curl:
curl –data-binary=”{
“title”: “Hello Updated World!”,
“modified”: “2013-04-01T14:00:00+10:00”
}” \
-H “Content-Type: application/javascript” \
–user admin:password \
http://example.com/wp-json.php/posts/1
How would that example look as an Jquery ajax call with the current_users authentication details passed to jQuery in a secure way?
What is the json_check_authentication filter? ANy documentation on this?