admin管理员组

文章数量:1326118

I've been working with the Wordpress REST API Authentication plugin (from miniOrange) as part of an article I'm writing. I want to demonstrate how to integrate a third-party application with a WP site through the API.

The miniOrange plugin is actually great for API calls that only want to read, but if I want to post pages or other information to the site, it is necessary to authenticate as a user with privilege.

Unfortunately, this plugin doesn't appear to even offer a trial mode for doing this. In order to use authentication modes that would allow writing, the plugin must be upgraded to the tune of somewhere between $150 to $400 (various sources of intel on this differ).

  • Is this the ONLY suitable authentication plugin?
  • Is there no other way to utilize the API for write operations without a similar plugin?

I've been working with the Wordpress REST API Authentication plugin (from miniOrange) as part of an article I'm writing. I want to demonstrate how to integrate a third-party application with a WP site through the API.

The miniOrange plugin is actually great for API calls that only want to read, but if I want to post pages or other information to the site, it is necessary to authenticate as a user with privilege.

Unfortunately, this plugin doesn't appear to even offer a trial mode for doing this. In order to use authentication modes that would allow writing, the plugin must be upgraded to the tune of somewhere between $150 to $400 (various sources of intel on this differ).

  • Is this the ONLY suitable authentication plugin?
  • Is there no other way to utilize the API for write operations without a similar plugin?
Share Improve this question asked Aug 10, 2020 at 22:09 agentvagentv 1094 bronze badges 2
  • 1 Have you tried any of the plugins mentioned in the documentation? developer.wordpress/rest-api/using-the-rest-api/… – Jacob Peattie Commented Aug 11, 2020 at 0:18
  • Yes, three of the four links I found were for plugins that are in a questionable support state. The other, "Application Password" looks a little bit awkward. I was hoping for an approach more in line with common API integration patterns. – agentv Commented Aug 12, 2020 at 3:50
Add a comment  | 

1 Answer 1

Reset to default 0

In the documentation I could find, it seems there were four options.

  • OAuth1.0a Server - this appeared to be unsupported and obsolete
  • Application Passwords - This might work, but it seemed a bit awkward to me
  • JSON Web Tokens - this appears to be unsupported and obsolete
  • Basic Authentication - this appears unsuitable as far as I can see

I explored the API Authentication plugin from miniOrange, and discovered that you can do a lot of things with the free version.

You can GET pages, posts, comments, and media.

You can POST media, comments, and posts.

The plugin supports Basic Authentication, JWT authentication, or (with the premium version,) OAuth 2.0.

So the short answer to my question is, "yes, you can configure authentication for the WP API on your site without incurring big expense."

本文标签: pluginsHow to authenticate via API to allow writesupdates