WordPress REST API Authentication Using Third Party Provider



WordPress REST API Authentication using Third Party Provider method involves the use of token received from the third party for authentication. Each time a request to access the API will be made, the authentication will be done against that token, and on the basis of the verification of the API token, the resources for that API request will be allowed to access.

Download And Installation

  • Log into your WordPress instance as an admin.
  • Go to the WordPress Dashboard -> Plugins and click on Add New.
  • Search for a WordPress REST API Authentication plugin and click on Install Now.
  • Once installed click on Activate.

Step 1: Setup WordPress REST API Authentication plugin

  • Select REST API Authentication method →Third party Provider and add Introspection Endpoint provided by your OAuth/OpenID Connect provider click on Save Configuration.
  • WordPress REST API Authentication using third party key method
  • Once you configure the plugin with the Introspection Endpoint provided by your provider, try to access your WordPress REST APIs using the access token/id_token provided by your OAuth Provider as shown below.
  • Request: GET https://<domain-name>/wp-json/wp/v2/posts
    Header: 
    access_token : < access_token >
    OR
    id_token  : < id_token  >
    
  • Check out the developer documentation for more details.

Postman Samples:

    Follow the steps below to make REST API request using Postman:

  • You can download the sample Postman request format from here.
  • Extract the downloaded zip file and import the extracted json file into the Postman application.
  • WordPress REST API Authentication using third party method postman implementation
  • Replace the < access_token > or < id_token > with the respective token provided by your OAuth 2.0 provider.
  • Example:
  • WordPress REST API Authentication using third party method postman replace url actual resource

Need Help?

Mail us on oauthsupport@xecurify.com for quick guidance(via email/meeting) on your requirement and our team will help you to select the best suitable solution/plan as per your requirement.


Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com