Last updated on MARCH 08, 2017
Applies to:Oracle WebCenter Portal - Version: 22.214.171.124.0
Information in this document applies to any platform.
WebCenter ADF portlet created originally in PS2 environment and ported to PS4 doesn't work anymore.
The following code:
ADFContext adfContext = ADFContext.getCurrent();
Prinicipal principal = adfContext.getSecurityContext().getUserPrincipal();
was working fine in the ADF portlets for the WebCenter PS2.
After migration to PS4 the code returns always "anonymous" and not principal of currently logged in user.
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