My Oracle Support Banner

Unable To Get The Access Token. (Doc ID 2501576.1)

Last updated on OCTOBER 15, 2020

Applies to:

Oracle Social Relationship Management Cloud Service - Version N/A and later
Information in this document applies to any platform.

Goal

User wants to use the Get Messages API in the Engage scope . Why is it that when they try to call the API it is showing an error stating error "unable to connect".

Steps to recreate:

 Step 1: Register Your Client Application
  
 Step 2: Step 2: Request User Authorization and Obtain an Authorization Code
A. I have submitted the below URL with the required details like client_id, Scope and Redirect_url.
  https://gatekeeper.vitrue.com/oauth/authorize?client_id=CLIENT_ID&scope=SCOPE&redirect=CALLBACK&response_type=code

Then it gave me the code in the URL:

Step 3: Exchange the Authorization Code for an Access Token.
I have made the following API request.
  Method : POST
  Url: https://public-api.virtue.com/oauth/token HTTP/1.1
  Header : Host: GATEKEEPER
  Body:
  {
  "code": "CODE",
  "redirect_uri": "CALLBACK",
  "client_id": "CLIENT_ID",
  "client_secret": "CLIENT_SECRET",
  "grant_type": "authorization_code",
  "scope": "SCOPE"
}
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.