Failed In Authorization On Configure Profile Service For 2-leg OAuth

(Doc ID 2367251.1)

Last updated on MARCH 07, 2018

Applies to:

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

Goal

Configuring 2-leg OAuth with steps from http://www.ateam-oracle.com/implementing-oauth-2-with-oracle-access-manager-oauth-services-part-ii/

we must configure profile service, but we are getting the below the error.

[root@lx626: ~ -> curl -i -H "Authorization: Basic YnVzaW5lc3NDbGllbnQ6V1VQak45NVE=" -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -d 'grant_type=password&username=XXXX&password=XXXX&scope=UserProfile.me' http://<host_name>:14100/ms_oauth/oauth2/endpoints/oauthservice/tokens HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, must-revalidate
Date: Fri, 02 Feb 2018 14:41:41 GMT
Pragma: no-cache
Transfer-Encoding: chunked
Content-Type: application/json
X-ORACLE-DMS-ECID: 02dfc9543fe630da:1e873171:15c6019ef3b:-8000-00000000002e87bf
X-Powered-By: Servlet/2.5 JSP/2.1

{"expires_in":3600,"token_type":"Bearer","access_token":"eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCIsIng1dCI6IlJ0VjNBOGU1SlBERkh6UFc0dXZING5ieThydyIsImtpZCI6Im9yYWtleSJ9.eyJzdWIiOiJHRENMUk43MEEwMUEwMDFXIiwib3JhY2xlLm9hdXRoLnVzZXJfb3JpZ2luX2lkX3R5cGUiOiJMREFQX1VJRCIsIm9yYWNsZS5vYXV0aC51c2VyX29yaWdpbl9pZCI6IkdEQ0xSTjcwQTAxQTAwMVciLCJpc3MiOiJ3d3cub3JhY2xlLmV4YW1wbGUuY29tIiwib3JhY2xlLm9hdXRoLnN2Y19wX24iOiJPQXV0aFNlcnZpY2VQcm9maWxlIiwiaWF0IjoxNTE3NTgyNTAxLCJvcmFjbGUub2F1dGgucHJuLmlkX3R5cGUiOiJMREFQX1VJRCIsIm9yYWNsZS5vYXV0aC50a19jb250ZXh0IjoicmVzb3VyY2VfY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oxNTE3NTg2MTAxLCJwcm4iOiJHRENMUk43MEEwMUEwMDFXIiwianRpIjoiNzkxMWI0NmMtZWRkOS00YTJjLTgwNjUtMTg4MGVkNjE2MzhlIiwib3JhY2xlLm9hdXRoLmNsaWVudF9vcmlnaW5faWQiOiJidXNpbmVzc0NsaWVudCIsIm9yYWNsZS5vYXV0aC5zY29wZSI6IlVzZXJQcm9maWxlLm1lIiwidXNlci50ZW5hbnQubmFtZSI6IkRlZmF1bHREb21haW4iLCJvcmFjbGUub2F1dGguaWRfZF9pZCI6IjEyMzQ1Njc4LTEyMzQtMTIzNC0xMjM0LTEyMzQ1Njc4OTAxMiJ9.tzWdUs1v22FELcakcdJ-bU66iEWOtsKnziRaLrbG8GErkGhCf-L60igjgMfU6R5gFurgzMfalFCldmuT8hV_5Qx1v8k1DdlOQ98b-1mTcn1vTs33FEUmI-igpXz6d8ber60PawTUN3xwt4g2M3rpUGB_IuuhhGdFtiZlq6Ziyh8' -d '{"description": "user2description"}'



{"message":"Failed in authorization","oicErrorCode":"IDAAS-67011"}
 

Solution

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