Oracle SOA Suite (MOSC)

MOSC Banner

Need Help: Calling OAuth 2.0 Token Endpoint from Oracle SOA BPEL – "Missing Required Property: grant

in Oracle SOA Suite (MOSC) 1 commentAnswered ✓

I'm trying to invoke an OAuth 2.0–protected REST API from an Oracle SOA Suite 12c BPEL process. The first step is to fetch the access token using the client_credentials grant type. However, I'm consistently getting the following error from the token endpoint:

{
"errors": [
{
"code": "OBJECT_REQUIRED",
"dataPath": "",
"message": "Missing required property: grant_type"
}
]
}

Endpoint: https://api.smartrecruiters.com/identity/oauth/token

Method: POST

Headers:
Content-Type: application/x-www-form-urlencoded

Request Body:grant_type=client_credentials&client_id=xxxxx&client_secret=yyyyy

Sent the request body as a string variable in BPEL

Mapped the payload to the input of a REST Adapter

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center