JSD-7610 SAML单点
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
766 B

package com.fr.plugin.xxxx.saml;
import com.fr.decision.fun.impl.AbstractLogInOutEventProvider;
import com.fr.decision.webservice.login.LogInOutResultInfo;
import com.fr.general.PropertiesUtils;
import com.fr.plugin.xxxx.saml.xxxx.saml.constant.SsoConstants;
import javax.servlet.http.HttpSession;
/**
* @Author fr.open
* @Date 2020/9/18
* @Description
**/
public class CustomLogInOutEventProvider extends AbstractLogInOutEventProvider {
@Override
public String logoutAction(LogInOutResultInfo result) {
HttpSession session = result.getRequest().getSession();
session.removeAttribute(SsoConstants.SESSION_USER_INFO_KEY);
session.invalidate();
return PropertiesUtils.getProperties("conf").getProperty("logout");
}
}