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?