On Mon, Mar 11, 2019 at 12:28 PM Ruwan Abeykoon <ruw...@wso2.com> wrote:

> Hi Gayan,
> You could use [1]. Example [2]
> "user.localClaims[“<local_claim_url>”] : (Read/Write) "
>
> e.g.
>
> var dateOfBirthClaim = 'http://wso2.org/claims/dob';
> var dob = context.currentKnownSubject.localClaims[dateOfBirthClaim];
>
> Can Write to claims
> context.currentKnownSubject.localClaims['http://wso2.org/claims/fullname']
> = 'Jone Doe';
>
> [1]
> https://docs.wso2.com/display/IS570/Adaptive+Authentication+JS+API+Reference#AdaptiveAuthenticationJSAPIReference-userObject
> [2]
> https://docs.wso2.com/display/IS570/Configuring+User-Age-Based+Adaptive+Authentication
>
Thanks a lot for Information

>
> Cheers,
> Ruwan
>
> On Mon, Mar 11, 2019 at 12:12 PM gayan gunawardana <
> gmgunaward...@gmail.com> wrote:
>
>>
>>
>> On Wed, Feb 20, 2019 at 2:40 PM Darshana Gunawardana <darsh...@wso2.com>
>> wrote:
>>
>>> Hi Johann,
>>>
>>> If we are considering a provisioning scenarios in a authentication flow
>>> (JIT flows), we should be able use scripting capabilities in adaptive
>>> authentication to inject\modify a claim with transformation.
>>>
>> This is great.. Is there any sample or javascript api to manipulate
>> cliams ?
>>
>>>
>>> For the pure provisioning flows, +1 to come up with some mechanism.
>>>
>>> Thanks,
>>>
>>> On Wed, Feb 20, 2019 at 1:29 PM Ruwan Abeykoon <ruw...@wso2.com> wrote:
>>>
>>>> +1 for the technical solution.
>>>>
>>>>
>>>> Cheers,
>>>> Ruwan
>>>>
>>>> On Wed, Feb 20, 2019 at 1:17 PM Johann Nallathamby <joh...@wso2.com>
>>>> wrote:
>>>>
>>>>> IAM Team,
>>>>>
>>>>> I don't intend to talk about the importance of the claim
>>>>> transformations during provisioning use cases. Currently to support such
>>>>> cases, we propose to write custom provisioning connectors or JIT
>>>>> provisioning handlers. However, I was thinking it would be slick to have a
>>>>> scripting editor similar to the adaptive authentication one we have, so
>>>>> that users can code their transformations in java script before doing the
>>>>> provisioning.
>>>>>
>>>>> Most of these requirements probably could be satisfied if we bring in
>>>>> a micro service/ESB and transform the data that is received by IS. But 
>>>>> then,
>>>>> 1. Deployment gets complex
>>>>> 2. Claim transformation requirements are common, so it makes sense to
>>>>> have the capability within IS itself.
>>>>>
>>>>> Is this something that we can prioritize as an intern project?
>>>>>
>>>>> Your thoughts are appreciated.
>>>>>
>>>>> Thanks & Regards,
>>>>> Johann.
>>>>>
>>>>> --
>>>>> *Johann Dilantha Nallathamby* | Associate Director/Solutions
>>>>> Architect | WSO2 Inc.
>>>>> (m) +94 (77) 7776950 | (w) +94 (11) 2145345 | (e) joh...@wso2.com
>>>>> [image: Signature.jpg]
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> Regards,
>>>
>>>
>>> *Darshana Gunawardana*Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>>
>>> *E-mail: darsh...@wso2.com <darsh...@wso2.com>*
>>> *Mobile: +94718566859*Lean . Enterprise . Middleware
>>> _______________________________________________
>>> Architecture mailing list
>>> Architecture@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>
>>
>> --
>> Gayan
>>
>
>
> --
>
> *Ruwan Abeykoon*
> *Associate Director/Architect**,*
> *WSO2, Inc. http://wso2.com <https://wso2.com/signature> *
> *lean.enterprise.middleware.*
>
>

-- 
Gayan
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to