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

(Doc ID 1637674.1)

Last updated on DECEMBER 11, 2017

Applies to:

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


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



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