Merge branch 'master' of git.libreccm.org:libreccm_legacy

master^2^2
Jens Pelzetter 2019-09-21 19:28:04 +02:00
commit 56aa434330
1 changed files with 5 additions and 6 deletions

View File

@ -55,15 +55,14 @@ public class SamlLoginModule implements LoginModule {
@Override @Override
public boolean login() throws LoginException { public boolean login() throws LoginException {
final HttpServletRequest httpRequest = getRequest(); final HttpServletRequest request = getRequest();
final HttpServletResponse httpResponse = getResponse(); final HttpServletResponse response = getResponse();
final Auth auth; final Auth auth;
try { try {
auth = new Auth(OneLoginUtil.buildSettings(httpRequest), auth = new Auth(request, response);
httpRequest, } catch (IOException | SettingsException | Error ex) {
httpResponse);
} catch (SettingsException 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?");
} }