SAML support for CCM

git-svn-id: https://svn.libreccm.org/ccm/trunk@6168 8810af33-2d31-482b-a856-94f89814c4df
master^2
jensp 2019-08-29 08:52:02 +00:00 committed by Jens Pelzetter
parent c9b935d4ae
commit 7c5592f047
1 changed files with 5 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public class SamlLoginModule implements LoginModule {
auth = new Auth(OneLoginUtil.buildSettings(httpRequest), auth = new Auth(OneLoginUtil.buildSettings(httpRequest),
httpRequest, httpRequest,
httpResponse); httpResponse);
} catch (SettingsException ex) { } catch (IOException | SettingsException | Error ex) {
LOGGER.error("SAML Login failed.", ex); LOGGER.error("SAML Login failed.", ex);
throw new LoginException("SAML Login failed. Configuration error?"); throw new LoginException("SAML Login failed. Configuration error?");
} }
@ -100,6 +100,10 @@ public class SamlLoginModule implements LoginModule {
@Override @Override
public boolean logout() throws LoginException { public boolean logout() throws LoginException {
getRequest().getSession().invalidate();
return true;
}
protected HttpServletRequest getRequest() throws LoginException { protected HttpServletRequest getRequest() throws LoginException {
try { try {
@ -142,5 +146,4 @@ public class SamlLoginModule implements LoginModule {
); );
} }
} }
} }