Re: [Dev] Entitlement Mediator is Content Aware

2017-10-12 Thread Isuru Udana
Hi IsuruH,

I think it shouldn't be content-aware. XACML request generation does not
depend on the incoming request message payload.

Thanks.

On Fri, Oct 13, 2017 at 11:28 AM, Abimaran Kugathasan 
wrote:

> Because it has to create XACML request for PDP based on the content and
> process response.
>
>
>
> On Fri, Oct 13, 2017 at 6:03 AM, Isuru Haththotuwa 
> wrote:
>
>> Hi,
>>
>> It seems $subject [1]. Any specific reason?
>>
>> [1]. https://github.com/wso2/carbon-mediation/blob/master/compone
>> nts/mediators/entitlement/org.wso2.carbon.identity.
>> entitlement.mediator/src/main/java/org/wso2/carbon/identity/
>> entitlement/mediator/EntitlementMediator.java
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048 <+94%2071%20635%208048>* *
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <077%20392%202820>
>
> 
> 
>   
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Isuru Udana*
Senior Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Entitlement Mediator is Content Aware

2017-10-12 Thread Abimaran Kugathasan
Because it has to create XACML request for PDP based on the content and
process response.



On Fri, Oct 13, 2017 at 6:03 AM, Isuru Haththotuwa  wrote:

> Hi,
>
> It seems $subject [1]. Any specific reason?
>
> [1]. https://github.com/wso2/carbon-mediation/blob/master/
> components/mediators/entitlement/org.wso2.carbon.
> identity.entitlement.mediator/src/main/java/org/wso2/carbon/
> identity/entitlement/mediator/EntitlementMediator.java
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048 <+94%2071%20635%208048>* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


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


[Dev] Entitlement Mediator is Content Aware

2017-10-12 Thread Isuru Haththotuwa
Hi,

It seems $subject [1]. Any specific reason?

[1].
https://github.com/wso2/carbon-mediation/blob/master/components/mediators/entitlement/org.wso2.carbon.identity.entitlement.mediator/src/main/java/org/wso2/carbon/identity/entitlement/mediator/EntitlementMediator.java

-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Amazon Lambda project help

2017-10-12 Thread Malaka Silva
Hi Miyuru,

Seems from proxy there is no out call to lamda. Do you have a class
mediator (Java code) running before making the callout. Issue seems to be
happening inside that.

On Thu, Oct 12, 2017 at 10:57 AM, Miyuru Madusanka <
miyurumadusa...@yahoo.com> wrote:

> Hi,
> I am working on the amazon lambda connector project and I was encountered
> the following problem. The requests send with "POST" are working fine but I
> need to send "GET/DELETE/PUT" also. for that I change the code like this in
> the custom proxy [1], in the init.xml[2] ,deleteAlias templete [3]. But
> when I run the custom proxy in postman I get the following error in
> wso2server shell [3]. The request I need to send is [5]. The related images
> are attached below. Please help because I am unable to visit Jaffna office
> from Vavuniya due to some mid examinations during these weeks.
>



-- 

Best Regards,

Malaka Silva
Associate Director / Architect
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Siddhi CEP

2017-10-12 Thread Sriskandarajah Suhothayan
You can also try Siddhi Editor that's shipped with WSO2 Stream Processor [1]
You can also download that here [2]

[1]https://docs.wso2.com/display/SP400/Quick+Start+Guide
[2]https://github.com/wso2/product-sp/releases

On Mon, Sep 11, 2017 at 8:36 AM, Charini Nanayakkara 
wrote:

> Hi Hasara,
>
> You can use any IDE such as Intellij, Eclipse, etc. No such plugins are
> needed to build the source code. Just checkout the code and play around
> with the test cases to get a basic idea.
>
> Best Regards
> Charini
>
>
>
> On Sun, Sep 10, 2017 at 9:18 PM, Hasara Maithree <
> hasaramaithreedesi...@gmail.com> wrote:
>
>> Hi,
>>
>> After having a look at the documentation of siddhi and creating a sample
>> app as described in the quick start guide, I thought of going through the
>> siddhi source code. I downloaded v4.0.0-M62 zip file from
>> https://github.com/wso2/siddhi/releases/tag/v4.0.0-M62 . Which IDE
>> should I use in order to run the source code ? If I use IDE like Intellij
>> do I have to add plugins for siddhi? Please clarify this matter.
>>
>> Thank you.
>>
>> On Wed, Sep 6, 2017 at 12:33 AM, Damith Wickramasinghe 
>> wrote:
>>
>>> Hi Hasara,
>>>
>>> Documentation is still in working progress. It need to be re-factored.
>>> In Editor mode the default saving location is the workspace folder thus not
>>> letting you to select a location to be saved . Also in Editor mode you can
>>> create any siddhi app and try it out using our event simulator , debugger
>>> which are inbuilt in the editor. Once you tested your siddhi app you can
>>> copy it to siddhi-files folder and start the SP in worker mode.(worker.sh)
>>> and try to publish events according to source you have defined. The error
>>> you have mentioned in the editor should not be appearing. We will look into
>>> it.
>>>
>>> Regards,
>>> Damith
>>>
>>>
>>> On Wed, Sep 6, 2017 at 12:00 AM, Hasara Maithree <
>>> hasaramaithreedesi...@gmail.com> wrote:
>>>
 Hi,

 In documentation of quick start guide, it is mentioned that
 SmartHomePlan.siddhi should be saved in /deployment/siddhi
 -files.But by default, it is saved in /deployment/workspace.So
 the final result of the query ends with error. But when I pasted it in
 siddhi-files folder, it works fine. I think there is an issue with the
 saving location because, in SP there is no option to select location to
 save, but by default it is saved to workspace.


 ​



 Thank you



 On Tue, Sep 5, 2017 at 10:55 PM, Hasara Maithree <
 hasaramaithreedesi...@gmail.com> wrote:

> Hi,
>
> I got it.
>
> Thank you.
>
> On Tue, Sep 5, 2017 at 10:32 PM, Minudika Malshan 
> wrote:
>
>> Hi,
>>
>> Sorry. A little correction. 4.0.0-M10 is the latest release [1]
>> [1] https://github.com/wso2/product-sp/releases/tag/v4.0.0-M10
>>
>> BR
>>
>>
>>
>> On Tue, Sep 5, 2017 at 10:28 PM, Minudika Malshan 
>> wrote:
>>
>>> Hi Hasara,
>>>
>>> Only milestone versions of *WSO2 Stream Processor *have been
>>> released yet. And yes, 4.0.0-M9 is the latest one.
>>> Note that the capabilities of WSO2 CEP and DAS are now provided
>>> thorugh WSO2 Stream Processor.
>>>
>>> BR
>>>
>>> On Tue, Sep 5, 2017 at 10:15 PM, Hasara Maithree <
>>> hasaramaithreedesi...@gmail.com> wrote:
>>>
 Hi Minudika,

 I think I figured out my problem. I downloaded the wso2 SP 4.0.0-M9
 from the link https://github.com/wso2/product-sp
 /releases/download/v4.0.0-M9/wso2sp-4.0.0-M9.zip .
 I assume this is the latest stable version of wso2 SP. I will try
 creating simple siddhi apps in order to familiarize with the
 environment.

 Thank you

 On Tue, Sep 5, 2017 at 9:23 PM, Hasara Maithree <
 hasaramaithreedesi...@gmail.com> wrote:

> Hi Minudika,
>
> Thank you very much for your reply. I have a small thing to
> clarify. Is WSO2 stream processor referred as WSO2 CEP (Complex Event
> Processor) or are they different?
> When I went through the product list, I couldn't find WSO2 SP. And
> the link given by you [2] led me to downlowad WSO2 data analytics 
> server.
> Can you please sort out this confusion ?
>
> Thank you
>
> On Mon, Sep 4, 2017 at 7:14 PM, Hasara Maithree <
> hasaramaithreedesi...@gmail.com> wrote:
>
>> Hi Minudika,
>> Thank you very much for your reply. I have a small thing to
>> clarify. Is WSO2 stream processor referred as WSO2 CEP (Complex Event
>> Processor) or are they different?
>> When I went through the product list, I couldn't find WSO2 SP.
>> And the link given by you [2] led me to downlowad WSO2 data analytics
>> server. Can you please sort out th

Re: [Dev] Is there a CryptoUtil available in C5?

2017-10-12 Thread Subhashinie Koshalya
Hi all,

Is there a way to know the maximum length of a string that can be encrypted
using a key in wso2carbon.jks [1] or
securevault.jks [2] while using DefaultSecretRepository.java [3].

I have a RS256 encoded JWT which is about 900 characters long. When
encrypting it by storing it in secrets.properties, it does not give a
cipherText. This is all i get,

​
Is it because of the length or are there any other constraints?
Also is there a better way that I could store my token securely?

[1]
https://github.com/wso2/product-apim/blob/master/product/carbon-home/resources/security/wso2carbon.jks
[2]
https://github.com/wso2/carbon-secvault/blob/master/features/org.wso2.carbon.secvault.feature/resources/resources/security/securevault.jks
[3]
https://github.com/wso2/carbon-secvault/blob/master/components/org.wso2.carbon.secvault/src/main/java/org/wso2/carbon/secvault/repository/DefaultSecretRepository.java

Thanks and regards,
Subhashinie
Intern | Software Engineering
WSO2, Inc. : http://wso2.com

Email : subhashi...@wso2.com

On Mon, Oct 9, 2017 at 5:13 PM, Subhashinie Koshalya 
wrote:

> Hi Thusitha and Niranjan,
>
> The requirement is to encrypt a JWT without having to store another
> password or a key. Thanks a lot for the links. They seem to solve the
> problem. I'll get back to you if it did not come out as expected.
>
> Thanks and regards,
>
> Subhashinie
> Intern | Software Engineering
> WSO2, Inc. : http://wso2.com
>
> Email : subhashi...@wso2.com
>
> On Mon, Oct 9, 2017 at 3:35 PM, Niranjan Karunanandham 
> wrote:
>
>> Hi Subhashinie,
>>
>> In C5, the secure vault component is moved to a separate repo [1]. In
>> order to encrypt your value, you need to get an instance of the secure
>> vault and call the encrypt method in [2].
>>
>> [1] - https://github.com/wso2/carbon-secvault
>> [2] - https://github.com/wso2/carbon-secvault/blob/master/tools/
>> org.wso2.carbon.secvault.ciphertool/src/main/java/org/
>> wso2/carbon/secvault/ciphertool/CipherTool.java
>>
>> Regards,
>> Nira
>>
>> On Mon, Oct 9, 2017 at 3:32 PM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Subhashinie,
>>>
>>> C5 doesn't contain that particular class. Could you tell us what do you
>>> wanna achieve?
>>> If you want to encrypt/decrypt texts, you can use the secvault. You can
>>> refer [1] if that is your intention.
>>>
>>> [1] https://github.com/wso2/carbon-secvault/blob/master/samp
>>> les/org.wso2.carbon.secvault.samples.standalone/src/main/jav
>>> a/org/wso2/carbon/secvault/samples/standalone/Application.java
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Mon, Oct 9, 2017 at 3:25 PM, Subhashinie Koshalya <
>>> subhashi...@wso2.com> wrote:
>>>
 Hi all,

 I am supposed to store a token securely. Is there something similar to
 CryptoUtil [1] available in C5?

 [1] https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.ws
 o2.carbon.core/src/main/java/org/wso2/carbon/core/util/CryptoUtil.java
 

 Thanks and regards,
 Subhashinie
 Intern | Software Engineering
 WSO2, Inc. : http://wso2.com

 Email : subhashi...@wso2.com

>>>
>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809 <+94%2071%20275%206809>
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>> 
>>>
>>>
>>
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev