<?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>Question Re: Custom Login Module in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/custom-login-module/qaa-p/7333394#M2638535</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;This isn't work, because ASPPARAM is a Http request parameter passed via POST action. This cannot be a cookie.&lt;/P&gt;&lt;P&gt;But just to test, i changed and try to call as cookie. How as i imagine, didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Marcos Brandao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Oct 2010 14:59:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-25T14:59:00Z</dc:date>
    <item>
      <title>Custom Login Module</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-login-module/qaq-p/7333392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developped a custom login module to authenticate in portal fron external application.&lt;/P&gt;&lt;P&gt;This external application is developped in ASP, and i need to pass some information from this page to my login module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the SAP Document [http://help.sap.com/saphelp_nw70/helpdata/en/46/3ce9402f3f8031e10000000a1550b0/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/46/3ce9402f3f8031e10000000a1550b0/content.htm] i create and configure my login module and test. All is OK. But when i try to get the parameters comming from ASP page, i always get null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code to get parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;HttpGetterCallback hgc = new HttpGetterCallback();
hgc3.setName("ASPPARAM");
hgc3.setType(HttpGetterCallback.REQUEST_PARAMETER);
try {
     this._callback_handler.handle(new Callback[] { hgc });
} catch (Exception e) {
     onthewayexc = e;
} 
String[] aspParam = ((String[]) hgc.getValue());
LOCATION.debugT("login", "req param[] has value " + aspParam[0]);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attribute aspParam always is null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw the http header of this request and i get the follow value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;POST /irj HTTP/1.1
ASPUSERID2
Referer: http://192.168.14.15:50001/post1.asp
Accept-Language: en-US,pt-BR;q=0.5
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Host: 164.164.164.159:50000
Content-Length: 275
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASPSESSIONIDQACQBSQS=GAGFHFBANKGOLBELONFABKII; ASPSESSIONIDCASDDDBA=OBKLPLEAOIEHDAONPDJDJKDI

ASPPARAM=001251228695263&amp;amp;ASPBINARYCODE=001010010000101000100100&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, the parameter ASPARAM is in Request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Marcos Brandao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 20:21:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-login-module/qaq-p/7333392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-21T20:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Login Module</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-login-module/qaa-p/7333393#M2638534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Cookie: ASPSESSIONIDQACQBSQS=GAGFHFBANKGOLBELONFABKII; ASPSESSIONIDCASDDDBA=OBKLPLEAOIEHDAONPDJDJKDI&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ASPPARAM=001251228695263&amp;amp;ASPBINARYCODE=001010010000101000100100 &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for me it seems that ASPPARAM is a name of a cookie, so try to read a cookie information:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;HttpGetterCallback hgc = new HttpGetterCallback();
hgc.setType(HttpGetterCallback.COOKIE);
hgc.setName("ASPPARAM");
CallbackHandler.handle(new Callback[] { hgc });
Object aspParam = hgc.getValue();
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Aliaksandr Zhukau&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 03:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-login-module/qaa-p/7333393#M2638534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-25T03:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Login Module</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-login-module/qaa-p/7333394#M2638535</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;This isn't work, because ASPPARAM is a Http request parameter passed via POST action. This cannot be a cookie.&lt;/P&gt;&lt;P&gt;But just to test, i changed and try to call as cookie. How as i imagine, didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Marcos Brandao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 14:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-login-module/qaa-p/7333394#M2638535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-25T14:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Login Module</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-login-module/qaa-p/7333395#M2638536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any other suggestion, please...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcos Brandã&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 10:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-login-module/qaa-p/7333395#M2638536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T10:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Login Module</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-login-module/qaa-p/7333396#M2638537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the sample code you posted it looks as though you mixed up two variables, 'hgc' and 'hgc3'.&amp;nbsp; (You set the type and name in 'hgc3', but then you ignored 'hgc3' and used 'hgc' in the rest of your sample code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that bug exists in the code that you were running on NetWeaver then that would explain why you always got a null result.&amp;nbsp; (But if that bug is only in the code that you posted to this forum, not in the code that you were actually running, then no, sorry, I don't know what the problem is).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 01:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-login-module/qaa-p/7333396#M2638537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-25T01:09:30Z</dc:date>
    </item>
  </channel>
</rss>

