OnBeforeLogin: how to fail a portal login in an SSO env ???

Am researching a question for a customer to whose site I don't have access, so I can't test this and look at the PTSpy output. In this case, the customer wish to display a portal usage agreement on login, and terminate the portal session if the user does not click accept. That's fine, in a non-SSO environmet I'd just tell them to redirect to the error space if the user doesn't accept, and they're done.But what the specific SSO issues are in doing this? The customer have deployed Netegrity. What are the SSO-related issues in using OnBeforeLogin and then directing the user to the error space, if the user has not accepted an agreement?
Once the person is logged in to the customer's intranet via Netegrity, can't they click a random portal link somewhere else and the window will just take them inside the portal?
I understand the process flow of SSO redirection, but I don't know if OnBeforeLogin is as foolproof and simple as it is in a non-SSO environment.
Thanks in advance!
Cheers
Rob

Hi Ankur,
Someone will somewhere call the EJB (not: "Java Bean"!). As an EJB isn't part of a request/response cycle but mainly thought for business logic, it is of course the task of the calling component to deliver the user (his logonID for example) to the EJB.  There is not other way!
Hope it helps
Detlev

Similar Messages

  • How to access Sap portal login user in ejb web service

    Hi,
    I wnt to access SAP Portal login user in my ejb application which resides on the same server.
    I am using following code
    try {
         IUser user =null;                         IWDClientUser wdUser = WDClientUser.getCurrentUser();
                                  user = wdUser.getSAPUser();
                             } catch (WDUMException e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
    Some additional jar files are required for this?
    The same code works fine with webDynpro but not with ejb.
    Thanks in advance     
    Best regards,
    Nilesh

    Thanks for reply.
    I have already added com.sap.security.api in my EJB module project classpath. How to add the same in EJB application Project (application-j2ee-engine.xml)?
    Best regards,
    Nilesh

  • How do I get Portal Login User Details in WD Application

    Hi,
    Could you please help me out as how to get the user who has logged into the portal.
    Regards,
    Abilash.

    Hi,
    In you webdynpro location you can use the following code to get the logged in user details.
    String strUserName = null;
    try {
    IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
    IUser sapUser = wdClientUser.getSAPUser();
    if (sapUser != null) {
    IUserAccount[] acct = sapUser.getUserAccounts();
    if (acct[0] != null) {
    strUserName = acct[0].getDisplayName();
    } catch (WDUMException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (UMException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    The following import statements have to be used
    import com.sap.security.api.IUser;
    import com.sap.security.api.IUserAccount;
    import com.sap.security.api.UMException;
    import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDUMException;
    Award points if helpful.
    Regards,
    Sujana

  • Popup Portal Login / Authentication

    I am having problems finding good examples of how to enable a portal login authentication portlet in a popup window. The scenario, is that I will programatically change a web service to require portal role base security. When this occurs the next time this web service is accessed, it should reject that access or block and pop up the portal login window. When I sucessfully log on, then it should return the results and I can close that login window at my leisure. I do not want to keep the login portlet displayed in the main page of the portlet, it should not appear until it is needed. This is a really urgent request if anyone can help me with this. I really appreciate the help!

    Anyone that is still looking at this, I have figured out how to do the popup in the pageflow. I have collected a username and password and placed it in my formbean. Now I need to get that username and password into the header of a web service using the OASIS ws-security standard spec. There is an example of placing the username and password token into the SOAP header in the weblogic examples, but it uses a java proxy class to call the web service itself. I am currently using a java control to call the web service. I would like to adapt the code in the example called WebServiceBClient.java under the /workshop/samplesApp/proxyClient/WSSE/token directory to be able to perform this action but call the web service from a control.

  • How to change route url login home sap at .../irj/portal

    dear all,
    is possible to change login home page url sap portal with another file except loginPage.jsp
    how to route index page to another file jsp custom?
    and can you describe to me how route structure /irj/portal file because i will custom another file
    thank you

    Hi
    If you are trying to redirect the /irj/portal to a custom path then you can use the ICM parameter
    icm/HTTP/redirect_0 = PREFIX=/irj/portal, TO=/<yourcustompath>
    Either in your Portal app server or in your Web Dispatcher if you have a web dispatcher fronting your Portal.
    Cheers
    Donald

  • How to disable right click on SAP portal login page

    Hi,
    How to disable right click on SAP portal login page. Our requirement is one should not be able to right click -
    >view source. on the portal login page.
    Best Regars,
    Tushar

    Hi Tchanvan,
    If you search google with "javascript disable right click" you will get loads of javascript code. This will also help you to gain knowledge.
    @Explanation to last post : You need to import standard logon par file in NWDS. Create javascript file to disable right click and then include this file in your logon page. i think login page name is portalLogin.jsp and then deploy this new PAR file.
    regards,
    Jigar Oza

  • Portal Login id and Credatinal pass to dot net application

    Hi Experts,
    I want to know is it possible to pass the portal login id and other details like Name and organization to an dotnet application.
    If it is then how can we do it.
    Please do the needfull. Important
    Regards,
    Swapnil

    Hi Sarbjeet,
    I first thought of creating URL Iview and passing the user id and other required details as parameter to that URL Iview.
    Then reading your mail i thought of creating a web dynpro java application and then pass all the required values to the url in the application only but i am confussed how i will call the dot net application.
    If you have a better suggestion please let me know how to do it.
    Regards
    Swapnil

  • ADF Application and Oracle Portal Login Page

    We have developed ADF application and deployed it in Oracle AS 10.1.2 along with the custom JAAS module, which is working fine with the application custom login page. As a next page, I want to use Oracle Portal login page for the authentication and authorization.
    How can I accomplished it? Any idea?
    Thanks,
    AP

    Shay,
    1. I created blank ADF project
    2. I copied myreport.jsp file (this one was generated by Oracle Report Builder) under ..ViewController/public_html directory
    3. Created directory 'lib' under ViewController/public_html/WEB-INF/lib
    4. Copied reports_tld.jar file under the directory created in 3.
    5. Created simple jspx page with the af:link (btw af:goLink does not exists in JDev 12c), set 'destination' to myreport.jsp
    After the steps above I could not even compile the application, many problems too many to list here, Basically JDev is trying to build the project with .jsp file generated in Report Builder and is unable to.
    So to be sure we are on the same page: I am trying to embed JSP report files generated by Report Builder into ADF project, then create EAR file and deploy on standalone WLS. Finally execute JSP web only report.

  • Redirect to Portal Login page from portlet

    We have lots of applications on the portal and many of them need the logged in user information to provide the right display context. For example, "My Notes" where notes are stamped with the user's login id. Our portlet applications show exception messages when the user id is unavailable. Pressing a refresh button takes them to the portal login page.
    Does anyone know how to redirect to the portal login page? Here is how I would like it to work: A user has the application up beyond the session timeout period and does something that causes the page to submit. At the application server we look for the logged in user ID which is missing due to session timeout and we send them to the portal login page.
    Thanks! Mike

    Hi James,
    <br />
    <br />I fear this isn´t possible to do with ADDT, as it will - when using its Restrict Access To Page behaviour - always redirect to the page you specified in the Control Panel.
    <br />
    <br />However you can help yourself with a simple custom PHP redirect script
    <i>(place it @ @ line 1 of your document)</i> which checks whether the "kt_login_id" Session Variable is set, and if it´s not set, redirect to a different login page:
    <br />
    <br /><?php<br />if (!isset($_SESSION['kt_login_id'])) {<br />header('Location: http://www.example.com/directory/login.php') ;<br />}<br />?>
    <br />
    <br />Hint: users who login via a different login page will still be redirected to ADDT´s default login page when logging out
    <br />
    <br />Cheers,
    <br />Günter Schenk
    <br />Adobe Community Expert, Dreamweaver

  • How to execute the Portal Activity Report

    Hello,
    In the System Administration -> System Configuration-> Service Configuration Editor
    Under Applications->com.sap.portal.activityreport.core-> Services->ActivityReport and I have configured the report.
    I saved I have restarted the service to effect the changes and in Portal Catalog
    Application->com.sap.portal.activityreport.core and I have administrated the changes. The Application Details Editor is displayed.
    I have clicked the Restart the portal also.
    I would like to know how to execute this Portal Activity Report after making this configuration.
    Can anyone help me.
    Thnx in advance
    cheers
    Kris

    Hi Kris,
    here an example with steps:
    1. Navigate to Content Administration -> Portal Content
    2. Step into a test folder and right click on the folder to create a new iView
    2. Select the template "Portal Activity Report iView"
       Name: Daily User Logins
       Technical Name: DailyUserLogins
    3. Open the newly created iView and define the following parameters
       under "Specify report content"
          Start of Reporting: Date 01.01.2005 and Time: 08:00
          End of Reporting: Date 31.12.2005 and Time: 24:00
          Time Unit for Reporting: Daily
       under "Configure report options"
          Information to Report: Number of users logged on
    You have created a new reporting iView, aggregating information about the number of anonymous and authenticated users on a daily basis.
    Hope this helps,
    Robert

  • How to change the Portal Password using a link from Web dynpro application

    Hello Everybody,
    I have a requirement to change the user password from a web dynpro application which is available on a mobile device. Firstly User will log into the portal through a mobile device and after getting authenticated user will be redirected to the mobile application. Within this mobile application there will be a link to change the login password(Portal login). Can somebody tell me how can i change the portal login password from a link available within the mobile application. Looking forward for a suitable reply.
    Thanks to all,
    Regards,
    Saby.

    Hi Maksim,
    Thanks for your reply..but i would also like to know can we directly use the Change Password Iview "persoUserPassword" from the portal. Can i directly Pass the URL of this iview from the portal to a "Change Password" link in the web dynpro application, so that when the user click this link he should be able to see this Iview on his/her mobile device and should be able to change the password from there. But i dont know whether this iview will appear properly on the mobile device or we have to have a custom web dynpro application for this purpose...Please reply with a suitable answer.
    Thanks in advance.
    Regards,
    Sarabjeet Singh.

  • How do I customize the login page?

    Hi, floks:
    How do I customize the login page?
    Can I just create a page with login portlet in it? what do I put as on Success URL,
    if I choose to go to the home page?
    thanks.
    null

    You can create a page and add a login portlet to it.Make it accesible to public.
    change the default page of the user "public" to the page you have created.(by default it is WELCOME)
    if there is an error in the user name or the password entered the portal still navigates to the default single-sign on page.(You have not changed the sign on page still)
    To change this page look at on-line help.
    search with string "customize" in online help
    null

  • How to start default portal  in ECC 6.0

    Hi Experts ,
    I have installed ECC 6.0 (Netweaver 7.0) in my system, i want to use portal in that.
    How to start the portal or login to that ?
    Thanks
    Aisurya

    Hi,
    ECC is different and Netweaver is different. After installation,
    Create your WD ABAP application, and you have to integrate this into portal to open your WD application
    in portal.
    Web Dynpro for ABAP provides portal integration API. It allows to navigate from a Web Dynpro iView to any other iView. Below codesnip can be used to navigate to an SAP transaction iView and pass a parameter to one dynpro field.
    WE have different portal events to navigate to portal, we ahve to use them.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e4/f86f4132f15c58e10000000a1550b0/content.htm
    For portal Integration.. follow this..
    Web Dynpro for ABAP Portal Integration [original link is broken]
    Cheers,
    Kris.

  • Accessing portal login details in R3

    Hi ,
       I have the following situation . I have to give the customer , access to the data which is corresponding to his account only . The customer logs into the portal and will access the data through a transaction iview from the R3 screen . The R3 screen appears immediately after the customer login . This is basically a query screen where he will enter some query parameters and submit the same to R3 system which will fetch the result based on the query .Now how do I pass the login details of the customer to R3 as and when the customer logs into the portal .The R3 system should know immediately after the login that it has to display the data related to this cutomer account only and not of other customers , after the customer runs the query ? Please advice .
    Regards
    Deepak Singh

    Hi Deepak
    frst of all which login method u use UIDPW or SAPLOGONTICKET to login into R3 From portal.
    if SAPLOGONTICKET than portal and R3 User is same.
    if UIDPW than make sure that u mapped portal user to coressponding R3 User.
    now about user data it's all upon that Role attached to that user in R3 system.
    means u restricte the user to view other user data in R3 with authorization will same affect in Portal.
    regards,
    kaushal

  • Failed configuring Portal Server. can't run cacaoadm.bat

    Hi,
    I am trying to install Sun Java ES5 (2006Q4) on window XP. The configuration for portal server was failed. When I checked the logs, it complains cacao default instance was disabled and couldn't started. I went to the the directory and tried to manually run cacaoadm command. It returns:
    C:\Sun\JavaES5\share\cacao_2\bin>cacaoadm.bat enable
    This action cannot be performed by a non privileged user.
    I logged on to the windows as a user who is in the administrators group. Any other components installations were fine. I really have no idea how to solve this problem as there is no user account as administrator. Can someone please help?
    The portal config error from the log are as following:
    [#|2007-06-26T15:22:14.821+1000|INFO|SJS Portal Server|debug.com.sun.portal.fabric.config|ThreadID=10; ClassName=com.sun.portal.fabric.config.PortalConfigurator; MethodName=configureHost; |PSFB_CSPFC0021:Waiting for Cacao Server to Startup|#]
    [#|2007-06-26T15:22:15.696+1000|FINEST|SJS Portal Server|debug.com.sun.portal.fabric.util|ThreadID=37; ClassName=com.sun.portal.fabric.util.StreamLogger; MethodName=run; |PSFB_CSPFU0004: C:/Sun/JavaES5/share/cacao_2/bin/cacaoadm(Output)=default instance is DISABLED at system startup.|#]
    [#|2007-06-26T15:22:15.712+1000|FINEST|SJS Portal Server|debug.com.sun.portal.fabric.util|ThreadID=37; ClassName=com.sun.portal.fabric.util.StreamLogger; MethodName=run; |PSFB_CSPFU0004: C:/Sun/JavaES5/share/cacao_2/bin/cacaoadm(Output)=default instance is not running.|#]
    [#|2007-06-26T15:22:15.790+1000|INFO|SJS Portal Server|debug.com.sun.portal.fabric.tasks|ThreadID=10; ClassName=com.sun.portal.fabric.tasks.Cacao; MethodName=execCommand; |PSFB_CSPFT0342:<C:/Sun/JavaES5/share/cacao_2/bin/cacaoadm status> Returned <default instance is DISABLED at system startup.
    default instance is not running.
    |#][#|2007-06-26T15:23:45.790+1000|SEVERE|SJS Portal Server|debug.com.sun.portal.fabric.config|ThreadID=10; ClassName=com.sun.portal.fabric.config.PortalConfigurator; MethodName=configureHost; |PSFB_CSPFC0020:Cacao Server startup failed|#]
    [#|2007-06-26T15:23:45.790+1000|SEVERE|SJS Portal Server|debug.com.sun.portal.fabric.config|ThreadID=10; ClassName=com.sun.portal.fabric.config.PortalConfigurator; MethodName=configureHost; |PSFB_CSPFC0024:Failed to configure the Host
    com.sun.portal.fabric.tasks.ConfigurationException
         at com.sun.portal.fabric.config.PortalConfigurator.configureHost(PortalConfigurator.java:635)
         at com.sun.portal.fabric.config.ConfigurePortal.main(ConfigurePortal.java:166)
    |#]
    [#|2007-06-26T15:23:45.790+1000|SEVERE|SJS Portal Server|debug.com.sun.portal.fabric.config|ThreadID=10; ClassName=com.sun.portal.fabric.config.ConfigurePortal; MethodName=main; |PSFB_CSPFC0014:Failed configuring Portal Server!!
    com.sun.portal.fabric.tasks.ConfigurationException: com.sun.portal.fabric.tasks.ConfigurationException
         at com.sun.portal.fabric.config.PortalConfigurator.configureHost(PortalConfigurator.java:749)
         at com.sun.portal.fabric.config.ConfigurePortal.main(ConfigurePortal.java:166)
    Thank you very much
    Regards,
    Tara

    Hi Deepak,
    Thanks for the post.
    Use cacaoadm restar gives me the same error.
    I found out that is a limitation for the windows version I am using. Basically, the account for installation and configuration has to be an local administrator not in network.
    Cheers,
    Tara

Maybe you are looking for