My Oracle Support Banner

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

Last updated on DECEMBER 16, 2023

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 '<user_name>'.

Expected behavior: the cdi injected principal represents the current caller identity '<user_name>'

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.