Support » Plugin: WP REST API (WP API) » Somes requests : authentification

Viewing 3 replies - 1 through 3 (of 3 total)
  • I agree, authentication, along with the ability to edit content remotely, would be tremendously helpful.

    Plugin Author Ryan McCue


    Authentication is already enabled in Basic form; that is

    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 \

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Somes requests : authentification’ is closed to new replies.