SSO 로그오프 방법 제공하기
// 인증 객체 선언(Request와 Response 인계)
AuthCheck auth = new AuthCheck(request, response);
// 로그오프 URL 설정
logoffUrl = auth.getSsoSite().getLogoffUrl(request) + "?" +
AuthUtil.ParamInfo.SITE_ID + "=" +
auth.getSsoSite().getId() + "&" +
auth.getSsoProvider().getParamName(AuthUtil.ParamInfo.RETURN_URL) + "=" +
Utility.encodeUrl(auth.getThisUrl(), LiteralConst.UTF_8); // ThisURL은 사용자가 현재 호출한 페이지의 URL<a href="<%=logoffUrl%>">Logoff</a>Last updated
Was this helpful?