Using OAM 11.1.2.3: OAuth is not Able to Fetch UserProfile and Getting the Error: Resource is not found, oicErrorCode : IDAAS-24001 (Doc ID 2299721.1)

Last updated on AUGUST 25, 2017

Applies to:

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

Symptoms

Using OAM 11.1.2.3:

After executing the command below:
curl -i -H 'Authorization: Basic YnVzaW5lc3NDbGllbnQ6M1dGTHVkVEZ5Qms=' -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" --request POST https://hostname:4443/ms_oauth/oauth2/endpoints/oauthservice/tokens -d 'grant_type=password&username=yhazar5g&password=Welcome&scope=TestUserProfile.users.read' -k

Then use the received access_token from the result of the above command then executing command below with the access token value:
curl -i --request GET -H 'Authorization:eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCIsIng1dCI6IktMV1hSR3RjWGZ0aVZDR1lxOG9HdUQ3M1dCTSIsImtpZCI6Im9yYWtleSJ9.eyJzdWIiOiJ5aGF6YXI1ZyIsIm9yYWNsZS5vYXV0aC51c2VyX29yaWdpbl9pZF90eXBlIjoiTERBUF9VSUQiLCJvcmFjbGUub2F1dGgudXNlcl9vcmlnaW5faWQiOiJ5aGF6YXI1ZyIsImlzcyI6Ind3dy53YWxncmVlbnMuY29t…………………………C0xMjM0LTEyMzQtMTIzNC0xMjM0NTY3ODkwMTIifQ. -bGzg_Dv6qN3dAlphqqvvnx8ivJqdoJRWOrK2stK1atfUA0pcu1U3hJ-4cJ2mJXfqqGU' 'https://hostname:4443/ms_oauth/resources/TestUserProfile/users/yhazar5g' -k

OAuth is not able to fetch UserProfile and getting the following error :

 

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