cancel
Showing results for 
Search instead for 
Did you mean: 

redirect after successful authentication

former_member190996
Participant
0 Kudos

Hi Experts,

I am trying to redirect the users to a different portal component after they are successfully authenticated, as I need the details of the authenticated user, especially the R3Name that was mapped to. I have done the below modifications in umLogonPage.jsp of the logon application:

  1. Deleted the form action:

onaction="<%=inPortal?"":logonBean.getLogonURL(proxy, null)%>";

   2. Deleted the onSubmit of the form:


?"onSubmit=\"javascript:addTenantPrefix();\"":""

  3. Changed the type of logon button to button from submit.

  4. Then, I have added the below script in the umLogonPage.jsp which is being called onclick of the logon button:


function payrollPnumCheck()

{

  addTenantPrefix();

  var logonAction =  "<%=inPortal?"":logonBean.getLogonURL(proxy, null)%>";

  <%

  boolean locked = PayrollStatus.isPayrollProcessing();

  if((locked)){

  %>

  alert(location.pathname);

  window.location.assign("http://zabrysvsapzhd:50000/irj/servlet/prt/portal/prtroot/com.dd.payrollProcessing.systemLocked");

  <%

  }else{%>

  document.logonForm.action=logonAction;

    document.logonForm.submit();

  <%}%>

}

But, the portal is not being redirected after the authentication.

Please let me know what am I doing wrong here. I am quite new to js and jsp.

Thank you,

Sai

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member188073
Active Participant
0 Kudos

What kind of Portal Component are we talking about, we can have iViews assigned right? Or even URL iVIews point to the Application.

former_member190996
Participant
0 Kudos

I have the abstract portal component with some static content.

Can you explain more details on having iviews assigned? All I want to achieve is redirect the user to some page with static content after the successful authentication.

former_member188073
Active Participant
0 Kudos

How are these Portal components deployed in the portal, NWDI activites or EAR/SDAs?

IN either way you should be able to get a link to the landing page (might be index.html or jsp) e.g. http://<SAP>.<domain>:5xx000/<Application-Deployed-EAR>/root/landingIndex.html (in case of EAR SDA deployments) or http://<SAP>.<domain>:5xx000/<SID_TrackID_D><DC>/landingIndex.html

These URLs can be wrapped in a URL iVIew and then assigned to a Page with no padding and borders so as to appear as a like any other normal webpage.

If you don't change he page display settings you'll get the Framework headings, title and all SAP standard components and would look weird if the application is not a dynpro one.