ADF #{securityContext.userName} returns wrong Principal username with WLS Custom Security provider(SSPI). (Doc ID 1637674.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle JDeveloper - Version 11.1.1.7.0 and later
Oracle WebLogic Server - Version 10.3 and later
Oracle Platform Security for Java - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Symptoms

When implemented a WebLogic Custom Authenticator. My Subject contains several principals (WLSuser, WLSGroup) but #{securityContext.userName} returns randomly the WLSUser of WLSGroup name.

For example:

when displaying #{securityContext.userName} on jspz or jsf page which contains following Principa's

 

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