cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to capture session attribute by method

dbusquets
Helper

Hi,

 

I'm trying to capture a session attribute like I used to do it in Appmon:

 

dbusquets_0-1624621221810.png

 

But tried to define a Request Attribute as "Servlet Session Attribute" with no luck:

 

dbusquets_1-1624621377820.png

 

 

I tried to define the same type of Request Attribute but only setting "SPRING_SECURITY_CONTEXT" and it captures all parameter configuration, and that's not we need.

 

Anyone knows how to capture one specific method from a Session Attribute?

 

Thanks!

2 REPLIES 2

Hello, Just underneath the parameter name is an expandable section "Further restrict or process captured parameters (optional)"

 

Hi Richard,

Thanks! But how can I specify the list of methods to capture the last one?


SPRING_SECURITY_CONTEXT.getAuthentication().getPrincipal().getUsername()