|
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.jasig.cas.client.validation.Assertion;
|
|
|
import org.jasig.cas.client.validation.Cas20ServiceTicketValidator;
|
|
|
+import org.jasig.cas.client.validation.TicketValidationException;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.core.env.Environment;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -137,9 +138,11 @@ public class CommonServiceImpl implements CommonService {
|
|
|
rp.setLoginName(username);
|
|
|
rp.setReturnUrl(ecLogin);
|
|
|
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (TicketValidationException e) {
|
|
|
rp.setTicketValid(false);
|
|
|
rp.setReturnUrl(loginUrl);
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
}
|
|
|
|
|
|
}
|