main
parent
d92389833a
commit
d08f51d833
|
|
@ -57,9 +57,17 @@ public class RssoInterceptor implements HandlerInterceptor {
|
||||||
if (cookies != null) {
|
if (cookies != null) {
|
||||||
for (var cookie : cookies) {
|
for (var cookie : cookies) {
|
||||||
if (cookie.getName().startsWith("sso_")||cookie.getName().startsWith("saml_")) {
|
if (cookie.getName().startsWith("sso_")||cookie.getName().startsWith("saml_")) {
|
||||||
|
RssoResponse rssoResponse = rsso.validateToken(cookie.getValue());
|
||||||
System.out.println("cookie:"+cookie.getName()+"/"+cookie.getValue());
|
System.out.println("cookie:"+cookie.getName()+"/"+cookie.getValue());
|
||||||
rsso.createSession(cookie.getValue(), session);
|
applicationLogger.info("cookie:"+cookie.getName()+"/"+cookie.getValue());
|
||||||
return true;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue