cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Log out while single sign on scenario

Former Member
0 Likes
504

hi team we integrate dour storefront with okta for single sign on based on requirement we are able to successfully login into hybris application but while doing logout the saml cookie which is created during login time is not getting deleted from browser hense log out is not working

we added logic to delete saml token in LogOutsuccesshandler but still its not working

we are using OOB logic to delete cookie if nay one faced this issue plz help us

public static void eraseSamlCookie(final HttpServletResponse response) { final String cookieName = Config.getParameter(AssistedservicefacadesConstants.SSO_COOKIE_NAME); System.out.println("cookie name" + cookieName); if (cookieName != null) { final Cookie cookie = new Cookie(cookieName, ""); cookie.setMaxAge(0); cookie.setPath("/"); cookie.setHttpOnly(true); cookie.setSecure(true); response.addCookie(cookie);

     }
 }

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi, did this work? We are facing the same issue. Kindly suggest.