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

Custom Drupal 8 REST webservice with OAuth

Updated May 27, 2016 08:03 AM

How to use Simple FB Connect in decoupled Drupal

Updated February 23, 2017 15:07 PM

REST API signin/signup via FB Drupal-8

Updated March 08, 2017 07:07 AM