Accessing Drupal REST endpoint using Oauth 2 token

by esafwan   Last Updated January 12, 2018 10:07 AM

I have successfully installed the Simple OAuth module on my website. I am also able to authenticate to it using Postman. I am getting the access_token and the refresh_token when authenticating. However, am not able to figure out how I can use this token to access Drupal's default REST endpoints or the endpoints provided by JsonAPI module.

I tried sending the token in the header with Authorization as key and Bearer {{the token }} as the value with no success. What is the right way to use the token for communicating with Drupal?

Tags : 8 rest json oauth

Related Questions

what json structure does simple oauth expect?

Updated April 04, 2018 19:07 PM

Custom Drupal 8 REST webservice with OAuth

Updated May 27, 2016 08:03 AM

Example of how to get auth tokens from OAuth

Updated January 31, 2018 03:07 AM