Skip to Main Content


Couldn't get the authorization code using OAuth 2 with Oracle Access Manager OAuth Services

3258810Jun 18 2016 — edited Aug 19 2019

Hi ,

I have interested to do a oauth2 authenticator. For that I'm following the link [1] and successfully installed oracle identity and access management in my windows 8.1 machine and start the oam server with port 14100 and oim server with 14000. The weblogic server runs with the port 7001 .

Then I'm following [2] and create the custom resource server and oauth clients , then by following [3] I have tried the endpoint like below to get the authorization code.


But I got the following 401 error.

"10.4.2 401 Unauthorized

The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information. HTTP access authentication is explained in section 11."




Could anyone guide me on above error ?

Where I made mistake ?

Note that , I'm using "" as redirect_uriĀ  , But in doc "" is used as redirect_uri.

Is this the reason for that error?

Can't we make a direct call with that endpoint by using any rest client?

I'm stuck with this error for last four days . Please guide me on this?


Post Details
Added on Jun 18 2016