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?
- 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
1 Answer
Reset to default 0In 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
版权声明:本文标题:plugins - How to authenticate via API to allow writesupdates 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742192247a2430428.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论