SAML support for CCM
git-svn-id: https://svn.libreccm.org/ccm/trunk@6168 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
39f5f03a8d
commit
f59df3901d
|
|
@ -55,6 +55,7 @@ public class SamlLoginModule implements LoginModule {
|
|||
@Override
|
||||
public boolean login() throws LoginException {
|
||||
|
||||
<<<<<<< HEAD
|
||||
final HttpServletRequest httpRequest = getRequest();
|
||||
final HttpServletResponse httpResponse = getResponse();
|
||||
|
||||
|
|
@ -64,6 +65,15 @@ public class SamlLoginModule implements LoginModule {
|
|||
httpRequest,
|
||||
httpResponse);
|
||||
} catch (SettingsException ex) {
|
||||
=======
|
||||
final HttpServletRequest request = getRequest();
|
||||
final HttpServletResponse response = getResponse();
|
||||
|
||||
final Auth auth;
|
||||
try {
|
||||
auth = new Auth(request, response);
|
||||
} catch (IOException | SettingsException | Error ex) {
|
||||
>>>>>>> SAML support for CCM
|
||||
LOGGER.error("SAML Login failed.", ex);
|
||||
throw new LoginException("SAML Login failed. Configuration error?");
|
||||
}
|
||||
|
|
@ -87,7 +97,11 @@ public class SamlLoginModule implements LoginModule {
|
|||
|
||||
@Override
|
||||
public boolean commit() throws LoginException {
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
|
||||
>>>>>>> SAML support for CCM
|
||||
if (userId != null) {
|
||||
subject.getPrincipals().add(new PartyPrincipal(userId));
|
||||
}
|
||||
|
|
@ -101,7 +115,6 @@ public class SamlLoginModule implements LoginModule {
|
|||
|
||||
@Override
|
||||
public boolean logout() throws LoginException {
|
||||
|
||||
getRequest().getSession().invalidate();
|
||||
return true;
|
||||
}
|
||||
|
|
@ -148,5 +161,4 @@ public class SamlLoginModule implements LoginModule {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue