OAM 11g: OIF Authentication Fails With Error UNKNOWN_PRINCIPAL / 401 Unauthorized / Authentication instant was not sent from the authentication engine
(Doc ID 1416854.1)
Last updated on AUGUST 09, 2018
Applies to:Oracle Identity Federation - Version 188.8.131.52 and later
Information in this document applies to any platform.
Oracle Identity Federation (OIF) 11g as Identity Provider (IdP) has been configured with Oracle Access Manager (OAM) as OIF Authentication Engine.
Oracle HTTP Server (OHS) 11g is configured to proxy OIF requests. A WebGate (11g or 10.1.4.3) is installed with OHS 11g.
Both of the following have been tried:
1. OIF 'Oracle Access Manager' authentication engine configured.
2. OIF 'Oracle Single Sign On' authentication engine configured.
In both cases, when Start SSO button in the Test SP SSO (/fed/user/testspsso) page is pressed, after Identity Provider (IdP) login the following is displayed in the Test SP SSO results page:
SSO Secondary Status Code: UNKNOWN_PRINCIPAL
If OIF authentication is tested by another route, the following error is seen after IdP login credentials are submitted:
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
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.
The TRACE level OIF Service Provider (SP) diagnostic log shows an entry similar to the following, indicating that the IdP has returned the following authentication status code to the SP: urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal
The TRACE level OIF IdP diagnostic log shows entries similar to the following:
[2012-02-03T05:29:45.267+00:00] [wls_oif1] [TRACE]  [oracle.security.fed.eventhandler.profiles.idp.sso.v20.AuthnRequestEventHandler] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 004i73dnGdQ4MuMaELADUS0004Lm000068,0:1] [SRC_CLASS: oracle.security.fed.eventhandler.profiles.idp.sso.v20.AuthnRequestEventHandler] [APP: OIF#184.108.40.206.0] [SRC_METHOD: perform] [URI: /fed/user/authnosso] UNKNOWN_PRINCIPAL
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document
|This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.|