Manuel Tauber 2024-04-09 12:06:08 +02:00
parent d92389833a
commit d08f51d833
1 changed files with 10 additions and 2 deletions

View File

@ -57,9 +57,17 @@ public class RssoInterceptor implements HandlerInterceptor {
if (cookies != null) {
for (var cookie : cookies) {
if (cookie.getName().startsWith("sso_")||cookie.getName().startsWith("saml_")) {
RssoResponse rssoResponse = rsso.validateToken(cookie.getValue());
System.out.println("cookie:"+cookie.getName()+"/"+cookie.getValue());
rsso.createSession(cookie.getValue(), session);
return true;
applicationLogger.info("cookie:"+cookie.getName()+"/"+cookie.getValue());
System.out.println("Response "+ rssoResponse + "Status: " + rssoResponse.getResponseSessionStatus());
applicationLogger.info("Response "+ rssoResponse + "Status: " + rssoResponse.getResponseSessionStatus());
if(rssoResponse.getResponseSessionStatus() == "OK"){
rsso.createSession(cookie.getValue(), session);
return true;
}
}
}
}