WLS12: CDI Injected Principal Is Not Updated After Calling HttpServletRequest#authenticate (Doc ID 1927626.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

WLS12: CDI injected principal is not updated after calling HttpServletRequest#authenticate

After calling HttpServletRequest#authenticate, the cdi injected principals still return <anonymous> for the getName() method on the
principal instead of 'test_user'.

Expected behavior: the cdi injected principal represents the current caller identity 'test_user'



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