public void login(Request request, String username, String password) throws ServletException { // Is there an SSO session against which we can try to reauthenticate? String ssoId = (String) request.getNote(Constants.REQ_SSOID_NOTE); if (ssoId != null) { if (log.isDebugEnabled()) log.debug("SSO Id " + ssoId + " set; attempting " + "reauthentication"); /* Try to reauthenticate using data cached by SSO. If this fails, either the original SSO logon was of DIGEST or SSL (which we can't reauthenticate ourselves because there is no cached username and password), or the realm denied the user's reauthentication for some reason. In either case we have to prompt the user for a logon */ if (reauthenticateFromSSO(ssoId, request)) return; } Realm realm = context.getRealm(); Principal principal = realm.authenticate(username, password); if (principal != null) { register(request, request.getResponseFacade(), principal, Constants.LOGIN_METHOD, username, password); } }
public void login(Request request, String username, String password) throws ServletException { // Is there an SSO session against which we can try to reauthenticate? String ssoId = (String) request.getNote(Constants.REQ_SSOID_NOTE); if (ssoId != null) { if (CatalinaLogger.AUTH_LOGGER.isDebugEnabled()) CatalinaLogger.AUTH_LOGGER.debug("SSO Id " + ssoId + " set; attempting " + "reauthentication"); /* Try to reauthenticate using data cached by SSO. If this fails, either the original SSO logon was of DIGEST or SSL (which we can't reauthenticate ourselves because there is no cached username and password), or the realm denied the user's reauthentication for some reason. In either case we have to prompt the user for a logon */ if (reauthenticateFromSSO(ssoId, request)) return; } Realm realm = context.getRealm(); Principal principal = realm.authenticate(username, password); if (principal != null) { register(request, request.getResponseFacade(), principal, Constants.LOGIN_METHOD, username, password); } }
if (reauthenticateFromSSO(ssoId, request)) { return true;
if (reauthenticateFromSSO(ssoId, request)) { return true;