WordPress.org

Ready to get started?Download WordPress

Forums

JSON REST API
Somes requests : authentification (4 posts)

  1. sireneweb
    Member
    Posted 9 months ago #

    Thanks for your great plugin,

    - is it possible to integrate an authentication key ? with example an authentication to get data or manipulate data. (With this, reduce the scraping and steal content)

    http://wordpress.org/extend/plugins/json-rest-api/

  2. Dalton
    Member
    Posted 9 months ago #

    I agree, authentication, along with the ability to edit content remotely, would be tremendously helpful.

  3. Ryan McCue
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  4. landwire
    Member
    Posted 3 months ago #

    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?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.