OIM REST API Doesn't Authorize OAM SAML Token throws "Unauthorized' error

(Doc ID 2400881.1)

Last updated on MAY 18, 2018

Applies to:

Oracle Access Manager - Version 11.1.2.3.180116 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.2.3.180116 version, OAM and OIM 11.1.2.3.0.

OIM REST API doesn't authorize OAM SAML Token


ERROR
-----------------------

OIM server does not authorize the user, it thows  "Unauthorized' error.



STEPS
-----------------------
The issue can be reproduced at will with the following steps:

1. Followed : Oracle A-Team's blog "http://www.ateam-oracle.com/authenticating-to-the-oig-rest-api-from-an-oam-protected-web-app/".


2. Added following in EM:
saml.user.mapping.attribute=iamguid
oracle.security.jps.dn.mapping.attribute=iamguid

3. Updated OUDAuthenticator's user name attribute to iamguid.


4. uid is the attribute with which user logs in, and iamguid is the attribute that forms the DN.

5. If a user's uid and iamguid are different, the OIM is unable to search the user, but if both the attributes are the same, the OIM is able to get the user.


Actual use-case fails:

DN: iamguid=3622fcb3-2c79-406a-a418-e2b4f3eb1f5b,cn=users,dc=oracle,dc=com
uid=cuser2
iamguid=622fcb3-2c79-406a-a418-e2b4f3eb1f5b
USR_LOGIN: CUSER2
USR_LDAP_DN: iamguid=3622fcb3-2c79-406a-a418-e2b4f3eb1f5b,cn=users,dc=oracle,dc=com

A test use-case passed:

DN: uid=tuser1,cn=users,dc=oracle,dc=com
uid=tuser1
iamguid=tuser1
USR_LOGIN: TUSER1
USR_LDAP_DN: uid=tuser1,cn=users,dc=oracle,dc=com

Changes

 

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