Merge branch 'master' of git.libreccm.org:libreccm_legacy
commit
6724e9b93e
|
|
@ -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?");
|
||||||
}
|
}
|
||||||
|
|
@ -100,6 +99,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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue