Question
JSSP site with Access control restriction
I have created a JSSP in adobe campaign classic v7. And I would like to restrict the access only to Adobe Campaign users (of the instance).
It should be a similar behavior as the option in webapp -> Properties -> Access Control -> Enable access Control.
I am sure that there has to be a code, similar to:
<%@ page import="xtk:server/jsspcontext.js" %>
<%@ page import="/nl/core/shared/nl.js" %>
<%
logonEscalation("webapp");
try {
var userInfo=xtk.session.getUserInfo();
} catch (e) {
var returnURL="/<namespace>/<label>.jssp" ;
response.sendRedirect("/nl/jsp/logon.jsp?target=" + encodeURIComponent(returnURL))
return;
}
But is not workfing for me, as after request for the login, it redirect me to the same login, instead of the jssp.
Can someone please guide me? 🙂