My Oracle Support Banner

"Cannot request OAuth access token" Error Using Rest Adapter With Custom Two Legged OAuth (Doc ID 2659000.1)

Last updated on APRIL 13, 2020

Applies to:

Oracle Integration-OIC - Version 18.2.5 and later
Information in this document applies to any platform.

Symptoms

Custom Two Legged OAuth authentication used in REST Adapter with IDCS Rest api URL fails with the following error


ERROR
-----------------------
Caused by: java.lang.IllegalAccessException: POST
https://idcs-xxxxxxxnnnnnnnxxxxxxx.identity.oraclecloud.com/oauth2/v1/token returned a response status of 400 Bad Request
at
oracle.cloud.security.oauth.client.AccessToken.<init>(AccessToken.java:44)
at
oracle.cloud.security.oauth.client.DefaultAuthSecurityHandler.requestAccessTok
en(DefaultAuthSecurityHandler.java:158)
at
oracle.cloud.security.oauth.client.util.OAuthUtil.getTwoLeggedOAuthAccessToken
(OAuthUtil.java:1616)
... 125 more


Changes

 

Cause

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
Symptoms
Changes
Cause
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.