dphiffer / wp-json-api

WordPress JSON API
http://wordpress.org/extend/plugins/json-api/
258 stars 181 forks source link

Added authentication for the posts controller in the form of a private authenticate() method. #3

Closed Achillefs closed 4 years ago

Achillefs commented 12 years ago

The authentication method utilizes the 'author' and 'user_password' query vars if they exist to try and authenticate the user. If authentication fails you get an error, and if the variables do not both exist the method fall back to the previously implemented functionality.

Achillefs commented 12 years ago

Oh, and here's more info on this: http://humbuckercode.co.uk/licks/code/post-to-wordpress-with-ruby-update/