Accessing WebGate Protected Resource Using OAMMS ACCESSTOKEN Fails With "Authorization Required" (Doc ID 2031640.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Mobile and Social - Version 11.1.2.2.0 and later
Information in this document applies to any platform.

Symptoms

Access to a WebGate protected resource using an Oracle Access Manager Mobile and Social (OAMMS) ACCESSTOKEN is failing with error "Authorization Required".

The error in the WebGate oblog.log is:

The required parameters have been added in the User Defined Parameters field of WebGate agent:

 OAMAuthAuthenticationServiceLocation=https://oam.oracle.com/oic_rest/rest/mobileoamauthentication
 OAMAuthUserAgentPrefix=OIC-Agent
  
The following curl command is used to access the WebGate protected resource with the ACCESSTOKEN:

curl -i -H "User-Agent:OIC-Agent" -H "Authorization: OAM-Auth $ACCESSTOKEN" http://app.oracle.com:7122/protected/test.html



Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms