X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=security%2Fplugins%2Forg.argeo.security.ui.rap%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2Fui%2Frap%2FSecureEntryPoint.java;h=9f54e4c752c3918c536a2f6df92923c045344c60;hb=21a7775f246e442c5fa73f16c8e108d81aa0ffd8;hp=2ddfe07057f63a166ff7e1b89be2641bc237561b;hpb=a4adca31cb63a2900cbb0b0341e0d35643fcbc9e;p=lgpl%2Fargeo-commons.git diff --git a/security/plugins/org.argeo.security.ui.rap/src/main/java/org/argeo/security/ui/rap/SecureEntryPoint.java b/security/plugins/org.argeo.security.ui.rap/src/main/java/org/argeo/security/ui/rap/SecureEntryPoint.java index 2ddfe0705..9f54e4c75 100644 --- a/security/plugins/org.argeo.security.ui.rap/src/main/java/org/argeo/security/ui/rap/SecureEntryPoint.java +++ b/security/plugins/org.argeo.security.ui.rap/src/main/java/org/argeo/security/ui/rap/SecureEntryPoint.java @@ -33,7 +33,6 @@ public class SecureEntryPoint implements IEntryPoint { private Integer loginTimeout = 1 * 60; private Integer sessionTimeout = 15 * 60; - @SuppressWarnings("unchecked") @Override public int createUI() { // Short login timeout so that the modal dialog login doesn't hang @@ -73,29 +72,6 @@ public class SecureEntryPoint implements IEntryPoint { throw td; } - // if (e.getCause() != null) { - // Throwable firstCause = e.getCause(); - // // log.error("Cause", firstCause); - // if (firstCause instanceof LoginException - // && firstCause.getCause() != null) { - // Throwable secondCause = firstCause.getCause(); - // if (secondCause instanceof BadCredentialsException) { - // MessageDialog.openInformation( - // display.getActiveShell(), - // "Bad Credentials", - // "Your credentials are incorrect"); - // // retry login - // continue tryLogin; - // } else if (secondCause instanceof ThreadDeath) { - // // rethrow thread death caused by dialog UI timeout - // throw (ThreadDeath) secondCause; - // } - // - // } else if (firstCause instanceof ThreadDeath) { - // throw (ThreadDeath) firstCause; - // } - // } - if (!display.isDisposed()) { org.argeo.eclipse.ui.Error.show( "Unexpected exception during authentication", e);