Java client application + SAP Logon Tickets (SSO)

Java client application + SAP Logon Tickets (SSO)
Hello
I have the following question, it is about connection between SAP Enterprise Portal and Java Application.
After registration in Enterprise Portal (with Internet Explorer Browser) request is passed on to SAP backend system - cFolders (SSO methode)
With internet browser functioned everything.
How can one get, however, this Logon tickets with Java application and then be of use later for SOAP connection
(everything with client java application)
Thanks for quick help
Edo

Hi Edo,
look at this https://media.sdn.sap.com/javadocs/NW04/SPS15/um/com/sap/security/api/ticket/TicketVerifier.html
Best Regards
Oliver

Similar Messages

  • SSO to non SAP Application using SAP Logon Ticket

    Hi Experts,
    I Have EP 7 SP 15 using SPNego Wizard to SSO with Active Directory and SSO between EP and ECC using SAP Certificates.
    Now I have a demand to SSO some JAVA based applications (non SAP) to my portal using the SAP Logon Ticket.
    I Have followed some blogs that directed me to use SAPSSOEXT (some libs) to read the MYSAPSSO2 cookie. The problem is that I didn't found this cookie, I even executed the command javascript:document to look for this cookie but the browser just show me the JSESSIONID info.
    Does anybody knows where I can find this cookie or if there's a better way to set up this SSO? It´s necessary to say that I cannot SSO these application to the kerberos protocol because some security reasons on my company.
    Thanks
    Armando

    Hi,
    I dont have much info related but i can giv u hint
    refer OSS Notes 442401 and 723896.
    When using SAP logon tickets for non-SAP applications, two different implementation options are available. The difference lies in where the ticket verification takes place.
    In the first case,  the SAP logon ticket is submitted to the web server filter located on the web server. The web server filter verifies the portal serveru2019s public key
    certificate using its local Personal Security Environment (PSE) and then populates the HTTP header field with the user ID for SSO to the non-sap web application.
    In the second case,  the SAP logon ticket is sent to the non-SAP application, which then verifies it using the ticket verification DLL and submits the user ID to the application for SSO.
    You can refer following link :-
    http://help.sap.com/saphelp_nw70/helpdata/EN/89/6eb8deaf2f11d5993700508b6b8b11/frameset.htm
    user authentication and SSO
    http://help.sap.com/saphelp_nw70/helpdata/EN/8f/ae29411ab3db2be10000000a1550b0/frameset.htm
    Authentication Using a Directory with SSO Integration Using Logon Tickets
    http://help.sap.com/saphelp_nw70/helpdata/EN/f8/3b514ca29011d5bdeb006094191908/frameset.htm
    SSO
    SAP Logon Ticket-based Single Sign-On
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/b6af743753003ae10000000a11466f/frameset.htm

  • SSO using Kerberos with SAP Logon Tickets

    Hi,
    I am creating a Repository Manager for the Portal Knowledge Management System and I want to use SSO to a backend IIS application and I have a few questions here. 
    I have a three tiered architecture. 
    A.  The presentation tier (SAP Portal which has my Repository Manager implementation)
    B.  ASP.NET web service data layer.
    C.  Backend document management system which runs on IIS. 
    I have installed the ISAPI filter on my ASP.NET application server and have enabled this HOST account for delegation in MSAD 2003.   Server B will use Kerberos constrained delegation to access Server C, which is an IIS backend server. 
    My question is how do I pass an SAP Logon Ticket to an ASP.NET web service request from my Repository Manager implementation?  Basically how do I just make an HTTP request to an ASP.NET application from some portal iView or WebDynPro code and pass along the SAP Logon Ticket in the request so it can be interpreted by the ISAPI filter on the IIS server.  Does anyone have any sample code or an application here that does this?
    Thanks,
    Scott

    Hi Scott
    Did you managed to find out anything regarding how to pass SAP Logon ticket to ASP.NET Webservice. Can you share it with me?
    regards
    ram

  • SSO to Web Service using SAP Logon Ticket

    Hi,
    I have to do SSO using SAP Logon Ticket between my portal and a Java Web Service that is accessible over internet. I do have the WSDL file of this Web Service.
    I want to know:
    1. What changes are required in Web Service to configure it to read and accept Logon Ticket?
    2. What am I supposed to do at portal end to enable this process?
    Thanks,
    Vivek

    Hi Vivek & Raja,
    > is it that if the WS is a third party WS and running on a Non-SAP J2EE Server,
    > we can't implement SSO from Portal to it using SAP Logon Ticket?
    Right, if you cannot extend it's functionality, how should it do the ticket verification...
    @Raja:
    > SAP Logon Ticket is for authenticating to a SAP system, since yours in a
    > thirdparty ws, there is not need of SAP logonticket.
    On the other hand, that's not true. It is possible as well as often done to verify the SSO ticket on some third party system. This is also supported, for Java as well as for other systems, different articles about such scenarios have been published, also here on SDN.
    Hope it helps
    Detlev
    PS: Vivek, please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • SSO with SAP logon tickets to non-SAP web app

    I am trying to implement SSO to an oracle portal based web application using SAP logon tickets, but can't seem to find a way for it to work.  I thought maybe it would be a web server filter, but am unsure if this would work for oracle portal.  Anyone tried similar?
    Cindy

    Hi Cindy,
    If it is EP6 SP2 probably you can checkout the following document.
    http://service.sap.com/ep60
    Go to Documentation Help>How-To-Guides>Current How To Guides section.
    checkout the following how to guide.
    Perform Cross Domain SSO with SAP Logon tickets zip file.
    If you want the zip file please send an e-mail to
    [email protected]
    Regards
    -Venkat Malempati

  • How to implement SSO to non-SAP systems using SAP logon ticket?

    Hello,
    We would like to implement Single Sign On between our SAP Netweaver system and a Siebel which is a non-SAP system using SAP logon tickets.
    Can anyone please give me some leads on this, in particular:
    1. Is there a JAVA API or an SAP plug-in that can be implemented on the Siebel machine to extract the SAP logon ticket?
    2. As the other machine might seat on a complete different domain, is it possible to implement SAP logon ticket without using cookies (perhaps through the HTTP header?
    3. In case you think using SAP logon tickets is not the best solution here I would be happy to hear any other suggestions you might have.
    Roy

    Hi,
    I'm currently using SAML as well. Unfortunately the SAP J2EE cannot work as authority (identity provider) but what you can do is using an open implementation of SAML such as opensso which is an open version of SUNs Java System access manager.
    There are a couple of other projects such as opensaml, apache's wss4j or shibboleth that might be interesting in this context.
    I just installed opensso and got it working with SAP J2EE 7.0 using SAPs JAAS SAMLLoginModule to authenticate users within SAP J2EE.
    In this scenario opensso serves as identity provider just as you need! There are a couple of Policy agents available on SUNs Download site you can use with Apache, Tomcat, JBOSS, WebSphere, Bea Web Logic etc. in order to authenticate! Otherwise you just directly authenticate against opensso. When installing opensso you can configure the type of user store you want  to use! By default it uses LDAP but you can also use different types of user store using JDBC or other mechanisms. Since you have a Directory Service you could easily connect it to your existing directory.
    There is also a way to map user ids directly in opensso by adding a uid mapping class. I created some documentation with lots of screenshots about using opensso with SAP J2EE. You can easily use opensso with any other system that supports SAML. In the case of SAP the usage is currently limited to SAML versions 1.0 and 1.1. Version 2.0 is not yet supported but should be in one of the following versions.
    Here are some links you might want to check:
    OpenSAML: https://spaces.internet2.edu/display/OpenSAML/Home
    wss4j: http://ws.apache.org/wss4j/
    shibboleth: http://shibboleth.internet2.edu/
    opensso: https://opensso.dev.java.net/
    On SDN you will find a documentation on how to connect SUN Java System Access Manager to SAP J2EE (see https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/906d9fc6-31b9-2910-1385-90edad7d7570). As I said opensso is based on the SUN Access Manager code and looks quite the same. So you can adapt this documentation in order to configure opensso or you can just ask me for the documentation.
    Hope this is helpful...
    Let me know if you need further assistance on this topic
    Cheers

  • Error in the configuration for sap logon tickets

    Hi Forum,
    I use Tcode crmd_order_bp to see the BP cockpit and the error message displays as
    <b>Error in the configuration for SAP logon tickets</b>
    But if I click "Yes", system displays cockpit.
    How can I avoid this error.
    Thanks in advance
    Regards
    Shridhar

    You will still need to configure SSO (either by logon ticket or username/password). The data source access is done using the username/password configured in the UM Config dialog box.
    I can see where you're coming from with your thinking, however logon-ticket-based SSO is probably the best approach.
    Cheers,
    Darren.

  • Use of JCo destinations with SAP Logon Ticket

    I would have got a precision about the use of a connection pool in a JCo destination using the SAP Logon Ticket connectivity: do i have got the same functionality around the pool connection if i use the SAP logon ticket instead of a user/password inside a JCo destination defined in the web dynpro content administrator ?
    Thank in advance,
    Regards,
    Eric.

    Hello Eric,
    There is only one difference in ticket and user/password authentification method:
    By using a ticket
    <i>For SSO specify the user to be $MYSAPSSO2$ and pass the base64 encoded ticket as as the passwd parameter.
    </i>
    and for user/password you are passing user and password.
    So, there us no difference from connection pool management or behavior perspective.
    Best regards, Maksim Rashchynski.
    P.S.
    Link to JCo javadoc, it can be useful:
    http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/sapjco/com/sap/mw/jco/JCO.html

  • Windows Integrated Authentication & SAP Logon tickets

    1) We have configured windows authentication and the IISproxy on a SPS frontend server to our SAP portal environment.
    2)We have configured SAP logon tickets on the SAP portal (running on hp-ux).
    3) Both the IIS server and the sap portal server exist on the same domain inside our firewall (iis_server.lsv.internal_company_name.com and sap_portal_server.lsv.internal_company_name.com)
    4) A virtual URL has been created on the IIS server, http://sap_portal.external_company_name.com, using a domain alias.
    5) When an authenticated user is passed from the IIS server to the SAP portal the SAP logon ticket that is created is for external_company_name.com alias rather than lsv.internal_company_name.com. This logon ticket is not accepted by any of the backend SAP systems that have been configured to except logon tickets because they all exist in the lsv.internal_company_name.com domain.
    6) The portal security guide says:
    "The Portal Server issues a SAP logon ticket for the Internet domain or a sub-domain of the
    Portal Server only."
    Given this scenario, is there some configuration that can be added to allow the use of this alias or is there a bug in the SAP portal code that needs to be addressed?

    Hi,
    You cannot use the external alias. You can however set SSO on the portal not to look to the total url. For example it would work if you use:
    sap_portal_server.lsv.internal.company_name.com
    and
    sap_portal.external.company_name.com
    The prerequisite here is that at least the domain name should be the same i.e. the last two parts.
    Greetings,
    Vincent

  • How to invoke A CORBA-Java Client Application, from Oracle???

    Hi,
    I have a CORBA-Java Client Application, which takes the input parameters from a Oracle table and calls the CORBA Server, passes these parameters to the C++ Server Application and gets the results back thorugh CORBA.
    My problem is, this java application needs to be invoked, when ever there is a new record in the Oracle table.
    I am not sure if i can use Java Stored Procedures in Oracle in this case, because my app is in Sun JVM and i am using BEA WebLogic Enterprise 5.1 for the CORBA.
    Is there any other way by which i can invoke this app, when a new record is updated in the Oracle table?
    Currently, i have just put a TIMER in my java App, to check the oracle table in every few seconds, to see if there is a new reocrd. If it finds a new record it invokes the corresponding class(corba class), or else just keep sending a messsage that no new record is available.
    The problems i am facing in this method are as follows;
    1. Unnecessarily, the application has to keep on running if there is no request coming frequently.
    2. When there is a new record found, the Corba Class is called and the whole process (till it gets the result back from the server) takes about 20 - 30 secs. But within this period, if there is another record coming into Oracle table, my timer class doesnt invoke another corba class....(though i am using multithreading by using the RemidTask method in the timer.schedule.
    (timer.schedule(new RemindTask(),10,5*1000);)
    3. Also, if during the first call, there is some error, then the whole process exits, instead of another process running parallely (when a second new record is found).
    So how does this timer class act like a multithreading process?
    Well, i hope i am not confusing....Please let me know if anyone wants bit more elaboration on this.
    It would be really helpful if someone can suggest some answer to my problem.
    Thanks in advance.

    Thank you very much Keith.
    Though i am really getting a hope of solving this problem, from you answer, i am actually not 100% sure if i understood your reply properly.
    First of all, about
    1. "use the update stored procedure to place the updated record (or unique index) onto an Oracle Application Queue."
    -- Why do i need to put the record in the AQ. (Frankly speaking, at this moment i dont have much idea about AQ, probably i can learn more about it from oracle technet site? Or would u suggest anything else?)
    Then,
    2."Your app then waits on this queue and for each new message, consumes it, gets the data required from the AQ load (e.g the index and or record), and fires off the CORBA class"
    -- How does my application stay in the queue? and gets the data from the queue?
    Of course, as far as i understand, i am going through the same principle...keeping on running a timer class, which keeps on checking the table for a new record, and when it finds, it calls the CORBA class.
    Of course, i feel there should be a difference in running the timer continuosly and staying in queue. However i am totally unaware, how can i make my java app to wait in the queue and waits for a new record?
    Can you please elaborate your answer a bit more, because i dont know about the AQ, that you have mentioned.
    Thank you very much in advance for your time. But please know that it will be of great help to me and hence will be higly appreciated.
    Regards,
    Subhasree.

  • Problems with SAP Logon ticket

    Hi.
    I am trying to send SAP Logon ticket from ECC 6.0  to the backend legacy using Soap adapter in receiver side. I get the following error in SXMB_MONI, so it looks like AF is not accepting the ticket. Can anybody tell me please, how I can identify that the ticket has been received in PI's side?
    <Trace level="1" type="T">Principal Propagation connection attributes</Trace>
      <Trace level="1" type="T">Host = hostname</Trace>
      <Trace level="1" type="T">Port = 12345</Trace>
      <Trace level="1" type="T">Transport protocol = HTTP</Trace>
      <Trace level="1" type="T">Transport protocol vers = 1.0</Trace>
      <Trace level="1" type="T">Message protocol = 003000</Trace>
      <Trace level="1" type="T">Path = /MessagingSystem/receive/AFW/XI</Trace>
      <Trace level="1" type="T">Security: Logon Ticket</Trace>
      <Trace level="1" type="System_Error">Error while sending by HTTP (error code: 403, error text: Forbidden)</Trace>
      </Trace>
    Thanks, Jukka

    Hi.
    I have had some progress. Actually Principal Propagation works well now, thanks to instructions in http://help.sap.com/saphelp_nwpi711/helpdata/en/48/a9bbb97e28674be10000000a421937/frameset.htm
    But I think I have now found out that the principal progation might not be a direct answer to my problem. In the end of the day I should be able to deliver UsernameToken in my soap message header. Something like this:
    <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
      |          <wsu:Timestamp wsu:Id="Timestamp-12134742" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      |             <wsu:Created>2007-10-14T12:45:34.656Z</wsu:Created>
      |             <wsu:Expires>2007-10-14T12:46:34.656Z</wsu:Expires>
      |          </wsu:Timestamp>
      |          <wsse:UsernameToken wsu:Id="UsernameToken-33259721" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      |             <wsse:Username>test</wsse:Username>
      |             <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">test</wsse:Password>
      |          </wsse:UsernameToken>
      |       </wsse:Security>
    I just have not found any documentation which I could utilize in Abap Proxy - PI 7.1 - Soap Receiver scenario. Just wondering should I create my own customized soap envelope and disable the Pi envelope in SOAP communication channel...
    Do you know if there's any "standard way" to configure this kind of configuration?
    Br. Jukka

  • Calling Java - Client application Through Servlet/JSP/HTML

    Hi,
    I have a Java Client Application to display presentation(BI Bean) , made thru wizard provided in JDev.
    Now i want to open this application from a link in HTML page.
    I am running the application thru J Developer only.
    please help,
    thanks,
    Vaibhav

    Hi,
    Thanx for ur help..
    My application is a JSP one..
    My J Client application is named :-
    BIApplication1.java.
    When i call it thru JSP..
    BIApplication1 bi=new BIApplication1();
    bi.setSize(800, 620);
    bi.setVisible(true);
    the application opens..
    but when i attempt to open a presentation..
    it give me the following error..
    "no configuration file found"
    but when i open BIApplication independently..it works just fine...
    thanks,
    Vaibhav

  • SAP Logon Ticket VS SAP Assertion Ticket?

    SAP Logon Ticket VS SAP Assertion Ticket in SAP Enterprise Portal?
    I want SAP Logon Ticket VS SAP Assertion Ticket.
    When use SAP Logon Ticket?
    When use SAP Assertion Ticket?
    SAP Logon Ticket advantage / disadvantatge?
    SAP Assertion Ticket Ticket advantage / disadvantatge?

    Hi James,
    Please go through the link for Integration in Single Sign-On Environments.
    http://help.sap.com/saphelp_nw04s/helpdata/en/96/a75742b6081053e10000000a155106/frameset.htm
    Thanks n Regards
    Santosh
    Reward if helpful !!!

  • How to Activate Send SAP Logon Ticket in Logon Security...??

    Hi
    I am trying to create RFC Destination for SAP EP 6.0. Here i need to activate <b>Send SAP Logon Ticket</b>. But that Activate Radio button is in disable mode. How to make it enable. Please Help me
    Best Regards
    Ravi Shankar B

    The F1 help for this option says:
    <i>When you activate this option, an attempt is made to create and send the SAP logon ticket for the current session, for a logon to the target system. Before you can create this ticket, the environment must be configured appropriately (for example, the profile parameter login/create_sso2_ticket must be set to 2).</i>
    So, J. has the right idea...
    Cheers

  • Umw attribute responsible for user ID in SAP Logon Ticket

    In a typical portal login using the login module stack "ticket", I understand that j_user and j_password are used to login at the BasicPasswordLoginModule.
    With our UME running against an LDAP server, what attribute is responsible for the user ID of the generated SAP Logon Ticket at the CreateTicketLoginModule? It could be j_user or userid of the principal type account or the uniquename or loginid of the principal type user.
    Thanks,
    Florian

    i think it is by default but if you are using qoutes then you have to give it in upper case.
    select matnr into mara-matnr from mara where matnr = 'abc'.
    will not fetch any value here you have to give 'ABC'.
    regards
    shiba dutta

Maybe you are looking for

  • Roadrunner + WRT310N

    Hi I've been using my WRT310N for a while now, and it's been great but it's not working with my internet right now. I just got roadrunner cable internet literally 10 min. ago and my router isn't working with it for some reason. I'm directly connected

  • IPhone 3G won't update to 2.1; claims unknown error (-19)

    Hi guys. Trying to update my vanilla 3G (which was only restored two days ago) to the 2.1 update today and it simply won't update. It manages to download correctly but just after 'extracting' it fails. I've restarted the phone, i've restarted iTunes,

  • Tiger System De-activated

    I bought a used Pismo laptop about 3 years ago. It had Tiger installed, but not OS 9.x. I recently noticed that the firmware had not been updated (you're supposed to update prior to installing OS X). I thought that I would update the firmware by inst

  • Trouble with iLife after OS X reinstall

    I am having a hard time understanding what I am doing wrong. Last week my system would shut down on restart. I did all I could to get it to work but it would only start in safe mode. After some phone assistance from SOS-Apple. I reinstalled Tiger. I

  • Adobe PSE 10. Window7 vs Window8

    I have PSE 10 and PSE8, can they be running on windows 8?