WP REST API – OAuth 1.0a Server

Beschrijving

Deze plugin gebruikt het OAuth 1.0a protocol om gedelegeerde autorisatie mogelijk te maken; dat betekent, om applicaties toegang te verlenen tot een website met behulp van een set secundaire referenties. Dit stelt server beheerders in staat om te controleren welke applicaties toegang hebben tot de website, en stelt gebruikers in staat om te controleren welke applicaties toegang hebben tot hun gegevens.

Deze plugin ondersteund alleen WordPress >= 4.4.

The latest stable version is also available from the WordPress Plugin Directory.

New to OAuth

We strongly recommend you use an existing OAuth library. You’ll be best off if you understand the authorization process, but leave the actual implementation to well-tested libraries, as there are a lot of edge cases.

Start reading from the Introduction to get started!

For OAuth Veterans

If you already know how to use OAuth, here’s the lowdown:

  • The plugin uses OAuth 1.0a in
  • We use the three-legged flow
  • To find the REST API index, apply the API autodiscovery process
  • The endpoints for the OAuth process are available in the REST API index: check for $.authentication.oauth1 in the index data.
    • The temporary credentials (request token) endpoint is $.authentication.oauth1.request (typically /oauth1/request)
    • The authorization endpoint is $.authentication.oauth1.authorize (typically /oauth1/authorize)
    • The token exchange (access token) endpoint is $.authentication.oauth1.access (typically /oauth1/access)
  • Your callback URL must match the registered callback URL for the application in the scheme, authority (user/password) host, port, and path sections. (Subpaths are not allowed.)
  • The only signature method supported is HMAC-SHA1.
  • OAuth parameters are supported in the Authorization header, query (GET) parameters, or request body (POST) parameters (if encoded as application/x-www-form-urlencoded). OAuth parameters are not supported in JSON data.

Beoordelingen

22 februari 2021
Really Useful And Good Plugin But Please 1- Reply on The Support Forum 2- Update it To Work Good With Last WordPress Verison 3 – No Clear Docs 4 – not work with localhost
8 oktober 2017
Got this working after some good amount of work! Thanks for bringing this and making API calls secure.
3 augustus 2017
Just google { "code": "rest_cannot_create", "message": "Sorry, you are not allowed to create posts as this user.", "data": { "status": 401 } } and you’ll find anyone using this plugin having issues authenticating to perform and protected operations. Dev team is not even responding to github issues or forum posts.
Lees alle 6 beoordelingen

Bijdragers & ontwikkelaars

“WP REST API – OAuth 1.0a Server” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

Vertaal “WP REST API – OAuth 1.0a Server” naar jouw taal.

Interesse in de ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.