@Override public void singleSignOnFailed(@NotNull ServerErrorEvent.ServerConfigErrorEvent<AuthenticationFailedException> e) { // Login Errors are handled by the InvalidPasswordMonitorComponent // simpleError("Single sign on failed for " + e.getName(), "Login Failure"); LOG.warn(e.getError()); }
@Override public void passwordUnnecessary(@NotNull ServerErrorEvent.ServerConfigErrorEvent<AuthenticationFailedException> e) { // Login Errors are handled by the InvalidPasswordMonitorComponent //simpleError("Password unnecessary for " + e.getName(), "Login Failure"); LOG.warn(e.getError()); } });
@Override public void sessionExpired(@NotNull ServerErrorEvent.ServerConfigErrorEvent<AuthenticationFailedException> e) { // Login Errors are handled by the InvalidPasswordMonitorComponent //simpleError("Session expired for " + e.getName(), "Login Failure"); LOG.warn(e.getError()); }
@Override public void singleSignOnFailed(@NotNull ServerErrorEvent.ServerConfigErrorEvent<AuthenticationFailedException> e) { LOG.info("Processing single sign on failure: " + e.getError().getMessage()); if (shouldHandleProblem(e.getConfig(), FailureType.SSO)) { // No explicit action to take UserMessage.showNotification(null, UserMessage.ERROR, P4Bundle.message("error.loginsso.exec-failed", e.getConfig().getLoginSso(), e.getError().getLocalizedMessage()), P4Bundle.message("error.loginsso.exec-failed.title"), NotificationType.ERROR); // TODO once the Single Sign On can take an argument, let this prompt for the argument. } else { LOG.info("Not handling SSO problem for " + e.getConfig()); } }
@Override public void passwordInvalid(@NotNull ServerErrorEvent.ServerConfigErrorEvent<AuthenticationFailedException> e) { // Login Errors are handled by the InvalidPasswordMonitorComponent //simpleError("Password invalid for " + e.getName(), "Login Failure"); LOG.warn(e.getError()); }
@Override public void sslHostFingerprintMismatch(@NotNull ServerErrorEvent.ServerConfigErrorEvent<TrustException> event) { simpleError( P4Bundle.message("user-error.ssl-host-fingerprint.message", event.getName()), P4Bundle.message("user-error.ssl-host-fingerprint.title") ); LOG.warn(event.getError()); }
@Override public void couldNotWrite(@NotNull ServerErrorEvent.ServerConfigErrorEvent<FileSaveException> event) { simpleError( P4Bundle.message("user-error.could-not-write.message", event.getConfig().getServerName(), event.getError().getLocalizedMessage()), P4Bundle.message("user-error.could-not-write.title")); LOG.warn(event.getError()); }