[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-java-dev
Subject:    [Dev] How to retrieve additional query parameters from Authentication request in Adaptive Authentica
From:       gayan gunawardana <gmgunawardana () gmail ! com>
Date:       2020-08-11 14:55:26
Message-ID: CAGd=jRn1c1S4MTQzBa27=8erj2Ui+Ko_Sjpzjef_L4W93bXeSw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Devs,

I am sending additional query parameter with SAML request as below

https://localhost:9443/samlsso?SAMLRequest=<saml request>&
*test_param=test_param*

I need to retrieve test_param from the authentication script. As per [1] I
was trying with below script but it didn't work

var testParam = context.request.params["test_param"];
Log.info("Test Param:" + testParam );

Could you be able to help ?

[1]
https://is.docs.wso2.com/en/latest/references/adaptive-authentication-js-api-reference/#request-object


-- 
Gayan

[Attachment #5 (text/html)]

<div dir="ltr">Hi Devs,<div><br></div><div>I am sending additional query parameter \
with SAML request as below  </div><div><br></div><div><span \
style="background-color:rgb(234,243,255);color:rgb(0,0,0);font-family:&quot;Segoe \
UI&quot;,Tahoma,sans-serif;font-size:11px"><a \
href="https://localhost:9443/samlsso?SAMLRequest=">https://localhost:9443/samlsso?SAMLRequest=</a>&lt;saml \
request&gt;&amp;<b>test_param=test_param</b></span><b>  </b>  \
</div><div><br></div><div>I need to retrieve test_param from the authentication \
script. As per [1] I was trying with below script but it didn&#39;t work  \
</div><div><br></div><div>var testParam = \
context.request.params[&quot;test_param&quot;];<br>Log.info(&quot;Test Param:&quot; + \


testParam

);<br></div><div><br></div><div>Could you be able to help \
?</div><div><br></div><div>[1]  <a \
href="https://is.docs.wso2.com/en/latest/references/adaptive-authentication-js-api-ref \
erence/#request-object">https://is.docs.wso2.com/en/latest/references/adaptive-authentication-js-api-reference/#request-object</a> \
</div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" \
data-smartmail="gmail_signature">Gayan</div></div></div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic