<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [ICF Handler] Retrieve MYSAPSSO2 cookie in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925238#M1691939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hendrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nope, does not work...&lt;/P&gt;&lt;P&gt;Worse, when you get the raw request using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lo_converter&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;cl_abap_conv_in_ce&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_request_raw&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;xstring&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_request_str&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;string&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp; l_request_raw = server-&amp;gt;request-&amp;gt;get_raw_message( ).&amp;nbsp;&amp;nbsp;&amp;nbsp; " le contenu brut a un MYSAPSS02 vide !&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp; lo_converter = cl_abap_conv_in_ce=&amp;gt;create( input = l_request_raw ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp; lo_converter-&amp;gt;read( IMPORTING data = l_request_str ).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;well... mysapsso2 is here but it's empty (as if being erased by the standard?)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;Why so many cautions when you can put it simply in an hidden form field on the client side??&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2012 20:37:54 GMT</pubDate>
    <dc:creator>guillaume-hrc</dc:creator>
    <dc:date>2012-08-08T20:37:54Z</dc:date>
    <item>
      <title>[ICF Handler] Retrieve MYSAPSSO2 cookie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925236#M1691937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to get the SAP Logon Ticket (MYSAPSSO2 cookie) from an ICF handler I am using. This would allow me to generate a SAP shortcut for later use.&lt;/P&gt;&lt;P&gt;I know that the SAP Logon Ticket is embedded in the request that is issued because I can see it with a "javascript:alert(document.cookie):".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet, I cannot retrieve it on the ABAP side using this code in my ICF handler:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lt_cookies &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;TIHTTPCKI&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; server&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;request&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;GET_COOKIES&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;CHANGING &lt;/SPAN&gt;cookies &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_cookies &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 13:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925236#M1691937</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2012-08-08T13:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: [ICF Handler] Retrieve MYSAPSSO2 cookie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925237#M1691938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guillaume,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tried to get the ticket from the form fields: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&amp;nbsp; l_sso_header TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_sso_header = server-&amp;gt;request-&amp;gt;get_form_field( 'mysapsso2' ).&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 14:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925237#M1691938</guid>
      <dc:creator>hendrik_brandes</dc:creator>
      <dc:date>2012-08-08T14:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: [ICF Handler] Retrieve MYSAPSSO2 cookie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925238#M1691939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hendrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nope, does not work...&lt;/P&gt;&lt;P&gt;Worse, when you get the raw request using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lo_converter&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;cl_abap_conv_in_ce&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_request_raw&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;xstring&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_request_str&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;string&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp; l_request_raw = server-&amp;gt;request-&amp;gt;get_raw_message( ).&amp;nbsp;&amp;nbsp;&amp;nbsp; " le contenu brut a un MYSAPSS02 vide !&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp; lo_converter = cl_abap_conv_in_ce=&amp;gt;create( input = l_request_raw ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp; lo_converter-&amp;gt;read( IMPORTING data = l_request_str ).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;well... mysapsso2 is here but it's empty (as if being erased by the standard?)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;Why so many cautions when you can put it simply in an hidden form field on the client side??&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 20:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925238#M1691939</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2012-08-08T20:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: [ICF Handler] Retrieve MYSAPSSO2 cookie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925239#M1691940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guillaume,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your mysapsso2 is empty, you should check first you Instance-Parameters if SSO is activated. What are the values of this parameters:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;login/create_sso2_ticket&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;login/accept_sso2_ticket&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 09:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925239#M1691940</guid>
      <dc:creator>hendrik_brandes</dc:creator>
      <dc:date>2012-08-09T09:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: [ICF Handler] Retrieve MYSAPSSO2 cookie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925240#M1691941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP Logon TIcket is set, I can see it on the client side using javascript.&lt;/P&gt;&lt;P&gt;Besides, I am even capable of retrieving it if I call a BSP, inject the cookie in a form field and send it back to the backend (thanks Gregor Wolf and its ZAPP_INTEGRATOR tool).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is: how should I do the same thing using a 'mere' ICF handler because I do not want to open BSP pages on the client side (irritating fugitive IE screens all over the screen).&lt;/P&gt;&lt;P&gt;I am under the impression that, on the backend side, there is a great deal of effort that is done to prevent customer code to access SAP Logon Ticket... &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/910/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 09:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925240#M1691941</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2012-08-09T09:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: [ICF Handler] Retrieve MYSAPSSO2 cookie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925241#M1691942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guillaume,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you succeed in this? I am trying a similar stuff, any pointer would be helpful. Also i am trying to verfiy the signature as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 12:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925241#M1691942</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2013-03-02T12:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: [ICF Handler] Retrieve MYSAPSSO2 cookie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925242#M1691943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately not...&lt;/P&gt;&lt;P&gt;I had to give up... for the time being.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it is deleted for the request object way before your ICF handler is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 08:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icf-handler-retrieve-mysapsso2-cookie/m-p/8925242#M1691943</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2013-03-04T08:29:46Z</dc:date>
    </item>
  </channel>
</rss>

