Re: [Dev] [DEV][APIM][C5] - Caching requirement for OAuth2 protected microservices

2017-02-24 Thread Uvindra Dias Jayasinha
Its great if we can have some feedback about this, active C5 development
needs this moving forward.

@Azeez and @Kishanthan, do we have any preferences?

On 24 February 2017 at 13:12, Sagara Gunathunga  wrote:

>
>
>
>
>
> On Fri, Feb 24, 2017 at 7:28 AM, Uvindra Dias Jayasinha 
> wrote:
>
>> This will function like any of the local container classes we
>> use(example: HashMap). I think its fine to use one of the available
>> implementations(such as Guava since we already have it as a dependency) for
>> this. Testing will reveal its suitability but I don't anticipate any issues
>> since this is not as complicated as a distributed cache.
>>
>
> It's ok to pick one of the local cache implementations but make sure you
> discuss with others without limiting to your own use case and pick a good
> one so that others can use the same for their local caching requirements,
> it's really ugly to use several local caching F/W across the platform other
> than really exceptional cases.
>
> Thanks !
>
>>
>> On 16 February 2017 at 22:45, Maduranga Siriwardena 
>> wrote:
>>
>>> Hi Rajith,
>>>
>>> I think this is a generic requirement for all the C5 based products
>>> rather than for this specific use case. So we need to come up with a
>>> solution that can be used across the platform.
>>>
>>> Thanks,
>>>
>>> On Thu, Feb 16, 2017 at 12:37 AM, Rajith Roshan 
>>> wrote:
>>>
 Hi all,

 In C5 API Manager  back end REST APIs (micro services) are protected
 using oauth2 token. Every time request comes to micro services, interceptor
 will validate the access token sent in the authorization header of the
 request. In order to validate the token we need to do a introspection call
 to the key manager.  We can not do this introspection call to the key
 manager for each and every request. We need a caching layer at the
 interceptor level in order to cache the access tokens.

 We are going to use local cache with small cache timeout periods for
 this. What are the best caching systems we can use for this.
 We can use either JCache (javax.cache), google guava cache[1] which are
 specially used as local caches. "Memcached" [2] is also another option but
 mostly used in distributed systems.

 [1] - https://github.com/google/guava/wiki/CachesExplained
 [2] - https://memcached.org/
 --
 Rajith Roshan
 Software Engineer, WSO2 Inc.
 Mobile: +94-72-642-8350 <%2B94-71-554-8430>

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


>>>
>>>
>>> --
>>> Maduranga Siriwardena
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com/
>>>
>>> Email: madura...@wso2.com
>>> Mobile: +94718990591 <+94%2071%20899%200591>
>>> Blog: http://madurangasblogs.blogspot.com/
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>> Uvindra
>>
>> Mobile: 33962
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


-- 
Regards,
Uvindra

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


Re: [Dev] GSoC 2017

2017-02-24 Thread Tishan Dahanayakage
Hi Vihanga,

Thanks for the research and samples. Good progress!!  I also read a bit
about Xtext. It is also using Antlr internally. But according to the
material I came across we cannot convert antlr grammar automatically to
Xtext. So since Siddhi grammar is based on antlr and we are not going to
move the grammar to Xtext can you please try the same with a simple Antlr
v4 grammar file.

Thanks
/Tishan

On Fri, Feb 24, 2017 at 11:59 AM, Vihanga Liyanage <
vihangaliyanage...@gmail.com> wrote:

> Hi all,
>
> I hope you read my reply to the other mail tread, "Eclipse plugin for
> Siddhi". As I said in there, we can use same Xtext[1] framework to develop
> Siddhi plugins for both eclipse and Intellij IDEA editors. Here are my
> example idea plugin project details. You can find the code in here[2].
>
> This is the sample xtext grammar I used.
>
>
>
> Syntax highlighting and error detection.
>
>
> ​
> Code completion
>
>
> ​
> I'd love to know your ideas about this.
>
> [1] https://eclipse.org/Xtext/index.html
> [2] https://github.com/vihanga-liyanage/IDEA-Plug-Ins
>
> Regards,
> 
>
> Vihanga Liyanage,
> Undergraduate,
> University of Colombo School of Computing.
> M: +94 71 012 4103 <+94%2071%20012%204103>
>
> 
> 
> 
>
> On Mon, Feb 13, 2017 at 11:50 AM, Vihanga Liyanage <
> vihangaliyanage...@gmail.com> wrote:
>
>> Thank you for your reply. I'll look into those things and will get back
>> to you.
>>
>> Regards
>>
>>
>> On Feb 13, 2017 10:35 AM, "Tishan Dahanayakage"  wrote:
>>
>> Hi Vihanga,
>>
>> Thanks for your interest in WSO2 and this project. I have improved idea
>> page with more details. I would suggest you to start off with getting bit
>> familiar with Siddhi grammar. Then you can look into idea plugin creation
>> to support different languages. Then you can look into antlr based
>> programming languages and how antlr can be used to generate parsers,
>> lexers, etc. Above will provide you enough context information on how to
>> proceed through with the idea.
>> Feel free to revert back if you don't understand the requirement or have
>> any other clarification.
>>
>> Thanks,
>> Tishan
>>
>> On Sat, Feb 11, 2017 at 12:54 PM, Vihanga Liyanage <
>> vihangaliyanage...@gmail.com> wrote:
>>
>>> Hi Tishan,
>>>
>>> I read through your project proposals for GSoC 2017 and particularly
>>> interested in the project Proposal 4: Idea Plugin for Siddhi
>>> 
>>> , which lists you as the possible mentor. I'd really like to work on
>>> this idea further, hoping to get selected for GSoC and complete the project
>>> at the end.
>>> It'll be really great if you could point me in a direction where I could
>>> do some more background work on this.
>>>
>>> Best Regards,
>>> Vihanga Liyanage,
>>> Undergraduate,
>>> University of Colombo School of Computing.
>>> M: +94 71 012 4103 <+94%2071%20012%204103>
>>>
>>> 
>>> 
>>> 
>>>
>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile:+94 716481328 <071%20648%201328>
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>>
>>
>


-- 
Tishan Dahanayakage
Senior Software Engineer
WSO2, Inc.
Mobile:+94 716481328

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
re-transmit, disseminate, or otherwise use the information contained in
this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Chanaka Cooray

2017-02-24 Thread Niranjan Karunanandham
Hi All,

It's my pleasure to welcome Chanaka Cooray as a WSO2 Committer.

Chanaka has been a valuable contributor to the Platform Team. In
recognition of his contribution, dedication and commitment he has been
voted as a WSO2 committer.

Chanaka, welcome aboard and keep up the good work!

Regards,
Nira

-- 


*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


Re: [Dev] WSO2 Committers += Chanaka Cooray

2017-02-24 Thread Nisala Nanayakkara
Congratz Chanaka :D

On Fri, Feb 24, 2017 at 3:36 PM, Niranjan Karunanandham 
wrote:

> Hi All,
>
> It's my pleasure to welcome Chanaka Cooray as a WSO2 Committer.
>
> Chanaka has been a valuable contributor to the Platform Team. In
> recognition of his contribution, dedication and commitment he has been
> voted as a WSO2 committer.
>
> Chanaka, welcome aboard and keep up the good work!
>
> Regards,
> Nira
>
> --
>
>
> *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
>
>


-- 
*Nisala Niroshana Nanayakkara,*
Software Engineer
Mobile:(+94)717600022
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 - Real-Time Machine Learning Toolkit for Siddhi

2017-02-24 Thread Satyarth Praveen
Hi,
I was going through the WSO2 CEP Getting Started guide. I'm unable to plot
the live stream graph in the dashboard.
I successfully created the input stream and output stream. I successfully
created the gadget and the dashboard and I published the data using curl
command in terminal, but no statistical graph shows up in the dashboard.

Any possible help regarding this please?

Thank you

Regards,
Satyarth Praveen

On 22-Feb-2017 10:38 PM, "Satyarth Praveen"  wrote:

> Great. Thanks.
>
> Regards,
> Satyarth Praveen
>
> On Wed, Feb 22, 2017 at 10:31 PM, Nirmal Fernando  wrote:
>
>> Yes, I think you're good.
>>
>> On Wed, Feb 22, 2017 at 10:30 PM, Satyarth Praveen > > wrote:
>>
>>> Oh ok.
>>> So as per the details, I am eligible, right?
>>>
>>> Regards,
>>> Satyarth Praveen
>>>
>>> On Wed, Feb 22, 2017 at 10:12 PM, Nirmal Fernando 
>>> wrote:
>>>
 Thanks, Satyarth. It's to verify your eligibility as per the GSoC
 rules: https://summerofcode.withgoogle.com/rules/

 On Wed, Feb 22, 2017 at 10:09 PM, Satyarth Praveen <
 satyarth...@gmail.com> wrote:

> Hi Nirmal,
> My exams and project submissions will get over by the end of May.
> And tentatively, the final results will be out by the end of June or
> by July.
>
> If it's not an issue, may I know the requirement of this detail,
> please?
>
> Thanks
>
> Regards,
> Satyarth Praveen
>
> On Wed, Feb 22, 2017 at 9:58 PM, Nirmal Fernando 
> wrote:
>
>> [Looping the mentors]
>>
>> Hi Satyarth,
>>
>> Thanks for your interest in the project. Mentors would get back to
>> you with more details. Would you mind letting us know the date you will 
>> be
>> passed out?
>>
>> On Mon, Feb 20, 2017 at 12:59 AM, Satyarth Praveen <
>> satyarth...@gmail.com> wrote:
>>
>>> Hello everyone,
>>>
>>> I'm Satyarth Praveen, a 4th-year undergraduate student from Delhi
>>> Technological University (formerly DCE), New Delhi. I'm interested in
>>> implementing the *Real-Time Machine Learning Toolkit for Siddhi
>>> *
>>>  which is the Proposal No. 24 for WSO2 Google Summer of Code 2017
>>> project as mentioned here
>>> 
>>> .
>>> I'm well-versed with Java and have multiple projects regarding
>>> machine learning including some research projects and an IEEE published
>>> research paper. I would be excited to work on the mentioned project. It
>>> would be great if someone could provide me with the additional details 
>>> for
>>> getting started with the project.
>>>
>>> Thank you.
>>>
>>> Best Regards,
>>> Satyarth Praveen
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Technical Lead - Analytics Team, WSO2 Inc.
>> Mobile: +94715779733 <+94%2071%20577%209733>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>


 --

 Thanks & regards,
 Nirmal

 Technical Lead - Analytics Team, WSO2 Inc.
 Mobile: +94715779733 <+94%2071%20577%209733>
 Blog: http://nirmalfdo.blogspot.com/



>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Technical Lead - Analytics Team, WSO2 Inc.
>> Mobile: +94715779733 <+94%2071%20577%209733>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Chanaka Cooray

2017-02-24 Thread Menaka Jayawardena
Congratz Chanaka!

On Fri, Feb 24, 2017 at 3:37 PM, Nisala Nanayakkara  wrote:

> Congratz Chanaka :D
>
> On Fri, Feb 24, 2017 at 3:36 PM, Niranjan Karunanandham  > wrote:
>
>> Hi All,
>>
>> It's my pleasure to welcome Chanaka Cooray as a WSO2 Committer.
>>
>> Chanaka has been a valuable contributor to the Platform Team. In
>> recognition of his contribution, dedication and commitment he has been
>> voted as a WSO2 committer.
>>
>> Chanaka, welcome aboard and keep up the good work!
>>
>> Regards,
>> Nira
>>
>> --
>>
>>
>> *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
>>
>>
>
>
> --
> *Nisala Niroshana Nanayakkara,*
> Software Engineer
> Mobile:(+94)717600022
> WSO2 Inc., http://wso2.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Menaka Jayawardena*
*Software Engineer - WSO2 Inc*
*Tel : 071 350 5470*
*LinkedIn: https://lk.linkedin.com/in/menakajayawardena
*
*Blog: https://menakamadushanka.wordpress.com/
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Chanaka Cooray

2017-02-24 Thread Vidura Nanayakkara
Congratulations Chanaka :)

On Fri, Feb 24, 2017 at 5:30 PM, Menaka Jayawardena  wrote:

> Congratz Chanaka!
>
> On Fri, Feb 24, 2017 at 3:37 PM, Nisala Nanayakkara 
> wrote:
>
>> Congratz Chanaka :D
>>
>> On Fri, Feb 24, 2017 at 3:36 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> It's my pleasure to welcome Chanaka Cooray as a WSO2 Committer.
>>>
>>> Chanaka has been a valuable contributor to the Platform Team. In
>>> recognition of his contribution, dedication and commitment he has been
>>> voted as a WSO2 committer.
>>>
>>> Chanaka, welcome aboard and keep up the good work!
>>>
>>> Regards,
>>> Nira
>>>
>>> --
>>>
>>>
>>> *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
>>>
>>>
>>
>>
>> --
>> *Nisala Niroshana Nanayakkara,*
>> Software Engineer
>> Mobile:(+94)717600022
>> WSO2 Inc., http://wso2.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Menaka Jayawardena*
> *Software Engineer - WSO2 Inc*
> *Tel : 071 350 5470*
> *LinkedIn: https://lk.linkedin.com/in/menakajayawardena
> *
> *Blog: https://menakamadushanka.wordpress.com/
> *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

*Vidura Nanayakkara*
Software Engineer

Email : vidu...@wso2.com
Mobile : +94 (0) 717 919277
Web : http://wso2.com
Blog : https://medium.com/@viduran 
Twitter : http://twitter.com/viduranana
LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Chanaka Cooray

2017-02-24 Thread Shan Mahanama
Congrats Chanaka :)

On Fri, Feb 24, 2017 at 5:34 PM, Vidura Nanayakkara 
wrote:

> Congratulations Chanaka :)
>
> On Fri, Feb 24, 2017 at 5:30 PM, Menaka Jayawardena 
> wrote:
>
>> Congratz Chanaka!
>>
>> On Fri, Feb 24, 2017 at 3:37 PM, Nisala Nanayakkara 
>> wrote:
>>
>>> Congratz Chanaka :D
>>>
>>> On Fri, Feb 24, 2017 at 3:36 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi All,

 It's my pleasure to welcome Chanaka Cooray as a WSO2 Committer.

 Chanaka has been a valuable contributor to the Platform Team. In
 recognition of his contribution, dedication and commitment he has been
 voted as a WSO2 committer.

 Chanaka, welcome aboard and keep up the good work!

 Regards,
 Nira

 --


 *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


>>>
>>>
>>> --
>>> *Nisala Niroshana Nanayakkara,*
>>> Software Engineer
>>> Mobile:(+94)717600022
>>> WSO2 Inc., http://wso2.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Menaka Jayawardena*
>> *Software Engineer - WSO2 Inc*
>> *Tel : 071 350 5470*
>> *LinkedIn: https://lk.linkedin.com/in/menakajayawardena
>> *
>> *Blog: https://menakamadushanka.wordpress.com/
>> *
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> *Vidura Nanayakkara*
> Software Engineer
>
> Email : vidu...@wso2.com
> Mobile : +94 (0) 717 919277 <+94%2071%20791%209277>
> Web : http://wso2.com
> Blog : https://medium.com/@viduran 
> Twitter : http://twitter.com/viduranana
> LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shan Mahanama

Software Engineer, WSO2 Inc. http://wso2.com

Email: sh...@wso2.com
Mobile: +94 71 2000 498
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2017 - Test Automation Tool

2017-02-24 Thread Nuwan Silva
Adding DharshanaW + Inthiquab

On Thu, Feb 23, 2017 at 8:20 PM, Uditha Kasun 
wrote:

> Hi All,
>
> I am Uditha Kasun Senavirathna, a 3rd year Software
> Engineering undergraduate student from Sri Lanka Institute Of Information
> Technology. I am interested in implementing your GSOC 2017 proposal for  a
> Test Automation Tool. I currently have some experience with test
> automation using frameworks like Selenium, Sikuli using java. It would be
> much appreciated if you could provide more information regarding the test
> automation tool to be implemented.
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Nuwan Silva*
*Senior Software Engineer*
Mobile: +9477 980 4543

WSO2 Inc.
lean . enterprise . middlewear.
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2017 - Test Automation Tool

2017-02-24 Thread Dharshana Warusavitharana
Hi Uditha,

Thank you for the interest in this project.

This project mainly focuses on automatic test case generation based on
given instruction set. In this case, its implementation is on steps
provided in a document.

You have to use NLP to derive a common medium something like XML/JSON to
interpret steps in an understandable format and derive test cases based on
that derivation.

We are mainly focused on  Java, TestNG and maven based test cases and
ability to evaluate documented steps against the same type of deployment
(may be docker) and verify whether the document is still valid or not.

There is a old GSOC project dome by Ruskshan for NLP and test case
generation based on WSO2 admin services [1].
This is just high level of the project , if you have any more issues please
feel free to ask.

[1]. https://github.com/ruks/Automated-test-case-generation-tool/tree/
991e6e21927288d237c0a8d1985b7d2787f91a9b/Auto-TAF

Thank you,
Dharshana

On Fri, Feb 24, 2017 at 7:57 PM, Nuwan Silva  wrote:

> Adding DharshanaW + Inthiquab
>
> On Thu, Feb 23, 2017 at 8:20 PM, Uditha Kasun 
> wrote:
>
>> Hi All,
>>
>> I am Uditha Kasun Senavirathna, a 3rd year Software
>> Engineering undergraduate student from Sri Lanka Institute Of Information
>> Technology. I am interested in implementing your GSOC 2017 proposal for  a
>> Test Automation Tool. I currently have some experience with test
>> automation using frameworks like Selenium, Sikuli using java. It would
>> be much appreciated if you could provide more information regarding the
>> test automation tool to be implemented.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
> *Nuwan Silva*
> *Senior Software Engineer*
> Mobile: +9477 980 4543 <077%20980%204543>
>
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://www.wso2.com
>



-- 

Dharshana Warusavitharana
Associate Technical Lead
WSO2 Inc. http://wso2.com
email : dharsha...@wso2.com 
Tel  : +94 11 214 5345
Fax :+94 11 2145300
cell : +94770342233
blog : http://dharshanaw.blogspot.com

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


Re: [Dev] [DEV][APIM][C5] - Caching requirement for OAuth2 protected microservices

2017-02-24 Thread Harsha Thirimanna
We also did some poc using Memcache and it is like a centralized caching
system rather than distributing cache among the nodes. And it is released
only very light weight engine and we have to implement our own way to
manage it.
Anyway, don't you guys have to replicate loca cache among the other node in
real time ? Because in that case we have to go either centralize or some
notification based local cache synchronizer mechanism. Otherwise we have to
find another solution for IS. Because we have that requirement. I think we
can try out the Redis also if we think about the the cluster. Anyway we
can't think about a distributed cache like Hazelecast again because of it
is giving lot of issues.

*Harsha Thirimanna*
*Associate Tech Lead | WSO2*

Email: hars...@wso2.com
Mob: +94715186770
Blog: http://harshathirimanna.blogspot.com/
Twitter: http://twitter.com/harshathirimann
Linked-In: linked-in:
http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122


On Fri, Feb 24, 2017 at 1:45 PM, Uvindra Dias Jayasinha 
wrote:

> Its great if we can have some feedback about this, active C5 development
> needs this moving forward.
>
> @Azeez and @Kishanthan, do we have any preferences?
>
> On 24 February 2017 at 13:12, Sagara Gunathunga  wrote:
>
>>
>>
>>
>>
>>
>> On Fri, Feb 24, 2017 at 7:28 AM, Uvindra Dias Jayasinha > > wrote:
>>
>>> This will function like any of the local container classes we
>>> use(example: HashMap). I think its fine to use one of the available
>>> implementations(such as Guava since we already have it as a dependency) for
>>> this. Testing will reveal its suitability but I don't anticipate any issues
>>> since this is not as complicated as a distributed cache.
>>>
>>
>> It's ok to pick one of the local cache implementations but make sure you
>> discuss with others without limiting to your own use case and pick a good
>> one so that others can use the same for their local caching requirements,
>> it's really ugly to use several local caching F/W across the platform other
>> than really exceptional cases.
>>
>> Thanks !
>>
>>>
>>> On 16 February 2017 at 22:45, Maduranga Siriwardena 
>>> wrote:
>>>
 Hi Rajith,

 I think this is a generic requirement for all the C5 based products
 rather than for this specific use case. So we need to come up with a
 solution that can be used across the platform.

 Thanks,

 On Thu, Feb 16, 2017 at 12:37 AM, Rajith Roshan 
 wrote:

> Hi all,
>
> In C5 API Manager  back end REST APIs (micro services) are protected
> using oauth2 token. Every time request comes to micro services, 
> interceptor
> will validate the access token sent in the authorization header of the
> request. In order to validate the token we need to do a introspection call
> to the key manager.  We can not do this introspection call to the key
> manager for each and every request. We need a caching layer at the
> interceptor level in order to cache the access tokens.
>
> We are going to use local cache with small cache timeout periods for
> this. What are the best caching systems we can use for this.
> We can use either JCache (javax.cache), google guava cache[1] which
> are specially used as local caches. "Memcached" [2] is also another option
> but mostly used in distributed systems.
>
> [1] - https://github.com/google/guava/wiki/CachesExplained
> [2] - https://memcached.org/
> --
> Rajith Roshan
> Software Engineer, WSO2 Inc.
> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Maduranga Siriwardena
 Software Engineer
 WSO2 Inc; http://wso2.com/

 Email: madura...@wso2.com
 Mobile: +94718990591 <+94%2071%20899%200591>
 Blog: http://madurangasblogs.blogspot.com/
 

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


>>>
>>>
>>> --
>>> Regards,
>>> Uvindra
>>>
>>> Mobile: 33962
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> Regards,
> Uvindra
>
> Mobile: 33962
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APIM][C5] - Caching requirement for OAuth2 protected microservices

2017-02-24 Thread Rajith Roshan
Hi all,
Since distributed caches are no longer used in C5, we thought of using this
as a local cache. If the token is missing in the cache then it will be
validated using the key manager. So having this as a local cache is enough
for our scenario.
But the only issue we have is if token is revoked from one node, then
invalid token can be there in the cache of the other node. We need a way to
handle that scenario maybe using notification based cache synchorinization,
JMS or using small validity period for tokens.
Since IS have a requirement to replicate local cache in real time, Its
better to use a platform wise caching mechanism with such capability. WDYT?

Thanks!
Rajith

On Fri, Feb 24, 2017 at 10:22 PM, Harsha Thirimanna 
wrote:

> We also did some poc using Memcache and it is like a centralized caching
> system rather than distributing cache among the nodes. And it is released
> only very light weight engine and we have to implement our own way to
> manage it.
> Anyway, don't you guys have to replicate loca cache among the other node
> in real time ? Because in that case we have to go either centralize or some
> notification based local cache synchronizer mechanism. Otherwise we have to
> find another solution for IS. Because we have that requirement. I think we
> can try out the Redis also if we think about the the cluster. Anyway we
> can't think about a distributed cache like Hazelecast again because of it
> is giving lot of issues.
>
> *Harsha Thirimanna*
> *Associate Tech Lead | WSO2*
>
> Email: hars...@wso2.com
> Mob: +94715186770 <+94%2071%20518%206770>
> Blog: http://harshathirimanna.blogspot.com/
> Twitter: http://twitter.com/harshathirimann
> Linked-In: linked-in: http://www.linkedin.com/pub/
> harsha-thirimanna/10/ab8/122
> 
>
> On Fri, Feb 24, 2017 at 1:45 PM, Uvindra Dias Jayasinha 
> wrote:
>
>> Its great if we can have some feedback about this, active C5 development
>> needs this moving forward.
>>
>> @Azeez and @Kishanthan, do we have any preferences?
>>
>> On 24 February 2017 at 13:12, Sagara Gunathunga  wrote:
>>
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Feb 24, 2017 at 7:28 AM, Uvindra Dias Jayasinha <
>>> uvin...@wso2.com> wrote:
>>>
 This will function like any of the local container classes we
 use(example: HashMap). I think its fine to use one of the available
 implementations(such as Guava since we already have it as a dependency) for
 this. Testing will reveal its suitability but I don't anticipate any issues
 since this is not as complicated as a distributed cache.

>>>
>>> It's ok to pick one of the local cache implementations but make sure you
>>> discuss with others without limiting to your own use case and pick a good
>>> one so that others can use the same for their local caching requirements,
>>> it's really ugly to use several local caching F/W across the platform other
>>> than really exceptional cases.
>>>
>>> Thanks !
>>>

 On 16 February 2017 at 22:45, Maduranga Siriwardena >>> > wrote:

> Hi Rajith,
>
> I think this is a generic requirement for all the C5 based products
> rather than for this specific use case. So we need to come up with a
> solution that can be used across the platform.
>
> Thanks,
>
> On Thu, Feb 16, 2017 at 12:37 AM, Rajith Roshan 
> wrote:
>
>> Hi all,
>>
>> In C5 API Manager  back end REST APIs (micro services) are protected
>> using oauth2 token. Every time request comes to micro services, 
>> interceptor
>> will validate the access token sent in the authorization header of the
>> request. In order to validate the token we need to do a introspection 
>> call
>> to the key manager.  We can not do this introspection call to the key
>> manager for each and every request. We need a caching layer at the
>> interceptor level in order to cache the access tokens.
>>
>> We are going to use local cache with small cache timeout periods for
>> this. What are the best caching systems we can use for this.
>> We can use either JCache (javax.cache), google guava cache[1] which
>> are specially used as local caches. "Memcached" [2] is also another 
>> option
>> but mostly used in distributed systems.
>>
>> [1] - https://github.com/google/guava/wiki/CachesExplained
>> [2] - https://memcached.org/
>> --
>> Rajith Roshan
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc; http://wso2.com/
>
> Email: madura...@wso2.com
> Mobile: +94718990591 <+94%2071%20899%200591>
> Blog: http://madurangasblogs.blogspot.com/
> 
>
> __

[Dev] WSO2 Identity Server 6.0.0-M2 Released !

2017-02-24 Thread Gayan Gunawardana
The WSO2 Identity Server team is pleased to announce the release of
Identity Server 6.0.0-M2. It is now available to download.

Distribution

   -

   https://github.com/wso2/product-is/releases/tag/v6.0.0-m2


Documentation

   -

   https://docs.wso2.com/display/IS600/WSO2+Identity+Server+Documentation


This milestone is mainly incorporated with SCIM 2.0 support for IS 6.0.0.
Following list contains all the improvements and bug fixes for IS 6.0.0
User Portal and SCIM 2.0 API.

Improvements & Bug Fixes


   -

   [IDENTITY-5641 ] - User
   Guide does not provide instruction to access user portal
   -

   [IDENTITY-5642 ] - Dead-link
   in user-guide home page
   -

   [IDENTITY-5645 ] - Shouldn't
   we use "PRIMARY" as the default selected value of "domain" dropdown in the
   login-page
   -

   [IDENTITY-5646 ] - In login
   page "domain" dropbox get disappear after an error message
   -

   [IDENTITY-5649 ] - Sign-up
   Page : if user exists display an error message and keep the user in the
   same page
   -

   [IDENTITY-5650 ] - Sign-up
   Page : allows to create same user when using same username and password
   -

   [IDENTITY-5651 ] - Are we
   allowing empty values for security questions
   -

   [IDENTITY-5652 ] - Cannot
   answer two questions from the same question set claim uri" message is not
   communicated to the user
   -

   [IDENTITY-5653 ] - Can't
   delete security questions
   -

   [IDENTITY-5654 ] - Account
   crash setting security questions after adding profile image
   -

   [IDENTITY-5655 ] -  Manage
   Profiles Doc page should cover about profile image
   -

   [IDENTITY-5657 ] - [IS DOCS]
   Provide content for Security Questions
   -

   [IDENTITY-5658 ] - [IS DOCS]
   Provide content for User Domain Configuration
   -

   [IDENTITY-5665 ] - [C5] User
   Portal :  change t helper to i18n, which is supported from UUF current
   release
   -

   [IDENTITY-5666 ] - [C5] User
   Portal :  Include onGet, onPost functions in UUF for user portal
   -

   [IDENTITY-5667 ] - [C5] User
   portal: Can't update security questions, security question addition and
   deletion is not visible in UI
   -

   [IDENTITY-5695 ] - [IS DOCS]
   Provide .yaml file for SCIM REST API docs
   -

   [IDENTITY-5697 ] - Error in
   backend
   -

   [IDENTITY-5698 ] - SCIM Add
   User Operation should return http error 409 (Conflict) if username already
   exist
   -

   [IDENTITY-5701 ] - SCIM List
   Resources return totalResults:100 for even single record
   -

   [IDENTITY-5706 ] - [C5] User
   portal: Localization and Error messages in challenge questions
   -

   [IDENTITY-5707 ] - Admin
   user shouldn't be able to Delete via SCIM
   -

   [IDENTITY-5708 ] - [C5] User
   portal: Challenge Question Set concept is not visible in UI
   -

   [IDENTITY-5712 ] - It would
   be good close the successful messages within 5 seconds time
   -

   [IDENTITY-5713 ] - Wrong
   error messages are throwing when add two words for Name fields
   -

   [IDENTITY-5714 ] - SCIM
   Provisioned users should be able to login to user-portal
   -

   [IDENTITY-5716 ] - Response
   to SCIM Delete request should be 404 is resource already deleted
   -

   [IDENTITY-5720 ] - [C5] User
   portal: Domain name should be visible in the user menu
   -

   [IDENTITY-5725 ] - Login
   Page error message should  be changed when user didn't enter a user name or
   a password.
   -

   [IDENTITY-5727 ] - Wrong
   Error Message for SCIM Create User operation if it fails due to
   IdentityStoreEception
   -

   [IDENTITY-5728 ] - Cannot
   Perform SCIM User add Operation for Secondary User Stores
   

Re: [Dev] GSoC 2017

2017-02-24 Thread Vihanga Liyanage
Hi Tishan,

Well yes, I also read that xtext grammar is based on Antlr. But in my
opinion, if we can use xtext for this project, all we need to do is create
the xtext grammar corresponds to the existing Antlr grammar of Siddhi and
that's it right? Please correct me if I'm wrong.

Thanks,

Vihanga Liyanage,
Undergraduate,
University of Colombo School of Computing.
M: +94 71 012 4103





On Fri, Feb 24, 2017 at 2:29 PM, Tishan Dahanayakage 
wrote:

> Hi Vihanga,
>
> Thanks for the research and samples. Good progress!!  I also read a bit
> about Xtext. It is also using Antlr internally. But according to the
> material I came across we cannot convert antlr grammar automatically to
> Xtext. So since Siddhi grammar is based on antlr and we are not going to
> move the grammar to Xtext can you please try the same with a simple Antlr
> v4 grammar file.
>
> Thanks
> /Tishan
>
> On Fri, Feb 24, 2017 at 11:59 AM, Vihanga Liyanage <
> vihangaliyanage...@gmail.com> wrote:
>
>> Hi all,
>>
>> I hope you read my reply to the other mail tread, "Eclipse plugin for
>> Siddhi". As I said in there, we can use same Xtext[1] framework to develop
>> Siddhi plugins for both eclipse and Intellij IDEA editors. Here are my
>> example idea plugin project details. You can find the code in here[2].
>>
>> This is the sample xtext grammar I used.
>>
>>
>>
>> Syntax highlighting and error detection.
>>
>>
>> ​
>> Code completion
>>
>>
>> ​
>> I'd love to know your ideas about this.
>>
>> [1] https://eclipse.org/Xtext/index.html
>> [2] https://github.com/vihanga-liyanage/IDEA-Plug-Ins
>>
>> Regards,
>> 
>>
>> Vihanga Liyanage,
>> Undergraduate,
>> University of Colombo School of Computing.
>> M: +94 71 012 4103 <+94%2071%20012%204103>
>>
>> 
>> 
>> 
>>
>> On Mon, Feb 13, 2017 at 11:50 AM, Vihanga Liyanage <
>> vihangaliyanage...@gmail.com> wrote:
>>
>>> Thank you for your reply. I'll look into those things and will get back
>>> to you.
>>>
>>> Regards
>>>
>>>
>>> On Feb 13, 2017 10:35 AM, "Tishan Dahanayakage"  wrote:
>>>
>>> Hi Vihanga,
>>>
>>> Thanks for your interest in WSO2 and this project. I have improved idea
>>> page with more details. I would suggest you to start off with getting bit
>>> familiar with Siddhi grammar. Then you can look into idea plugin creation
>>> to support different languages. Then you can look into antlr based
>>> programming languages and how antlr can be used to generate parsers,
>>> lexers, etc. Above will provide you enough context information on how to
>>> proceed through with the idea.
>>> Feel free to revert back if you don't understand the requirement or have
>>> any other clarification.
>>>
>>> Thanks,
>>> Tishan
>>>
>>> On Sat, Feb 11, 2017 at 12:54 PM, Vihanga Liyanage <
>>> vihangaliyanage...@gmail.com> wrote:
>>>
 Hi Tishan,

 I read through your project proposals for GSoC 2017 and particularly
 interested in the project Proposal 4: Idea Plugin for Siddhi
 
 , which lists you as the possible mentor. I'd really like to work on
 this idea further, hoping to get selected for GSoC and complete the project
 at the end.
 It'll be really great if you could point me in a direction where I
 could do some more background work on this.

 Best Regards,
 Vihanga Liyanage,
 Undergraduate,
 University of Colombo School of Computing.
 M: +94 71 012 4103 <+94%2071%20012%204103>

 
 
 

>>>
>>>
>>>
>>> --
>>> Tishan Dahanayakage
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 716481328 <071%20648%201328>
>>>
>>> Disclaimer: This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may have
>>> received this communication in error, please reply to the sender indicating
>>> that fact and delete the copy you received and in addition, you should not
>>> print, copy, re-transmit, disseminate, or otherwise use the information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender does not
>>> accept liability for any errors or omissions.
>>>
>>>
>>>
>>
>
>
> --
> Tishan Dahanayakage
> Senior Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328 <071%20648%201328>
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the address