Skip to Content

redirect after successful authentication

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 05, 2014 at 11:30 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.