SAML support for CCM

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

View File

@ -87,6 +87,10 @@ public class SamlLoginModule implements LoginModule {
@Override @Override
public boolean commit() throws LoginException { public boolean commit() throws LoginException {
if (userId != null) {
subject.getPrincipals().add(new PartyPrincipal(userId));
}
return true; return true;
} }
@ -97,6 +101,11 @@ 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 {