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:
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

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.

Similar Messages

  • Redirect to custom url after successful authentication by OAM

    Hello,
    I need to redirect the user to some custom url instead of original requested url after successful authentication in OAM 11.1.2 (11g release2).
    The requirement in my case is depending upon the user type and the region(one of the user's ldap attributes) it belongs to, it should be redirected to one of the 2 available applications.
    I have tried implementing the same using custom authentication plugin in which I have used RedirectionActionContext class.
    I have also tried setting plugin response as REDIRECT and specifying the custom page url.
    I have also tried changing the "resource_url" parameter in authentication context.
    However, none of above approaches are working.
    Can anybody help me?
    Thanks,
    Purva

    Hello,
    I have exactly the same requirement. Have you solved the problem?
    Thanks,
    Purva

  • After successful authentication, Redirection is not working properly.

    I am protecting an application with OAM 11g say http://ohs-host:7777/test/. If I am accessing http://ohs-host:7777
    /test/, I am getting OAM login page. I have enabled SSL for OAM and the login page which I am getting is a https
    url (https://LB-IP/oam/server/obrareq.cgi?encquery....). After successfull authentication it is redirecting me to https://ohs-host/obrar.cgi?encreply.... and I will get a 404 error.
    Here after successfull authentication it is redirecting to https url and port number also removed from the url. If I change the url manually by changing https to http and add port number 7777, it will navigate me to the requested page.
    please help !
    regards
    Shantanu

    Hi,
    Sorry to hear your issue.
    Please remember always need to backup before updating.
    You can use Nokia ovi service for this.
    Can you give me so information to study this case:
    1. I need to know which countryyou live
    2. Which sw versions he has upgraded from and to
    3. The product code of the phone (7 digit under the battery)
    4. by which method has he upgraded the software? – FOTA, NSU, or at the Service Centre?
    Br
    Mahyav

  • CSS: "authentic​ation failed" after successful fingerprin​t authentica​tion - twice!

    T61p
    CSS: 8.10.0006.00
    Vista 32 Ult
    After successful fingerprint login, CSS states that the Windows password had been changed (it hasn't) and then asked me to verify that the CSS password matched my Windows password; this failes, even though the password entered is correct. This dialog pops up until it is cancelled.
    I've also lost the ability to use my fingerprint reader to login to websites, it says that
     - the print is okay, with that green checkmark, but then
     - proceeds to say "authentication failed"
    The password manager does not show up any more if started.
    @ lenovo: any ideas, this is a very annoying one! And it is old, I think. Any ideas, before I go and buy
        an  Apple?
    Moderator Note; please update your profile with your correct country location as per the forum rules. Products, options and services vary from market to market. Knowing your location helps us help you
    Message Edited by andyP on 06-21-2008 09:54 PM

    I have the same issue here.
    The fingerprint software is working perfectly and it is properly linked with the Windows password so I can logon with no problems. However, right after I get the message the password has been changed when it hasn't.
    The issues start when I need to use the Thinkvantage Password Manager or any other CCS applications. It does recognize my finger but it says "authentication failed".
    I have emailed Lenovo and they recommended me to removed the CCS and the fingerprint software. I did it and it didn't work. Then they said I should take my laptop to a service center because it is no longer in warantee period.
    In my case, all these issues began when I updated the CCS to the newer version (8.2)
    I have read in other forums that it has to do with TPM or security chip encryption. It seems the CCS has not taken control over it. They state all will be fixed once the chip is clear which is done thru the BIOS>Security Chip>Clear Encryption. The big problem is that all encrypted data is erased in the process!!!
    I have used the password manager for so long now with no problems that I have forgotten most of the keywords.
    T60
    Vista Ultimate 32 bits
    CCS 8.2

  • Policy Agent 2.0 redirect after auth

    Versions:
    Solaris 8
    Identity Server 6.0
    Policy Agent 2.0
    Web Server: iWS 6.0
    We are having a problem with redirecting users to a specific page after authentication.
    Here is our scenario:
    When a user tries to access a URL on our WS with the Policy Agent 2.0 installed, they get redirected to our login page on the Identity Server, which is fine.
    The problem is that the original URL is appended in a "goto," and after successfully logging in, the user is redirected to the page in the "goto," and not our default success URL.
    We are unable to force the user to a specific success URL after login.
    Is there a way to prevent the "goto" from being called, or to force a specific success URL regardless of what is being called in the "goto".
    We are unsure if this needs to occur in the setup of the organization in the IS, or if it needs to happen in the AMagent.properties file in the Policy Agent.
    Please help!

    Thanks for all replies.
    Apache: There is nothing special in access_log and error_log. However, there is no problem to use policy agent on Solaris 2.9 + Apache 1.3.26.
    IIS: The system path contains the right folder that holds the dll (i think that's done by the installation program), while the system was reboot several times but the situation didn't improve.
    Thanks again.
    Rgds.

  • How to: Redirect after document adding to a sharepoint document library

    i need to redirect the current user to a custom url after successfully uploading a document.
    the user clicks "+ new document" in the document library
    the user selects a local document
    the document gets uploaded and in that moment after it is successfully uploaded and the item is created in the list, i want to redirect the user to a custom url
    Normally after successfully uploading a document to a document library under SharePoint 2010, the user gets a modal dialog where he sees only the field "Name" with the filename.
    I want to prevent this. How could i achieve this?
    best regards
    Yavuz

    Thanks for the replies, but that is not i was searching for.
    For example:
    the user clicks "+ new document" in the document library
    the user selects a local document
    the document gets uploaded and in that moment after it is successfully uploaded and the item is created in the list, i want to redirect the user to a custom url. On my system i get the Edit.aspx form ->
    i don't want this!!
    Normally after successfully uploading a document to a document library under SharePoint 2010, the user gets a modal dialog where he sees only the field "Name" with the filename.
    I would like to do this inside an eventreceiver.
    After the document is successfully added to the library i would like to redirect the user directly to another page.
    I hope this clearifies my problem :)

  • Xs engine throws "No successful authentication possible"

    Hi,
    I'm a new to HANA & SAP platform, I've launched my HANA instance in AWS and i'm trying to create xsjs application, I've built the application and it's deployed in HANA box. i've followed the procedure specified in below URL.
    https://help.hana.ondemand.com/help/frameset.htm?3762b229a4074fc59ac6a9ee7404f8c9.html
    everything is fine till step 9, now i need to deploy the application and check the response. As stated in this step, i launched the URL(https://<database instance><account>.<host>/sap/hana/xs/admin/) and modified the configuration as specified below.
    9. Enable SAML
    Enable SAML if you are using a productive SAP HANA instance. Otherwise, you can omit this step.
    Procedure
    Start the SAP HANA XS Administration Tool: http://<database instance><account>.<host>/sap/hana/xs/admin/
    On the XS Applications page, select your application in the tree on the left.
    In the SECURITY panel, make sure that the Public (no authentication required) radio button is not selected. To make changes, choose Edit.
    In the AUTHENTICATION panel, choose Edit, then select SAML in the dropdown box and SAPID in the SAML Identity Provider field.
    Save your settings.
    For some reason, i couldn't add SAPID in SAML identify provider(which is step 4) and i saved the configuration; but now after doing the above changes till step 3 in XS admin console, i'm receving "No successful authentication possible" when the page is refreshed.
    i'm using http://<Elastic ip>:8000, when i run this page im getting "Xs engine running" default screen, but if i navigate to
    http://<Elastic ip>:8000/sap/hana/xs/admin/ i'm receiving "No successful authentication possible" error.
    Please guide me to get rid off this issue now.
    Thanks,
    Siva.

    Any help here will be much appreciated..

  • Redirect after CWA

    Does anyone know if there is a way to redirect a user to a specific page after a successful CWA without user interaction?
    I would like to have the user redirected to the corporate home page after they have entered their guest credentials rather than the generic successful login page.

    This can be done but you will need to build a custom HTML portal. In the success page the HTML code can be set to redirect the user to another page after successful login. 
    Thanks for rating! 

  • Restric Access to Captive Portal after successfull authentication

    I have setup a WAP321 with the captive portal activated.
    2 WLAN networks defined, one for the Normal-user and 1 Guest-user access (with captive portal).
    The WAP Management is on its own vlan (vlan 1 ) , network 10.0.0.0 /24
    The Normal network has a different vlan (vlan 14) , network 192.168.14.0/24
    Guest user(s) are on VLAN143 , 172.16.10.0 /24
    So when a guest connects to the wap, the management interface is openend (10.0.0.x), after successfull authentication the user is redirected to a predefined site.
    What i would like to establish is to make it impossible for the Guest-user(s) to access the management portal.
    Defining an acl on the management portal is not possible as i would like to use any ip adres on the Normal Network (192.168.14.0/24).
    unfortunally you can only define 5 Fixed ipaddresses and not a (sub)-network.
    regards
    eddy

    Good morning  Mr. Mulder,
    It it possible to set and access-list on your WAP321 that restrict access from users on the complete network 172.16.10.0/24.
    Let me share with you the information found on guide me section on this forum about this topic.
    I encourage you to make use of this useful tool if you have any other question about configuration on the future.
    http://sbkb.cisco.com/CiscoSB/ukp.aspx?vw=1&docid=c1a32843a14846af8c20a91532c39d16_acl.xml&pid=4&fcid=&fpid=&slnid=6
    Check the section 6, where you could set the configuration using the network 172.16.10.0/24 as source address and 10.0.0.0 /24 as destination.
    hope you find this answer useful, if it was satisfactory for you, please mark the question as Answered.
    Thank you
    Diego Rodriguez.
    Cisco network engineer

  • NEW FEATURE: Redirect after Submit

    We just released the Redirect after Submit feature on Friday (6/24/11). This has been a very commonly asked for feature. The problem is this - how do I get the respondent back to my website once they successfully filled out the form. Currently the respondent ends on the confirmation page and has to manually navigate back to your website - which is far from optimal.
    This feature is part of the Basic and Plus plans; and it can be found on the "Options" tab under the "Redirect URL" section. This option will work on previously created forms as well as new forms.
    Here is what the UI looks like:
    You have two redirect options:
    Redirect back to the first page of the form - Why would you ever want to do that?? If respondents are filling the form out in person (like an event registration) at a kiosk-like computer or tablet then this feature allows you to automatically redirect back to the beginning of the form (and it will be empty) so the next person in line can fill it out.
    Redirect to a specific URL - Type in the URL to the website you want to redirect and set the amount of time the user sees the confirmation page (the minimum time is 5 seconds).
    Now when the user Submits the data the confirmation page will look something like this:
    After 5 seconds it will automatically redirect back to your website or to the beginning of the form depending on the option you chose.
    Enjoy!
    Randy Swineford
    FormsCentral product manager
    (Randy Swineford, 12/20/2011) Updated description to include new option

    The difference is web forms are used in browsers and PDF forms are often not. Web servers have always been able to return a redirect response that causes the browser to load the specified URL. Most PDF viewers don't know what to do with such a response, but Adobe Reader/Acrobat do know what to do with an FDF response, which is what FormsCentral returns and results in the popup message that you see. PDF forms can be loaded in a browser or directly in Reader/Acrobat or non-Adobe PDF viewer, but in both cases the viewer doesn't know what to do with an HTML redirect response from a web server. This is outside of the control of FormsCentral so it would require a change in the way Reader/Acrobat behaves.
    There is a technique that can be used in PDF viewers that support the app.launchURL JavaScript method (http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/JS_API_AcroJS.89.155.html) and loading form data or triggering JavaScript returned in an FDF, but this method isn't currently supported in the mobile versions of Adobe Reader, so it would only be a partial solution even if FormsCentral were to return the appropriate FDF response.

  • JSF + Acegi + Spring error after sucessful authentication

    I use JSF like presentation layer in my Spring application, and acegi to manage the security.
    When the aplication try to authenticate a user and it sucess, the AbstractProcessingFilter do a response.sendRedirect(response.encodeRedirectURL(t argetUrl)); i've verified that the target url is the rigth one, it's supposed that after sucessfuly authenticated the user be redirected to the targetUrl specificated to the AuthenticationFilter, but instead it trows an Exception:
    javax.servlet.ServletException: Cannot find FacesContext
    at org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:848)
    This is my faces navigation rules:
    <navigation-rule>
    <from-view-id>/welcome.jsp</from-view-id>
    <navigation-case>
    <from-outcome>otra</from-outcome>
    <to-view-id>/secured.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    and this is the targetUrl that the AuthenticationFilter redirect to:
    http://localhost:8080/MyApplication/secured.jsp
    The user try to navigate from wellcome.jsp to secured.jsp, and then the acegi filters engine intercept the recuest, redirect to the authentication page, the user authenticate sucessfuly and the acegi filters send back the user to the original url, the targetUrl, and then the exception...
    I think this is caused by the fact that there is not a faces context created when the AuthenticationFilter finish its work and return to the filter chain, and the filter chain finish too and try to return to the original thread of execution; like the filter is the first that manage the request, there is no faces context created and then the exception come in.
    Is this correct? how can i aboid this difficulty?
    Why this is happening? There is some kind of incompatibility between acegi and jsf?
    I'll appreciate very much your answer.
    Message was edited by:
    maykell

    ideas yeah, solution, ... maybe
    Do you run the stuff as the local administrator, not a domain administrator.
    Use runas administrator
    Any option to take machine temporary out of the domain?
    What does CSCOpx\bin\resolver.pl think of your hostname?
    If you try this URL  https://server_IP_obfuscated/cwportal/group/lms/lms-monitoring rather then relying on the redirect after the login.
    Does that make any difference?
    Tried firefox and IE? supported old version?
    Cheers,
    Michel

  • Why CreateNewFrame() returns as NULL after successful created 136 child frame window and trying to create 137th child frame window in MDI application

    I am working on MDI application which was developed in VC++ in VS 2012. When my application is launched, it will display a Tree. Under a tree there are 254 nodes. Basically
    these nodes data are read from Configuration xml file and loaded into the Tree. By double clicking on each node, first it will create object for document class ( By calling CreateNewDocument() method) after that member variables for that
    document class will be initialized and then it will create the new frame window (by calling
    CreateNewFrame(pDoc,NULL). New child frame window will show under Main window to the user.
    User able to see the data from child frame window.
    Similarly by double clicking on each node it will create another object for the same document class and new child frame window will be opened for that node. Each child frame window runs
    in different data and showed under the Main window.
    Existing requirement by double clicking on each node, node data shall show in separate child window and there is no requirement for all 254 child windows opened simultaneously.
    But current requirement is , all 254 child windows shall open simultaneously by double clicking on each node one by one.
    In debug mode I have tried double clicking on each node. I able to open up to 50 nodes. After 50th child windows are opened, I unable to access to the application
    (Unable to open further node data window since application is getting hanged).
    Each child window is having tree, multiple splitter window and some additional controls (static text, ...).
    Same I have tried in release mode, I able to open up to 136 child windows. After that the application fail to create the new frame window in VS 2012. i.e CreateNewFrame() return
    NULL after successful created 136 child frame window. Debug purpose I have added the code to retrieve last error code by calling GetLastError() method. I got the value as "0". By closing any existing child window then I able to open remaining nodes.
    At any point of time I can reach maximum of 136 child frame window that can be opened under Main window. Failing to open all 254 child frame window
    simultaneously,  currently I fail to meet the current requirement.
    current Requirement is all 254 child frame window are opened simultaneously. Please let me know what may be the reason fail to create new frame window after 136 frame window that are
    opened already. In Microsoft site, mentioned that there is no limitation for creating frame  window in MDI application. I have tried another sample MDI application having limited number of controls, in which I able to create "n"
    number of child frame windows. why not able to create more than 136 child frame window in my actual application?
    Is there any possibility by changing project settings allow me to create 254 child frame window??
    Code Snippet as below:
    CDiagBaseDoc * CDiagBaseMDocTemplate::OpenDiagView( ...)
         CDiagBaseDoc* pDoc = NULL;
        if (pDoc == NULL)
            pDoc = (CDiagBaseDoc*)CreateNewDocument();
        if ( pDoc )
           CFrameWnd* pFrame = NULL;
           if (bAlreadyOpen)
                  // If Child frame window already opened, then handling the code here.
         else
               pFrame = CreateNewFrame(pDoc, NULL);
               if (pFrame == NULL)
                  ASSERT(FALSE);
                  delete pDoc;       // explicit delete on error
                 pDoc = NULL;
              ASSERT_VALID(pFrame);
              if( pDoc != NULL ) //VS2012
                 if ( !pDoc->OnNewDocument() )
                    TRACE0("CDocument::OnNewDocument returned FALSE\n");
                    delete pDoc;       // explicit delete on error
                    pDoc = NULL;
                    pFrame->DestroyWindow();
                     pFrame = NULL;
           if (pFrame)
               InitialUpdateFrame(pFrame, pDoc);
               ShowWindow( pFrame->GetSafeHwnd(), SW_MAXIMIZE ); //when opening node for the 1st time, maximize it
    }<o:p></o:p>

    Hi MuruganK,
    Have you checked how much memory your application used? You could check it by Task Manager. Maybe your application reach Memory Limits for Windows.
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    Is it possible that there are some memory leaks in your application? It would better if you have made a simple sample to reproduce and narrow down this issue.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • After successful installation of iTunes 10.6.1, iTunes will not open.  Tried complete uninstall and reinstall, still not working.  Cannot sync iPad or access iTunes at all.  Any suggestions?

    After successfully installing the iTunes upgrade to 10.6.1, Now I cannot open and access itunes.  I have tried a complete uninstall and reinstall and it is still not working. I have looked through many support communities for answers.  I added an iPad 2 almost a year ago and all was fine until my upgrade to the "cloud services" and upgrade to new version.  I have been without iTunes on my PC for a month.  Any suggestions on how to resolve this issue?

    I too have only recently encountered this problem. I have been able to burn disks before but it keeps making all these weird sounds. It might be a hardware problem but the fact that everything else that uses a disk works I doubt it.

  • After successful install, all my adobe cc docs, when open, change pointer arrow, i-beam and window to oversize. When doc closes all return to normal size. I'm on a PC. Screen res set to medium 1920x1200. Any ideas how to fix?

    After successful install, all my adobe cc docs, when open, change pointer arrow, i-beam and window elements to oversize. When doc closes all return to normal size. I'm on a PC. Screen res set to medium 1920x1200. Any ideas how to fix?

    Ok thanks Linxup I would recommend posting in the respective forums for each of those software titles as opposed to the Creative Cloud Download & Install forum.  The relevant forums are as follows:
    InDesign - InDesign
    Illustrator - Illustrator

  • Hi, download of the trial product (photoshop ele 13) does nt start even after successfully installing the Adobe download assistant successfully. Only .7z file is shown, .exe is nt available. Whn i try to extract .7z file wd 7-Zip error pops up " cannot ex

    Hi, download of the trial product (photoshop ele 13) does nt start even after successfully installing the Adobe download assistant successfully. Only .7z file is shown, .exe file is nt visible. Whn i try to extract .7z file wd 7-Zip error pops up " cannot extract **.7z as archive" .I've tried fresh download of adobe photoshop ele 13 but same error occurs. 
    OS:Windows 8.1
    Storage loc for adobe down assistant  : C-Program file(x86)-Adobe download assistant-adobe
    Storage loc for adobe down assistant:    C- Adobe photoshop assistant 13-  PhotoshopElements_13_LS25_win64_1. 7z
    After this I try to extract ** .7z file but following error occurs :
        After this I try to extract ** .7z file but following error occurs
    Kindly Help.

    Thanks fr revert !
    After clicking on the provided link , Above error pops up. I clicked "ok" n allowed download to complete after which same previous error shows up!

Maybe you are looking for

  • Payment advice problem in F-30. Awaiting for your great reply....

    Hi, Can anyone let me know how should i make payment advice in F-30. I have a problem while making payment advice in TC: FBE1. in FBE1, if i can fill document no. field as invoice no. then while doing F-30 system will clear respective invoice automat

  • Help!  My G5 has crashed & now it won't start up!

    Hi, I was wondering if anyone could give me any tips as I'm at a complete loss! My G5 has been crashing regularly for the last couple of months. I can use it for hours and it's ok and then it'll crash suddenly and will continue to do so several times

  • ABAP and JAVA sync issue

    Hello, We are having MI 7.0 at SPS15.Am trying to apply add to our system(we created SDA file from NWA as an addon).SDA addon getting deployed but its not getting sync between ABAP and Java stack even if is run reload sever time from NWA->Administrat

  • How to get the business tax receipt?

    I've got my smart cover. I would like to business tax receipt.

  • Gettin ORA-01461 error in informatica level

    Hi All Iam getting following error at informatica level. WRT_8229 : Database errors occurred: ORA-01461: can bind a LONG value only for insert into a LONG column But we dont have any column with LONG datatype. only we have varchar2 datatype and date.