I have interested to do a oauth2 authenticator. For that I'm following the link  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  and create the custom resource server and oauth clients , then by following  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 "https://www.google.com" as redirect_uri , But in doc "https://oxygen.mycompany.com:7502/ClientWebApp/CustomerClient" 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?