/*
package devCamp.WebApp.Utils;

import javax.servlet.http.HttpServletRequest;
import com.microsoft.aad.adal4j.AuthenticationResult;
import com.nimbusds.openid.connect.sdk.AuthenticationResponse;
import com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponse;

public final class AuthHelper {

    public static final String PRINCIPAL_SESSION_NAME = "principal";

    public static boolean isAuthenticated(HttpServletRequest request) {
        return request.getSession().getAttribute(PRINCIPAL_SESSION_NAME) != null;
    }

    public static AuthenticationResult getAuthSessionObject(HttpServletRequest request) {
        return (AuthenticationResult) request.getSession().getAttribute(PRINCIPAL_SESSION_NAME);
    }

    public static boolean containsAuthenticationData(HttpServletRequest httpRequest) {
        return httpRequest.getMethod().equalsIgnoreCase("POST")
                && (httpRequest.getParameterMap().containsKey(AuthParameterNames.ERROR)
                        || httpRequest.getParameterMap().containsKey(AuthParameterNames.ID_TOKEN)
                        || httpRequest.getParameterMap().containsKey(AuthParameterNames.CODE));
    }

    public static boolean isAuthenticationSuccessful(AuthenticationResponse authResponse) {
        return authResponse instanceof AuthenticationSuccessResponse;
    }
}

*/

@@ -711,32 +711,220 @@
 N_NAME);%0A    %7D%0A%0A
+%C2%A0%C2%A0%C2%A0 public static AuthenticationResult getAuthSessionObject(HttpSession session) %7B%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%0A        return (AuthenticationResult)session.getAttribute(PRINCIPAL_SESSION_NAME);%C2%A0%C2%A0%C2%A0 %0A    %7D%0A    %0A
     public stati

Update AuthHelper.java