Answering my own question.
For plugin developers, the directive is to use current_user_can()
in your code as usual in the REST endpoints, as Core does.
WordPress 5.4 does not support authenticated requests originated from outside WordPress to the REST API yet. But your clients can use plugins such as Basic Auth, OAuth2 or JWT to add that functionality.
The REST team in WordPress is working to add a built-in authentication method into Core, most likely, OAuth2. Now is May 01 2020. My blatant, probably wrong guess, is that this could be coming to Core in 12~ months or so.
2021 update
REST API authentication with Application Passwords was added in WordPress core on 5.6!
Related Posts:
- JWT on Woocommerce cannot work with “Customer” role user
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- How do I use the WP REST API plugin and the OAuth Server plugin to allow for registration and login?
- How to authenticate custom API endpoint in WooCommerce [closed]
- Process checkout using WC REST API
- Extend Woocommerce rest api routes fails
- Rest API authentication issue when called from fetch request in bundle.js
- Can’t GET draft posts via REST API from headless frontend
- How to filter Post using Meta Data REST API
- How to stop a Gutenberg Block from firing multiple GET Requests?
- Output JSON object with woocommerce products
- Problem with cURL and rest API
- WP REST API GET Requests require authentication
- Woo API REST : product variation price is read-only?
- Category Tree In WooCommerce Product API
- How to save generated JWT token to cookies on login?
- How to upload Woocommerce product images via API? [closed]
- How to handle Woocommerce API credentials
- What will make Woocommerce REST API to issue 401 [closed]
- Woocommerce custom endpoints
- Woocommerce REST API – updating an order changes custom tax calculations
- Woocommerce Rest Api Categories problem [closed]
- API returns blank response after installing & uninstalling WP-rest-api plugin
- Delete cookie when changing url (when navigating away from specific page of website)
- woocommerce axios react
- Get specific values in Woocommerce Rest API
- wc_get_products() not return the images details
- WooCommerce – Add product with image via REST API
- Tax are not showing on order while placing order with REST API
- Woocommerce REST API – add filter to set maximum query per page for product brands [closed]
- WooCommerce – Create multiple product tags via rest api endpoint
- Using the WordPress and WooCommerce REST APIs in the same Node app
- Retrieve Data from Custom Endpoint
- Log in user using WordPress REST API
- How to verify which WordPress user requested the API in ASP .NET Core?
- How to run code when cookie is added?
- How to solve `Error getting remote image` in woocommerce rest api script?
- Getting in an exception for get product detail by id in woocommerce REST api
- Impossible to create a new WooCommerce customer using Rest API
- Woocommerce API security concerns
- How can I send information when a order is completed to my own POS?
- Woocommerce Rest API: woocommerce_product_invalid_image_id
- How to get cookie value?
- The same session information for peer users on two different WordPress servers
- WC Booking query bookings with date ranges
- “error_message”: “Sorry, you cannot list resources.” using WooCommerce API
- Woocommerce REST API: creating variations
- Woocommerce REST API not considering discounts and coupons
- Users credentials and syncing from third party with WooCommerce
- WooCommerce REST API endpoints don’t exist
- Fetch products with filter by similar categories at same time
- Rest Api WordPress
- Send data to external websites when there is an update or create a post
- Auto generating API keys using the Application Authentication Endpoint [closed]
- GET woocommerce order request is not showing meta data [closed]
- How to add fee_lines using woocommerce rest API v3?
- WooCommerce Order Sync via Custom REST API Endpoint Failing
- How to modify username before logging in?
- Update a server-side render Block when woocommerce cart block changed
- not saving the WC_Session_Handler session and removing the product from the cart session in WooCommerce’s custom rest api
- How to move WooCommerce Product Data Box below Title Box in Edit
- Give auto discount to upsells products
- WooCommerce and Theme templates
- Woocommerce woocommerce_breadcrumb_defaults filter [closed]
- WooCommerce Hook after Billing form completed, but before payment Gateway
- Change woocommerce one category image size
- Remove Span Class From Woocommerce Price
- WooCommerce shop, my account, cart every page redirect to home page [closed]
- Some Admin disappeared
- How to edit woocommerce checkout fields
- PHP Warning: Error while sending QUERY packet
- WooCommerce Table Rates not splitting up
- Custom access given to Admin dashboard
- Sort by promo code used woocommerce admin panel [closed]
- Add category description on product page (Woocommerce)
- How can I let the user choose size of a shoe in the store? [closed]
- WooCommerce – item added to order not actually saved? [closed]
- Hide/show specific products for backend users in woocommerce
- show payment receipt in woocommerce thankyou page with custom payment gateway?
- Restrict the shop_manager role to the WooCommerce Orders Page
- WooCommerce, after moving reviews tab to under product description. If pagination link is clicked description is hidden
- How to disable click thumbnail product on archives product [closed]
- Hide .woocommerce-price-suffix on the product list page
- I’d like to add a button under the “Add to Cart” button which says “Buy on Amazon” and links to my Amazon product page [closed]
- Woocommerce shows empty columns [closed]
- If YITH Wishlist page is set to the WooCommerce my-account endpoint, the endpoints stop working all together. Any solution?
- WooCommerce pay per photo upload [closed]
- Product atributes in title of order (not in description)
- How to create custome pdf file of my invioice in wordpress
- Is it possible to hide certain products from displaying in the search results
- How to edit schema.org markup of WooCommerce?
- Display product variations on same row [closed]
- Override woocommerce template from parent theme
- How to get sub items of parent menu item?
- WordPress Woocommerce product-category info on one line [closed]
- Manual Woocommerce Complete order Emails
- Search box missing Woocommerce Product Bundle Extension
- WordPress and WooCommerce How to Assign Attribute Based Pricing
- Is it possible to customize username field from the registration page in woocommerce? [closed]
- Woocommerce cart displays outdated prices [closed]