Hi Pulasthi,

On Mon, Jun 11, 2018 at 11:36 AM Pulasthi Mahawithana <[email protected]>
wrote:

> Hi Senthalan,
>
> On Mon, Jun 11, 2018 at 11:10 AM Senthalan Kanagalingam <
> [email protected]> wrote:
>
>> Hi all,
>>
>> I am working on the $subject. The purpose of this implementation is to
>> have application-specific configurations for authenticators. Currently, we
>> can static configurations for the authenticators in the
>> application-authentication.xml file.
>>
>> In the script, we can set the parameters as follow, If we want to pass
>> the foo to the authenticator,
>>
>> context.foo = "xyz";
>>
>
>

> Shall we change this to following to avoid any conflicts with existing
> context objects?
>
> context.parameter.foo = "xyz";
> and/or
> context.parameter['foo'] = "xyz";
>

+ 1. I have implemented with the suggestions.


>
>>
>> We can get back the value in the authenticators( executed after this
>> definition) by calling context.getScriptParameter("foo")
>>
>> I have developed a POC for this. I have created a new map in the
>> "AuthenticationContext" to save these parameters.
>>
>> Please share your thoughts about this implementation.
>>
>> thanks,
>> Senthalan.
>>
>>
>> *Senthalan Kanagalingam*
>> *Software Engineer - WSO2 Inc.*
>> *Mobile : +94 (0) 77 18 77 466*
>> <http://wso2.com/signature>
>>
>
>
> --
> *Pulasthi Mahawithana*
> Associate Technical Lead
> WSO2 Inc., http://wso2.com/
> Mobile: +94-71-5179022
> Blog: https://medium.com/@pulasthi7/
>
> <https://wso2.com/signature>
>


-- 

*Senthalan Kanagalingam*
*Software Engineer - WSO2 Inc.*
*Mobile : +94 (0) 77 18 77 466*
<http://wso2.com/signature>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to