Skip to Main Content
Cloud Platform


This is an IBM Automation portal for Cloud Platform products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.


Status Submitted
Workspace WebSphere Liberty
Created by Guest
Created on Nov 8, 2024

Implementing WSSubject.getRootLoginException() in Liberty

We are migrating an existing JEE application from WebSphere Traditional to Liberty, and the current application has a custom user registry module. In WebSphere Traditional, we can call WSSubject.getRootLoginException() to get the root cause of login failure. However, in Liberty 24.0.0.x, the method always returns null. By reviewing the source code from com.ibm.websphere.security.auth.WSSubject (even the latest version in Maven - https://mvnrepository.com/artifact/com.ibm.websphere.appserver.api/com.ibm.websphere.appserver.api.basics/1.4.94), it seems the method just returns null without any logic.

public static Throwable getRootLoginException() {
return null;
}

After a conversation with IBM support team (case #TS017587281), IBM support team confirmed the WSSubject.getRootLoginException() functionality was not included in this transition of WebSphere to Liberty.

Since the API is useful and the Java documentation indicates that the function should still be working, it would be beneficial if IBM could implement the API as described in the javadoc in a future release.

    /**
    * <p>
    * This convenient method returns the root login exception caught in the system
    * login module, if one exists.
    * </p>
    * 
    * <p>
    * It will extract the exception from the current thread. You will get what
    * the login module sees as the root exception. This could be a nested exception.
    * You may need to extract exceptions from the exception returned until you
    * get the real root exception.
    * </p>
    * 
    * @return A Throwable containing the root login exception. If a login
    *         exception did not occur, null will be returned.
    */
   public static Throwable getRootLoginException() {
       return null;
   }

Idea priority Low