SAML support for CCM
git-svn-id: https://svn.libreccm.org/ccm/trunk@6168 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
2156eae9f3
commit
07fae6edff
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue