External URL link to open a work object with SSO
Hi,
We are using shareable (or simple) links to open a case id from an email but we got the requirement to go to SSO login screen. We tried with below javascript code on "WorkLink Email" correspondence fragment, but usePublicLink uses the normal prweb access instead prweb/PRAuth:
com.pega.pegarules.pub.session.url.PegaURLBuilder pegaURLBuilder = pega.getExternalURLBuilder();
currentApplication = pegaURLBuilder.usePublicLink().currentApplication().build();
url = currentApplication +"Case/"+ insHandle;
tools.putSaveValue("SimpleLinkURL",url);
Attempts done: 1. We updated the Dynamic System Setting "Pega-ProCom • PublicLinkURL" by adding /PRAuth, but it still gets prweb after restarting our environment.
2. As suggested on the Help of Engine API for PegaURLBuilder, we changed the javascript code line for currentApplication parameter by the following one:
currentApplication = PegaURLBuilder.useCurrentContext().currentServlet().currentApplication().build();
But we only get the part of currentApplication() (app/[ApplicationAlias]) on links in emails.
3. As suggested on the Help of Engine API for PegaURLBuilder too, we changed the javascript code line for currentApplication parameter by the following one:
Hi,
We are using shareable (or simple) links to open a case id from an email but we got the requirement to go to SSO login screen. We tried with below javascript code on "WorkLink Email" correspondence fragment, but usePublicLink uses the normal prweb access instead prweb/PRAuth:
com.pega.pegarules.pub.session.url.PegaURLBuilder pegaURLBuilder = pega.getExternalURLBuilder();
currentApplication = pegaURLBuilder.usePublicLink().currentApplication().build();
url = currentApplication +"Case/"+ insHandle;
tools.putSaveValue("SimpleLinkURL",url);
Attempts done: 1. We updated the Dynamic System Setting "Pega-ProCom • PublicLinkURL" by adding /PRAuth, but it still gets prweb after restarting our environment.
2. As suggested on the Help of Engine API for PegaURLBuilder, we changed the javascript code line for currentApplication parameter by the following one:
currentApplication = PegaURLBuilder.useCurrentContext().currentServlet().currentApplication().build();
But we only get the part of currentApplication() (app/[ApplicationAlias]) on links in emails.
3. As suggested on the Help of Engine API for PegaURLBuilder too, we changed the javascript code line for currentApplication parameter by the following one:
currentApplication = pegaURLBuilder.useCurrentContext().withAuthenticationAlias("jdbrsso/").currentApplication().build();
But useCurrentContext does not give us anything and we get only /prauth/app/[ApplicationAlias]/jdbrsso/ on links in emails. Do we need to update the property pxRequestor.pxReqContextURI? If so, how can we do it? Will it impact on the way we have to login without SSO? We read that web.xml file should be updated but since it is a Cloud instance, might we need PEGA support to do it?
Thanks&Regards,
Sergio