WordPress.org

Forums

WP REST API (WP API)
Somes requests : authentification (4 posts)

  1. sireneweb
    Member
    Posted 1 year 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 Rooney
    Member
    Posted 1 year ago #

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

  3. Ryan McCue
    Member
    Plugin Author

    Posted 1 year 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 1 year 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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP REST API (WP API)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.