Hi all,

I am writing a custom conditional authentication function and trying to
retrieve a query parameter passed with the request from the
*JsAuthenticationContext* object in the java side. As I observed, all query
parameters can be fetched as a single string by calling the below method.

context.getWrapped().getQueryParams();

This will return a single query string with all the parameters as shown
below.
client_id=yUWweV18CMZRQZfNdfCVwiuX7gca&commonAuthCallerPath=%2Foauth2%2Fauthorize
&forceAuth=false&passiveAuth=false&redirect_uri=https%3A%2F%
2Fen.wikipedia.org%2Fwiki%2FURL

Now I need to obtain a value corresponding to a particular key. Is there
any method or way supported by Identity Server to do this? If not I will be
writing a custom utility function that processes the above string and
returns value as a string based on the given key.

Regards,
Dimuth Menikgama
-- 

*Dimuth Menikgama*

*Software Engineer*
*WSO2*


*Mobile :      + 94 702337977*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to