SAML Login Form
git-svn-id: https://svn.libreccm.org/ccm/trunk@6169 8810af33-2d31-482b-a856-94f89814c4dfmaster^2
parent
a9fb977b49
commit
c9b935d4ae
|
|
@ -55,13 +55,15 @@ public class SamlLoginModule implements LoginModule {
|
|||
@Override
|
||||
public boolean login() throws LoginException {
|
||||
|
||||
final HttpServletRequest request = getRequest();
|
||||
final HttpServletResponse response = getResponse();
|
||||
final HttpServletRequest httpRequest = getRequest();
|
||||
final HttpServletResponse httpResponse = getResponse();
|
||||
|
||||
final Auth auth;
|
||||
try {
|
||||
auth = new Auth(request, response);
|
||||
} catch (IOException | SettingsException | Error ex) {
|
||||
auth = new Auth(OneLoginUtil.buildSettings(httpRequest),
|
||||
httpRequest,
|
||||
httpResponse);
|
||||
} catch (SettingsException ex) {
|
||||
LOGGER.error("SAML Login failed.", ex);
|
||||
throw new LoginException("SAML Login failed. Configuration error?");
|
||||
}
|
||||
|
|
@ -98,10 +100,6 @@ public class SamlLoginModule implements LoginModule {
|
|||
|
||||
@Override
|
||||
public boolean logout() throws LoginException {
|
||||
getRequest().getSession().invalidate();
|
||||
return true;
|
||||
}
|
||||
|
||||
protected HttpServletRequest getRequest() throws LoginException {
|
||||
|
||||
try {
|
||||
|
|
@ -144,4 +142,5 @@ public class SamlLoginModule implements LoginModule {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue