Logoff is not working in wildfly 26

55 views
Skip to first unread message

pba...@gmail.com

unread,
Apr 21, 2023, 7:48:14 AM4/21/23
to WildFly
Hi,

We have recently upgraded wildfly from 23 to 26 and keycloak from 16 to 19.
We have around 10 diff application. The logout code is same for all

 @Override
    public void invalidateSession(HttpServletRequest request) {
        if ("KEYCLOAK".equals(request.getAuthType())) {
            try {
                request.logout();
            } catch (Exception e) {
                // ignore
            }
        }
        // If a session exists, invalidate it.
        HttpSession session = request.getSession(false);
        if (session != null) {
            try {
                session.invalidate();
            } catch (IllegalStateException e) {
                // ignore
            }
        }
    }


The logout is happening for all application expect 2 application.
In this one applictaion using structs and other one is spring.

There is no difference in the log statements "in successful" and " in failure sceanrio. No error, no exception.
In keycloak, the  session  is still active when we do logoff.  Basically request.logout() is not happening in the above code.
Anyone faced similar issue. Before upgrading the logoff was workign properly

Regards,
Poornima
Reply all
Reply to author
Forward
0 new messages