<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><span style="color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.5px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important;
float: none; background-color: rgb(255, 255, 255);">I develop a
rest based api application with spring security and keycloak.
I'd like to execute custom code when users are log in in to my
application in any rest controller, I try with my filter putting
in the last position of filter chain, but the KeycloakPrincipal
in the request is null (seems that Keycloak value was set after
that)<br>
</span></p>
<p><span style="color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.5px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important;
float: none; background-color: rgb(255, 255, 255);">How can I </span><span
style="color: rgb(34, 36, 38); font-family: Arial, 'Helvetica
Neue', Helvetica, sans-serif; font-size: 15px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.5px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important;
float: none; background-color: rgb(255, 255, 255);">execute
custom code when users are login in the right way?<br>
</span></p>
<p><span style="color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.5px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important;
float: none; background-color: rgb(255, 255, 255);">Thanx<br>
</span></p>
<p><span style="color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.5px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important;
float: none; background-color: rgb(255, 255, 255);"><br>
</span></p>
<p><span style="color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.5px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important;
float: none; background-color: rgb(255, 255, 255);"><br>
</span></p>
</body>
</html>