[Dev] File upload issues when loading hbs from UUF client

2017-03-22 Thread Irham Iqbal
Hi,

I am trying to add "File Upload"[1] in a hbs template which load by UUF
client when click on menu tabs. The problem is it's not loading when the
file upload code is in the hbs which is loading UUF client. I have to write
the click function in callback[2] to achieve this.
Is there any better way to do this ?

[1] http://wso2-dev-ux.github.io/theme-wso2/demo/advanced-form-elements/

[2]

var callbacks = {
onSuccess: function (data) {
api_client.getDocuments(api_id,getDocsCallback);
$(".browse").on("click", function(){

var elem = $("#swagger-file");
   if(elem && document.createEvent) {
  elem.click();
   }
})

}, onFailure: function (data) {
}
};


Thanks,
Iqbal
-- 
Irham Iqbal
Software Engineer
WSO2
phone: +94 777888452

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


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

2017-03-22 Thread Kasun Weerakoon
Hi,

I started working on the project proposal as you mentioned and came up with
a sample perceptron classifier algorithm.

Please find the github repo in following link -
https://github.com/KasunWeerakoon/GSoC_WSO2

It would be great if you can provide me some feedback about it.

Thanks and regards,

On Wed, 15 Mar 2017, 07:25 Upul Bandara,  wrote:

> Hi Kasun,
>
> Sounds good. Also, please start working on the project proposal as well.
> The proposal should be included following high-level sections and please
> feel free to add sub-sections as needed.
>
> 1. Description
> 2. Deliverables
> 3. Timeline
> 4. Implementation
>
>
> Thanks,
> Upul
>
> On Tue, Mar 14, 2017 at 9:54 AM, Kasun Weerakoon 
> wrote:
>
> Hi,
>
> Sorry for being late to communicate my progress with you, because of my
> academic works. From now on I will be able to work on this project with my
> full potential.
>
> I went through the CEP quick start guide and created  event flow, received
> events via HTTP transport, processed events with an execution plan and
> published events to dashboard successfully.
>
> I also went through the Apache SAMOA getting start guide and did some
> tutorials.
>
> I'm currently reading Chapter 12 of the Mining of Massive Datasets book as
> you mentioned and hope your guidance to carry out the work.
>
> Thanks and Regards,
>
> *Kasun Bandara*
> Faculty of Information Technology, University of Moratuwa
> 0715787004 | kasun...@gmail.com
> 
>   
>
> On Tue, Feb 28, 2017 at 12:06 PM, Kasun Weerakoon 
> wrote:
>
> Hi,
>
> According to the rules mentioned,  I think I'm eligible to the program.
>
> Thanks and Regards,
>
> *Kasun Bandara*
> Faculty of Information Technology, University of Moratuwa
> 0715787004 | kasun...@gmail.com
> 
>   
>
> On Tue, Feb 28, 2017 at 10:59 AM, Upul Bandara  wrote:
>
> Hi Kasun,
>
> Great!
> Also, please verify your eligibility as per the GSoC rules:
> https://summerofcode.withgoogle.com/rules/
>
> Thanks,
> Upul
>
> On Tue, Feb 21, 2017 at 9:52 AM, Kasun Weerakoon 
> wrote:
>
> Hi Upul,
>
> Thanks you for your reply. I'll go through above mentioned guides and get
> back to you later.
>
> Regards,
> Kasun Weerakoon.
>
> On Tue, 21 Feb 2017, 08:39 Upul Bandara,  wrote:
>
> Hi Kasun,
>
> We are glad to see your interest!
>
> The main objective of this project is to develop a real-time machine
> learning toolkit for Siddhi [1]. Siddhi CEP is a lightweight, easy-to-use
> Open Source Complex Event Processing Engine (CEP) released as a Java
> Library under Apache Software License v2.0. The readme page of the Siddhi's
> Github repository contains a good overview of the Siddhi library. Also,
> SiddhiQL Guide [2] will be helpful you to understand Siddhi Query Language.
>
> Most probably, we will be writing this toolkit as a Siddhi extension.
> Therefore, please go through Siddhi Extension Guide [3] to get a quick
> overview regarding how to write Siddhi extensions.
>
> In addition to that, if you are not familiar with general machine learning
> concepts, I think Chapter 12 of the Mining of Massive Datasets book (link
> is provided in the GSco project page) will be really helpful. Also, if you
> have some free time please look at other streaming machine learning
> libraries such as Apache Samoa[4].
>
> Please go through these Siddhi/ML tutorials/guides. They will be helpful
> when it comes to writing your project proposal.
>
> Thanks,
> Upul
>
> [1]. https://github.com/wso2/siddhi
> [2]. https://docs.wso2.com/display/CEP420/SiddhiQL+Guide+3.1
> [3] https://docs.wso2.com/display/CEP420/Writing+Extensions+to+Siddhi
> [4] https://samoa.incubator.apache.org/
>
> On Mon, Feb 20, 2017 at 7:00 PM, Kasun Weerakoon 
> wrote:
>
> Hi all,
>
> I'm Kasun Weerakoon, final year undergraduate of University of Moratuwa,
> Sri Lanka. I'm interested about above mentioned project idea as I'm
> passionate about machine learning and deep learning techniques. I have used
> ML in my final year project and have followed the Coursera machine learning
> course by Stanford University as well as a ML course module in the
> university. I've recently participated to the Deep Learning meetup held in
> your organization. I use Java as my major programming language and
> currently  I'm following tutorials on Siddhi. I believe I'm a good
> candidate for this project and hope your guidance for this project.
>
> Regards,
> Kasun Weerakoon.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
> Upul Bandara,
> Mob: +94 715 468 345 <+94%2071%20546%208345>.
>
>
>
>
> --
> Upul Bandara,
> Associate 

Re: [Dev] How can we add multi language support in javascript files

2017-03-22 Thread Ayesha Dissanayaka
Hi Prasanna,

Similar discussion was started sometime back in [1].
Issues in [2], [3] have some suggestions.

[1] [Dev][UUF][IS-6] Enable i18n support in javascript
[2] https://github.com/wso2/carbon-uuf/issues/160
[3] https://github.com/wso2/carbon-uuf/issues/166


On Thu, Mar 23, 2017 at 10:46 AM, Pubudu Gunatilaka 
wrote:

> Adding Manu and Sajith.
>
> On Thu, Mar 23, 2017 at 10:44 AM, Prasanna Dangalla 
> wrote:
>
>> Hi Nisala,
>>
>> I was wondering how to include this in javascript files, not in hbs
>> files. Is there a way to include in javascrip fiels ?
>>
>> Thanks
>>
>> *Prasanna Dangalla*
>> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>>
>> *cell: +94 718 11 27 51*
>> *twitter: @prasa77*
>>
>> On Thu, Mar 23, 2017 at 10:33 AM, Nisala Nanayakkara 
>> wrote:
>>
>>> Hi Prasanna,
>>>
>>> UUF has the capability of facilitating above mentioned scenario. You can
>>> define your language property file under the ‘lang’ directory as follows.
>>>
>>> |src
>>> | |main
>>> |   | pages/
>>> |   | fragments/
>>> |   | layouts/
>>> |   | modules/
>>> |   | lang/
>>> |en_US.properties
>>> |   | public/
>>>
>>> After that you can use following code segment to achieve your
>>> requirement in your hbs file.
>>>
>>> {{i18n "my.sample.key"}}
>>>
>>> Please go through sample app available here[1] if you need more
>>> clarification. Moreover you can find actual usage above code segment
>>> here[2] and corresponding language file here[3].
>>>
>>> [1] - https://github.com/wso2/carbon-uuf/tree/master/samples/apps/
>>> org.wso2.carbon.uuf.sample.pets-store.app
>>> [2] - https://github.com/wso2/carbon-uuf/blob/master/samples/apps/
>>> org.wso2.carbon.uuf.sample.pets-store.app/src/main/pages/index.hbs#L16
>>> [3] - https://github.com/wso2/carbon-uuf/blob/master/samples/apps/
>>> org.wso2.carbon.uuf.sample.pets-store.app/src/main/lang/en_US.properties
>>>
>>> Thanks,
>>> Nisala
>>>
>>> On Thu, Mar 23, 2017 at 9:01 AM, Prasanna Dangalla 
>>> wrote:
>>>
 Hi Devs,

 Is there a mechanism defined to use something like i18n in javascript
 ? Does the UUF has the capability of facilitating this ? You inputs are
 highly appreciated.

 Thanks

 *Prasanna Dangalla*
 Senior Software Engineer, WSO2, Inc.; http://wso2.com/
 lean.enterprise.middleware


 *cell: +94 718 11 27 51*
 *twitter: @prasa77*

 ___
 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
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com

20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How can we add multi language support in javascript files

2017-03-22 Thread Pubudu Gunatilaka
Adding Manu and Sajith.

On Thu, Mar 23, 2017 at 10:44 AM, Prasanna Dangalla 
wrote:

> Hi Nisala,
>
> I was wondering how to include this in javascript files, not in hbs files.
> Is there a way to include in javascrip fiels ?
>
> Thanks
>
> *Prasanna Dangalla*
> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
>
> *cell: +94 718 11 27 51*
> *twitter: @prasa77*
>
> On Thu, Mar 23, 2017 at 10:33 AM, Nisala Nanayakkara 
> wrote:
>
>> Hi Prasanna,
>>
>> UUF has the capability of facilitating above mentioned scenario. You can
>> define your language property file under the ‘lang’ directory as follows.
>>
>> |src
>> | |main
>> |   | pages/
>> |   | fragments/
>> |   | layouts/
>> |   | modules/
>> |   | lang/
>> |en_US.properties
>> |   | public/
>>
>> After that you can use following code segment to achieve your requirement
>> in your hbs file.
>>
>> {{i18n "my.sample.key"}}
>>
>> Please go through sample app available here[1] if you need more
>> clarification. Moreover you can find actual usage above code segment
>> here[2] and corresponding language file here[3].
>>
>> [1] - https://github.com/wso2/carbon-uuf/tree/master/samples/apps/
>> org.wso2.carbon.uuf.sample.pets-store.app
>> [2] - https://github.com/wso2/carbon-uuf/blob/master/samples/apps/
>> org.wso2.carbon.uuf.sample.pets-store.app/src/main/pages/index.hbs#L16
>> [3] - https://github.com/wso2/carbon-uuf/blob/master/samples/apps/
>> org.wso2.carbon.uuf.sample.pets-store.app/src/main/lang/en_US.properties
>>
>> Thanks,
>> Nisala
>>
>> On Thu, Mar 23, 2017 at 9:01 AM, Prasanna Dangalla 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> Is there a mechanism defined to use something like i18n in javascript ?
>>> Does the UUF has the capability of facilitating this ? You inputs are
>>> highly appreciated.
>>>
>>> Thanks
>>>
>>> *Prasanna Dangalla*
>>> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>>
>>> *cell: +94 718 11 27 51*
>>> *twitter: @prasa77*
>>>
>>> ___
>>> 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
>
>


-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How can we add multi language support in javascript files

2017-03-22 Thread Prasanna Dangalla
Hi Nisala,

I was wondering how to include this in javascript files, not in hbs files.
Is there a way to include in javascrip fiels ?

Thanks

*Prasanna Dangalla*
Senior Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware


*cell: +94 718 11 27 51*
*twitter: @prasa77*

On Thu, Mar 23, 2017 at 10:33 AM, Nisala Nanayakkara 
wrote:

> Hi Prasanna,
>
> UUF has the capability of facilitating above mentioned scenario. You can
> define your language property file under the ‘lang’ directory as follows.
>
> |src
> | |main
> |   | pages/
> |   | fragments/
> |   | layouts/
> |   | modules/
> |   | lang/
> |en_US.properties
> |   | public/
>
> After that you can use following code segment to achieve your requirement
> in your hbs file.
>
> {{i18n "my.sample.key"}}
>
> Please go through sample app available here[1] if you need more
> clarification. Moreover you can find actual usage above code segment
> here[2] and corresponding language file here[3].
>
> [1] - https://github.com/wso2/carbon-uuf/tree/master/
> samples/apps/org.wso2.carbon.uuf.sample.pets-store.app
> [2] - https://github.com/wso2/carbon-uuf/blob/master/
> samples/apps/org.wso2.carbon.uuf.sample.pets-store.app/src/
> main/pages/index.hbs#L16
> [3] - https://github.com/wso2/carbon-uuf/blob/master/
> samples/apps/org.wso2.carbon.uuf.sample.pets-store.app/src/
> main/lang/en_US.properties
>
> Thanks,
> Nisala
>
> On Thu, Mar 23, 2017 at 9:01 AM, Prasanna Dangalla 
> wrote:
>
>> Hi Devs,
>>
>> Is there a mechanism defined to use something like i18n in javascript ?
>> Does the UUF has the capability of facilitating this ? You inputs are
>> highly appreciated.
>>
>> Thanks
>>
>> *Prasanna Dangalla*
>> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>>
>> *cell: +94 718 11 27 51*
>> *twitter: @prasa77*
>>
>> ___
>> 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] [IS] Generate token with auth code grant - Using same code twice

2017-03-22 Thread Danushka Fernando
Createed https://wso2.org/jira/browse/IDENTITY-5830 to track this

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Thu, Mar 23, 2017 at 9:22 AM, Maduranga Siriwardena 
wrote:

> Sorry the code line should be [1]. Previous line I pointed [2] has the
> same issue.
>
> [1] https://github.com/wso2-extensions/identity-inbound-
> auth-oauth/blob/v5.3.4/components/org.wso2.carbon.
> identity.oauth/src/main/java/org/wso2/carbon/identity/
> oauth2/token/handlers/grant/AuthorizationCodeGrantHandler.java#L121
> [2] https://github.com/wso2-extensions/identity-inbound-
> auth-oauth/blob/v5.3.4/components/org.wso2.carbon.
> identity.oauth/src/main/java/org/wso2/carbon/identity/
> oauth2/token/handlers/grant/AuthorizationCodeGrantHandler.java#L184
>
> Thanks,
>
> On Wed, Mar 22, 2017 at 10:49 PM, Maduranga Siriwardena <
> madura...@wso2.com> wrote:
>
>> Hi Danushka,
>>
>> The problem seems to be oauthCache is only initialized when
>> EnableOAuthCache is set to true in identity.xml. Default value is false. So
>> oauthCache is null and when we try to clear the cache entry [1] it gives
>> NPE.
>>
>> [1] https://github.com/wso2-extensions/identity-inbound-auth
>> -oauth/blob/v5.3.4/components/org.wso2.carbon.identity.
>> oauth/src/main/java/org/wso2/carbon/identity/oauth2/token/
>> handlers/grant/AuthorizationCodeGrantHandler.java#L184
>>
>> Thanks,
>>
>> On Wed, Mar 22, 2017 at 10:41 PM, Danushka Fernando 
>> wrote:
>>
>>> Hi All
>>> I generated an auth code and used that code to issue an access token. In
>>> second time as expected its not giving me an access token if I use same
>>> code. But there is a null pointer.
>>>
>>> TID: [-1234] [] [2017-03-23 08:46:21,034]  INFO
>>> {org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration} -  The
>>> default Identity OAuth token issuer will be used. No custom token generator
>>> is set.
>>> TID: [-1234] [] [2017-03-23 08:47:12,696]  WARN
>>> {org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint} -
>>>  No session state found for the received Session ID :
>>> afbb08c6-d832-4154-9e68-116cc02b7b94
>>> TID: [-1234] [] [2017-03-23 08:50:59,399] ERROR
>>> {org.wso2.carbon.identity.oauth2.OAuth2Service} -  Error occurred while
>>> issuing the access token for Client ID : jF2udC5fHAZwglHYuYVt9rXdgrIa, User
>>> ID null, Scope : [] and Grant Type : authorization_code
>>> java.lang.NullPointerException
>>> at org.wso2.carbon.identity.oauth2.token.handlers.grant.Authori
>>> zationCodeGrantHandler.validateGrant(AuthorizationCodeGrantH
>>> andler.java:121)
>>> at org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issu
>>> e(AccessTokenIssuer.java:212)
>>> at org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessTok
>>> en(OAuth2Service.java:223)
>>> at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEnd
>>> point.getAccessToken(OAuth2TokenEndpoint.java:287)
>>> at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEnd
>>> point.issueAccessToken(OAuth2TokenEndpoint.java:151)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.apache.cxf.service.invoker.AbstractInvoker.performInvoca
>>> tion(AbstractInvoker.java:188)
>>> at org.apache.cxf.service.invoker.AbstractInvoker.invoke(Abstra
>>> ctInvoker.java:104)
>>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
>>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
>>> at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(S
>>> erviceInvokerInterceptor.java:58)
>>> at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleM
>>> essage(ServiceInvokerInterceptor.java:94)
>>> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(Phase
>>> InterceptorChain.java:272)
>>> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(C
>>> hainInitiationObserver.java:121)
>>> at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke
>>> (AbstractHTTPDestination.java:249)
>>> at org.apache.cxf.transport.servlet.ServletController.invokeDes
>>> tination(ServletController.java:248)
>>> at org.apache.cxf.transport.servlet.ServletController.invoke(Se
>>> rvletController.java:222)
>>> at org.apache.cxf.transport.servlet.ServletController.invoke(Se
>>> rvletController.java:153)
>>> at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(
>>> CXFNonSpringServlet.java:171)
>>> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleR
>>> equest(AbstractHTTPServlet.java:289)
>>> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(
>>> AbstractHTTPServlet.java:209)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
>>> at 

Re: [Dev] How can we add multi language support in javascript files

2017-03-22 Thread Nisala Nanayakkara
Hi Prasanna,

UUF has the capability of facilitating above mentioned scenario. You can
define your language property file under the ‘lang’ directory as follows.

|src
| |main
|   | pages/
|   | fragments/
|   | layouts/
|   | modules/
|   | lang/
|en_US.properties
|   | public/

After that you can use following code segment to achieve your requirement
in your hbs file.

{{i18n "my.sample.key"}}

Please go through sample app available here[1] if you need more
clarification. Moreover you can find actual usage above code segment
here[2] and corresponding language file here[3].

[1] -
https://github.com/wso2/carbon-uuf/tree/master/samples/apps/org.wso2.carbon.uuf.sample.pets-store.app
[2] -
https://github.com/wso2/carbon-uuf/blob/master/samples/apps/org.wso2.carbon.uuf.sample.pets-store.app/src/main/pages/index.hbs#L16
[3] -
https://github.com/wso2/carbon-uuf/blob/master/samples/apps/org.wso2.carbon.uuf.sample.pets-store.app/src/main/lang/en_US.properties

Thanks,
Nisala

On Thu, Mar 23, 2017 at 9:01 AM, Prasanna Dangalla 
wrote:

> Hi Devs,
>
> Is there a mechanism defined to use something like i18n in javascript ?
> Does the UUF has the capability of facilitating this ? You inputs are
> highly appreciated.
>
> Thanks
>
> *Prasanna Dangalla*
> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
>
> *cell: +94 718 11 27 51*
> *twitter: @prasa77*
>
> ___
> 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 CLI Tool for WSO2 Identity Server

2017-03-22 Thread Isuranga Perera
Hi Farasath

I updated the Github Repo. Appreciate if you can check "listAllUsers"
command and comment. Please refer README for additional dependencies.

Thank You



On Wed, Mar 22, 2017 at 9:18 PM, Isuranga Perera 
wrote:

> Hi Farasath
>
> Thanks for the interest. I'll have a look as soon as possible.
>
> Regards
>
>
> [image: photo]
> Isuranga Perera
> at University of Colombo School of Computing
> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
> isurangamper...@gmail.com
>  W  https://isurangaperera.wordpress.com/
> 
>
> 
> 
> 
> 
> Get a signature like this: Click here!
> 
>
> On Wed, Mar 22, 2017 at 8:26 PM, Farasath Ahamed 
> wrote:
>
>> Hi Isuranga,
>>
>> I went through the repo and created some git issues. Appreciate if you
>> could have a look.
>>
>>
>> Thanks,
>> Farasath.
>>
>> Farasath Ahamed
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>> 
>>
>>
>>
>> On Wed, Mar 22, 2017 at 10:50 AM, Isuranga Perera <
>> isurangamper...@gmail.com> wrote:
>>
>>> Hi Farasath
>>>
>>> Sorry for the inconvenience. I have corrected it now.
>>>
>>> regards
>>>
>>>
>>> [image: photo]
>>> Isuranga Perera
>>> at University of Colombo School of Computing
>>> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
>>> isurangamper...@gmail.com
>>>  W  https://isurangaperera.wordpress.com/
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> Get a signature like this: Click here!
>>> 
>>>
>>> On Wed, Mar 22, 2017 at 10:47 AM, Farasath Ahamed 
>>> wrote:
>>>
 Hi Isuranga,

 The repo[1] gives a 404 now. Previously it was accessible. Any idea why?

 [1] https://github.com/IsurangaPerera/cli


 Thanks,
 Farasath

 Farasath Ahamed
 Software Engineer, WSO2 Inc.; http://wso2.com
 Mobile: +94777603866
 Blog: blog.farazath.com
 Twitter: @farazath619 
 



 On Thu, Mar 16, 2017 at 8:55 AM, Isuranga Perera <
 isurangamper...@gmail.com> wrote:

> Hi All,
>
> Sorry for the late response. [1] is the link to Github repo. Within a
> day or two I'll be able to complete the prototype.
>
>  [1] https://github.com/IsurangaPerera/cli
>
> Regards
>
>
> [image: photo]
> Isuranga Perera
> at University of Colombo School of Computing
> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
> isurangamper...@gmail.com
>  W  https://isurangaperera.wordpress.com/
> 
>
> 
> 
> 
> 
> Get a signature like this: Click here!
> 
>
> On Wed, Mar 15, 2017 at 3:36 PM, Harsha Thirimanna 
> wrote:
>
>> Yes , it would be ok if it is one the way,  we would like to look in
>> to that. Please share the repo .
>>
>> On Mar 15, 2017 3:23 PM, "Farasath Ahamed" 
>> wrote:
>>
>>> Hi Isuranga,
>>>
>>> Can you share the link to the GitHub repo so that we can have a look
>>> and provide feedback?
>>>
>>>
>>> Thanks,
>>> Farasath.
>>>
>>> Farasath Ahamed
>>> Software Engineer, WSO2 Inc.; http://wso2.com

Re: [Dev] [IS] Generate token with auth code grant - Using same code twice

2017-03-22 Thread Maduranga Siriwardena
Sorry the code line should be [1]. Previous line I pointed [2] has the same
issue.

[1]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/v5.3.4/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/token/handlers/grant/AuthorizationCodeGrantHandler.java#L121
[2]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/v5.3.4/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/token/handlers/grant/AuthorizationCodeGrantHandler.java#L184

Thanks,

On Wed, Mar 22, 2017 at 10:49 PM, Maduranga Siriwardena 
wrote:

> Hi Danushka,
>
> The problem seems to be oauthCache is only initialized when
> EnableOAuthCache is set to true in identity.xml. Default value is false. So
> oauthCache is null and when we try to clear the cache entry [1] it gives
> NPE.
>
> [1] https://github.com/wso2-extensions/identity-inbound-
> auth-oauth/blob/v5.3.4/components/org.wso2.carbon.
> identity.oauth/src/main/java/org/wso2/carbon/identity/
> oauth2/token/handlers/grant/AuthorizationCodeGrantHandler.java#L184
>
> Thanks,
>
> On Wed, Mar 22, 2017 at 10:41 PM, Danushka Fernando 
> wrote:
>
>> Hi All
>> I generated an auth code and used that code to issue an access token. In
>> second time as expected its not giving me an access token if I use same
>> code. But there is a null pointer.
>>
>> TID: [-1234] [] [2017-03-23 08:46:21,034]  INFO
>> {org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration} -  The
>> default Identity OAuth token issuer will be used. No custom token generator
>> is set.
>> TID: [-1234] [] [2017-03-23 08:47:12,696]  WARN
>> {org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint} -
>>  No session state found for the received Session ID :
>> afbb08c6-d832-4154-9e68-116cc02b7b94
>> TID: [-1234] [] [2017-03-23 08:50:59,399] ERROR
>> {org.wso2.carbon.identity.oauth2.OAuth2Service} -  Error occurred while
>> issuing the access token for Client ID : jF2udC5fHAZwglHYuYVt9rXdgrIa, User
>> ID null, Scope : [] and Grant Type : authorization_code
>> java.lang.NullPointerException
>> at org.wso2.carbon.identity.oauth2.token.handlers.grant.Authori
>> zationCodeGrantHandler.validateGrant(AuthorizationCodeGrantH
>> andler.java:121)
>> at org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.
>> issue(AccessTokenIssuer.java:212)
>> at org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessTok
>> en(OAuth2Service.java:223)
>> at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEnd
>> point.getAccessToken(OAuth2TokenEndpoint.java:287)
>> at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEnd
>> point.issueAccessToken(OAuth2TokenEndpoint.java:151)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.apache.cxf.service.invoker.AbstractInvoker.performInvoca
>> tion(AbstractInvoker.java:188)
>> at org.apache.cxf.service.invoker.AbstractInvoker.invoke(
>> AbstractInvoker.java:104)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
>> at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(
>> ServiceInvokerInterceptor.java:58)
>> at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleM
>> essage(ServiceInvokerInterceptor.java:94)
>> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(Phase
>> InterceptorChain.java:272)
>> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(C
>> hainInitiationObserver.java:121)
>> at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke
>> (AbstractHTTPDestination.java:249)
>> at org.apache.cxf.transport.servlet.ServletController.invokeDes
>> tination(ServletController.java:248)
>> at org.apache.cxf.transport.servlet.ServletController.invoke(
>> ServletController.java:222)
>> at org.apache.cxf.transport.servlet.ServletController.invoke(
>> ServletController.java:153)
>> at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(
>> CXFNonSpringServlet.java:171)
>> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleR
>> equest(AbstractHTTPServlet.java:289)
>> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(
>> AbstractHTTPServlet.java:209)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
>> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service
>> (AbstractHTTPServlet.java:265)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:303)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> at 

Re: [Dev] [IS] Generate token with auth code grant - Using same code twice

2017-03-22 Thread Maduranga Siriwardena
Hi Danushka,

The problem seems to be oauthCache is only initialized when
EnableOAuthCache is set to true in identity.xml. Default value is false. So
oauthCache is null and when we try to clear the cache entry [1] it gives
NPE.

[1]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/v5.3.4/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/token/handlers/grant/AuthorizationCodeGrantHandler.java#L184

Thanks,

On Wed, Mar 22, 2017 at 10:41 PM, Danushka Fernando 
wrote:

> Hi All
> I generated an auth code and used that code to issue an access token. In
> second time as expected its not giving me an access token if I use same
> code. But there is a null pointer.
>
> TID: [-1234] [] [2017-03-23 08:46:21,034]  INFO {org.wso2.carbon.identity.
> oauth.config.OAuthServerConfiguration} -  The default Identity OAuth
> token issuer will be used. No custom token generator is set.
> TID: [-1234] [] [2017-03-23 08:47:12,696]  WARN {org.wso2.carbon.identity.
> oauth.endpoint.authz.OAuth2AuthzEndpoint} -  No session state found for
> the received Session ID : afbb08c6-d832-4154-9e68-116cc02b7b94
> TID: [-1234] [] [2017-03-23 08:50:59,399] ERROR 
> {org.wso2.carbon.identity.oauth2.OAuth2Service}
> -  Error occurred while issuing the access token for Client ID :
> jF2udC5fHAZwglHYuYVt9rXdgrIa, User ID null, Scope : [] and Grant Type :
> authorization_code
> java.lang.NullPointerException
> at org.wso2.carbon.identity.oauth2.token.handlers.grant.
> AuthorizationCodeGrantHandler.validateGrant(AuthorizationCodeGrantHandler.
> java:121)
> at org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(
> AccessTokenIssuer.java:212)
> at org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(
> OAuth2Service.java:223)
> at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.
> getAccessToken(OAuth2TokenEndpoint.java:287)
> at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.
> issueAccessToken(OAuth2TokenEndpoint.java:151)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(
> AbstractInvoker.java:188)
> at org.apache.cxf.service.invoker.AbstractInvoker.
> invoke(AbstractInvoker.java:104)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
> at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.
> run(ServiceInvokerInterceptor.java:58)
> at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(
> ServiceInvokerInterceptor.java:94)
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> PhaseInterceptorChain.java:272)
> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> ChainInitiationObserver.java:121)
> at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(
> AbstractHTTPDestination.java:249)
> at org.apache.cxf.transport.servlet.ServletController.invokeDestination(
> ServletController.java:248)
> at org.apache.cxf.transport.servlet.ServletController.
> invoke(ServletController.java:222)
> at org.apache.cxf.transport.servlet.ServletController.
> invoke(ServletController.java:153)
> at org.apache.cxf.transport.servlet.CXFNonSpringServlet.
> invoke(CXFNonSpringServlet.java:171)
> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(
> AbstractHTTPServlet.java:289)
> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> doPost(AbstractHTTPServlet.java:209)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> service(AbstractHTTPServlet.java:265)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:303)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(
> HttpHeaderSecurityFilter.java:120)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:218)
> at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:122)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> 

[Dev] [IS] Generate token with auth code grant - Using same code twice

2017-03-22 Thread Danushka Fernando
Hi All
I generated an auth code and used that code to issue an access token. In
second time as expected its not giving me an access token if I use same
code. But there is a null pointer.

TID: [-1234] [] [2017-03-23 08:46:21,034]  INFO
{org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration} -  The
default Identity OAuth token issuer will be used. No custom token generator
is set.
TID: [-1234] [] [2017-03-23 08:47:12,696]  WARN
{org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint} -  No
session state found for the received Session ID :
afbb08c6-d832-4154-9e68-116cc02b7b94
TID: [-1234] [] [2017-03-23 08:50:59,399] ERROR
{org.wso2.carbon.identity.oauth2.OAuth2Service} -  Error occurred while
issuing the access token for Client ID : jF2udC5fHAZwglHYuYVt9rXdgrIa, User
ID null, Scope : [] and Grant Type : authorization_code
java.lang.NullPointerException
at
org.wso2.carbon.identity.oauth2.token.handlers.grant.AuthorizationCodeGrantHandler.validateGrant(AuthorizationCodeGrantHandler.java:121)
at
org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:212)
at
org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:223)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:287)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:151)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:120)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.identity.context.rewrite.valve.TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:72)
at
org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(AuthorizationValve.java:91)
at
org.wso2.carbon.identity.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:60)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at

[Dev] How can we add multi language support in javascript files

2017-03-22 Thread Prasanna Dangalla
Hi Devs,

Is there a mechanism defined to use something like i18n in javascript ?
Does the UUF has the capability of facilitating this ? You inputs are
highly appreciated.

Thanks

*Prasanna Dangalla*
Senior Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware


*cell: +94 718 11 27 51*
*twitter: @prasa77*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 - Proposal 20: [IS] OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-03-22 Thread Dinuksha Ishwari
Hi Maduranga,

Thank you for the information. I shall look in to this and proceed with the
basic implementation and preparing the proposal. Will keep you informed.

On Wed, Mar 22, 2017 at 9:40 PM, Maduranga Siriwardena 
wrote:

> Hi Dinuksha,
>
> DCR has 3 specs.
>
>- OAuth 2.0 Dynamic Client Registration
>- OAuth 2.0 Dynamic Client Registration Management
>- OpenID Connect Dynamic Client Registration
>
> OAuth 2.0 Dynamic Client Registration is handled by [1]. And OpenID
> Connect Dynamic Client Registration is handled by [2]. This is the class
> that handles requests for /identity/connect/register. OAuth 2.0 Dynamic
> Client Registration Management is the one you are going to implement.
>
> As a start you can just register a servlet and implement the
> functionality. We will guide you how to register a processor for identity
> endpoint, if we decide to go in that path.
>
> I hope that I answered your questions. Get back to us of you need anything
> clarified.
>
>
> [1] https://github.com/wso2-extensions/identity-inbound-
> auth-oauth/blob/master/components/org.wso2.carbon.
> identity.oauth.dcr/src/main/java/org/wso2/carbon/identity/
> oauth/dcr/processor/DCRProcessor.java
> [2] https://github.com/wso2-extensions/identity-inbound-
> auth-oauth/blob/master/components/org.wso2.carbon.
> identity.oidc.dcr/src/main/java/org/wso2/carbon/identity/
> oidc/dcr/processor/OIDCDCRProcessor.java
>
> Thanks,
>
>
> On Wed, Mar 22, 2017 at 10:53 AM, Dinuksha Ishwari <
> dinuksha.ishw...@gmail.com> wrote:
>
>> Hi Maduranga,
>>
>> I have referred the given code [1] and observed that DCRProcessor will
>> only process requests that call the endpoint /identity/register as OAuth2.0
>> specification and will not process the the calls to
>> /identity/connect/register which is the endpoint specified in OpenIDConnect
>> specification for DCR. Correct me if I am wrong.
>>
>> I would appreciate if you could provide me some more information
>> regarding exposing an endpoint for the custom component of DCRM.
>>
>> [1] https://github.com/wso2-extensions/identity-inbound-auth
>> -oauth/blob/master/components/org.wso2.carbon.identity.oauth
>> .dcr/src/main/java/org/wso2/carbon/identity/oauth/dcr/
>> processor/DCRProcessor.java
>>
>> Thank you,
>> Dinuksha.
>>
>> On Tue, Mar 21, 2017 at 11:54 PM, Maduranga Siriwardena <
>> madura...@wso2.com> wrote:
>>
>>> Hi Dinuksha,
>>>
>>> Glad to hear that you have made progress with the project.
>>>
>>> As a start, exposing a separate servlet would be okay. But going forward
>>> with the project, you may have to use the approach used in the DCR endpoint
>>> which is [1] (or may have to use a cxf endpoint).
>>>
>>> [1] https://github.com/wso2-extensions/identity-inbound-auth
>>> -oauth/blob/master/components/org.wso2.carbon.identity.oauth
>>> .dcr/src/main/java/org/wso2/carbon/identity/oauth/dcr/
>>> processor/DCRProcessor.java
>>>
>>> Thanks,
>>>
>>> On Tue, Mar 21, 2017 at 12:26 PM, Dinuksha Ishwari <
>>> dinuksha.ishw...@gmail.com> wrote:
>>>
 Hi Devs/Mentors,

 This is to inform you the progress made so far with the project. In
 order to get familiar with the wso2 codebase and the product building
 process, I built the kernel and product-is for IS 5.3.0 successfully. Then
 I patched the current DCR component, built it and added as a patch to IS
 and got the modifications applied to the server.

 Now I am working on a basic implementation of the DCRM where I have
 written a separate component and exposed a servlet from that. I am now
 modifying it to accept required parameters and to get the basic flow
 working. I will share the code via github soon for reviewing. Meanwhile I'm
 working on preparing the project proposal as well.

 Regards,
 Dinuksha.

 On Fri, Mar 17, 2017 at 8:04 AM, Dinuksha Ishwari <
 dinuksha.ishw...@gmail.com> wrote:

> Hi Omindu,
>
> Thanks for the information.
>
>
>
> On Fri, Mar 17, 2017 at 1:44 AM, Omindu Rathnaweera 
> wrote:
>
>> Hi Dinuksha,
>>
>> For OAuth, those two are the only libraries we use.
>>
>>
>> On Wed, Mar 15, 2017 at 10:16 AM, Dinuksha Ishwari <
>> dinuksha.ishw...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> When I was going through the code base, I observed that Nimbus and
>>> Apache Oltu libraries are used for the OAuth2.0 implementation. Could 
>>> you
>>> kindly let me know what other libraries are used?
>>>
>>> Thanks,
>>> Dinuksha
>>>
>>>
>>>
>>> On Mon, Feb 27, 2017 at 9:51 AM, Dinuksha Ishwari <
>>> dinuksha.ishw...@gmail.com> wrote:
>>>
 Hi Ishara,

 I have read the OAuth2.0 DCR and DCRM specification and
 familiarized myself with the WSO2 Identity Server DCR implementation. I
 have also written a few blog posts [1][2] in order to share my 
 

Re: [Dev] Custom password grant type

2017-03-22 Thread Farasath Ahamed
Hi Gottfried,

I think your observation is correct. It is happening due to the following
check[1] which sets the username and password params coming in grant
request only to the OAuth2AccessTokenReqDTO object.

For the custom grant types, all the request parameters are set to the
OAuth2AccessTokenReqDTO as seen in [2].


[1]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/e9813da4110b819cfe563cdbd88d6a70064f45e0/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/token/OAuth2TokenEndpoint.java#L273-L273

[2]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/e9813da4110b819cfe563cdbd88d6a70064f45e0/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/token/OAuth2TokenEndpoint.java#L284


Thanks,
Farasath

Farasath Ahamed
Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 




On Thu, Mar 23, 2017 at 1:46 AM, Gottfried Szing  wrote:

> Hi
>
> Target WSO2 product is the WSO2 IS 5.3 and/or API manager 2.1
>
> I am currently implementing a set of custom grant types and one grant type
> is based on the the existing PasswordGrantHandler. The goal is to check in
> addition to the username, password and scope an additional, optional
> request parameter. If this parameter exists, a special response header
> should be added. So far, so good.
>
> But it does not work. I have extended the PasswordGrantHandler and check
> the requestParamers in the DTO like here:
>
> public class MyPasswordGrantHandler extends PasswordGrantHandler {
>
> @Override
> public boolean validateGrant(OAuthTokenReqMessageContext
> oAuthTokenReqMessageContext)
> throws IdentityOAuth2Exception {
> // this returns null
> oAuthTokenReqMessageContext.getOauth2AccessTokenReqDTO().get
> RequestParameters()
>
> final boolean authStatus = super.validateGrant(oAuthToken
> ReqMessageContext);
>
> if (authStatus) {
> // 
> }
>
> return authStatus;
> }
> }
>
> This works perfectly for other, self-implemented grant handlers, but not
> for this one as long as it is registered it in the identity.xml under the
> GrantTypeName = password. If I choose a different name, the same
> implementation works as expected.
>
> Any ideas, whats going on under the hood? In the sources I havent found
> any hints.
>
> Br & Thanks
> ___
> 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] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-22 Thread Madhawa Vidanapathirana
Hi Suho,

Got the prototype working with Python 3 as well. Refer the link below for
sources.

https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyjnius_Prototype_Wrap_Python2_3

This version works with both Python 2.7 and 3.x. (Tested on 2.7 and 3.5).
Uses native calls via Pyjnius API.

Please note: When you are installing Pyjnius from source, don't use the
same local copy of source files for both Python2 and Python3. The install
scripts of Pyjnius leaves temporary files that make subsequent installs on
a different version of Python fail.

Regards,
Madhawa


On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Installation via PIP can be done. I will add it to Project Proposal.
>
> Regards,
> Madhawa
>
> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan  > wrote:
>
>>
>>
>> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> Going ahead with the proposal, few questions crossed my mind.
>>>
>>>1. You mentioned previously that WSO2 DAS should also be supported.
>>>What sort of interactions are expected with WSO2 DAS?
>>>1. Should publishing events to WSO2 DAS from Python Siddhi API
>>>   supported?
>>>   2. Should deploying of Siddhi Queries to WSO2 DAS through Python
>>>   Siddhi API be supported?
>>>   3. Any other expectations?
>>>
>>>
>> For the integration with DAS we can use HTTP calls and deploy Siddhi
>> queries and send events to that, we should also start a server from the
>> python side to receive events from DAS and print them.
>>
>> We can work on the details of that after the proposal.
>>
>> One more thing to add, can we also implement Siddhi (the project you will
>> be creating) to be installed via pip ?
>>
>> Regards
>> Suho
>>
>> If any of above can be considered as "optional", indicate them as well.
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 For the initial cut this looks good, please go ahead with the proposal.
 Let's check some other alternatives and start the development.

 Regards
 Suho

 On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> You can find the python version of test case written using Pyjnius in
> below link.
> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
> nius%20Prototype%20Wrap
> Instructions on building the code is also given their.
>
> During development, I noticed following disadvantages of Pyjnius API
>
>- Not compatible with Python 3.x.
>- There are no stable releases. However, the code available in
>master branch is relatively stable.
>- Difficult to configure. It is required to develop the library
>from source. This would make it difficult to distribute an API 
> developed on
>Pyjnius.
>- There are no evidence that a proper release would be done soon.
>
> However, Pyjnius supports callback of events from Java to Python.
> Additionally, it is easier to develop using Pyjnius ones it is configured.
>
> So, I had a looked at some of the other options as well.
>
> Java Bridge
>
> *Advantages*
>
>- Has stable releases available through Python Package Index. (pip)
>
> *Disadvantages*
>
>- No direct call-back mechanism to receive events from Java side.
>It is possible to execute Python scripts in Java  but those scripts 
> would
>not be in same context as Python Host App.
>- Comparatively harder to develop on but it is manageable.
>
> Py4J
>
> The main difference in Py4J is that it uses socket connections to
> communicate with JVM instead of JNI. (secured socket connections are
> possible).
>
> *Advantages*
>
>- Stable release available through Python Package Index (pip).
>Easy to configure.
>- Can connect to an already running Java application (with Py4J)
>and communicate with it. (Thus, can be used to communicate with a 
> running
>instance of WSO2 CEP)
>- Supports callback events.
>- Well maintained documentation. Active project.
>
> *Disadvantages*
>
>- Would require a work-around to avoid clashing between socket
>connection ports when concurrent applications use the API.
>
> As of now, I feel Py4J is the most suitable option. However, I am yet
> to look at some other options available such as JPy and JCC.
>
> Regards,
>
> Madhawa
>
> On Wed, Mar 15, 2017 at 11:10 PM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> Great, do also start working on writing the project proposal.
>>
>> Regards

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-22 Thread Sriskandarajah Suhothayan
Good to know that it worked :)

Regards
Suho

On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Got the prototype working with Python 3 as well. Refer the link below for
> sources.
>
> https://github.com/madhawav/CEP-Python-Wraps/tree/master/
> Pyjnius_Prototype_Wrap_Python2_3
>
> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and 3.5).
> Uses native calls via Pyjnius API.
>
> Please note: When you are installing Pyjnius from source, don't use the
> same local copy of source files for both Python2 and Python3. The install
> scripts of Pyjnius leaves temporary files that make subsequent installs on
> a different version of Python fail.
>
> Regards,
> Madhawa
>
>
> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Installation via PIP can be done. I will add it to Project Proposal.
>>
>> Regards,
>> Madhawa
>>
>> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>>
>>>
>>> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 Going ahead with the proposal, few questions crossed my mind.

1. You mentioned previously that WSO2 DAS should also be supported.
What sort of interactions are expected with WSO2 DAS?
1. Should publishing events to WSO2 DAS from Python Siddhi API
   supported?
   2. Should deploying of Siddhi Queries to WSO2 DAS through Python
   Siddhi API be supported?
   3. Any other expectations?


>>> For the integration with DAS we can use HTTP calls and deploy Siddhi
>>> queries and send events to that, we should also start a server from the
>>> python side to receive events from DAS and print them.
>>>
>>> We can work on the details of that after the proposal.
>>>
>>> One more thing to add, can we also implement Siddhi (the project you
>>> will be creating) to be installed via pip ?
>>>
>>> Regards
>>> Suho
>>>
>>> If any of above can be considered as "optional", indicate them as well.

 Regards,
 Madhawa

 On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> For the initial cut this looks good, please go ahead with the
> proposal. Let's check some other alternatives and start the development.
>
> Regards
> Suho
>
> On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> You can find the python version of test case written using Pyjnius in
>> below link.
>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>> nius%20Prototype%20Wrap
>> Instructions on building the code is also given their.
>>
>> During development, I noticed following disadvantages of Pyjnius API
>>
>>- Not compatible with Python 3.x.
>>- There are no stable releases. However, the code available in
>>master branch is relatively stable.
>>- Difficult to configure. It is required to develop the library
>>from source. This would make it difficult to distribute an API 
>> developed on
>>Pyjnius.
>>- There are no evidence that a proper release would be done soon.
>>
>> However, Pyjnius supports callback of events from Java to Python.
>> Additionally, it is easier to develop using Pyjnius ones it is 
>> configured.
>>
>> So, I had a looked at some of the other options as well.
>>
>> Java Bridge
>>
>> *Advantages*
>>
>>- Has stable releases available through Python Package Index.
>>(pip)
>>
>> *Disadvantages*
>>
>>- No direct call-back mechanism to receive events from Java side.
>>It is possible to execute Python scripts in Java  but those scripts 
>> would
>>not be in same context as Python Host App.
>>- Comparatively harder to develop on but it is manageable.
>>
>> Py4J
>>
>> The main difference in Py4J is that it uses socket connections to
>> communicate with JVM instead of JNI. (secured socket connections are
>> possible).
>>
>> *Advantages*
>>
>>- Stable release available through Python Package Index (pip).
>>Easy to configure.
>>- Can connect to an already running Java application (with Py4J)
>>and communicate with it. (Thus, can be used to communicate with a 
>> running
>>instance of WSO2 CEP)
>>- Supports callback events.
>>- Well maintained documentation. Active project.
>>
>> *Disadvantages*
>>
>>- Would require a work-around to avoid clashing between socket
>>connection ports when concurrent applications use the API.
>>
>> As of now, I feel Py4J is the most suitable option. 

[Dev] Custom password grant type

2017-03-22 Thread Gottfried Szing

Hi

Target WSO2 product is the WSO2 IS 5.3 and/or API manager 2.1

I am currently implementing a set of custom grant types and one grant type is based on the the existing 
PasswordGrantHandler. The goal is to check in addition to the username, password and scope an additional, 
optional request parameter. If this parameter exists, a special response header should be added. So far, so good.


But it does not work. I have extended the PasswordGrantHandler and check the 
requestParamers in the DTO like here:

public class MyPasswordGrantHandler extends PasswordGrantHandler {

@Override
public boolean validateGrant(OAuthTokenReqMessageContext 
oAuthTokenReqMessageContext)
throws IdentityOAuth2Exception {
// this returns null

oAuthTokenReqMessageContext.getOauth2AccessTokenReqDTO().getRequestParameters()

final boolean authStatus = 
super.validateGrant(oAuthTokenReqMessageContext);

if (authStatus) {
// 
}

return authStatus;
}
}

This works perfectly for other, self-implemented grant handlers, but not for this one as long as it is 
registered it in the identity.xml under the GrantTypeName = password. If I choose a different name, the same 
implementation works as expected.


Any ideas, whats going on under the hood? In the sources I havent found any 
hints.

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


Re: [Dev] Idea Plugin for Siddhi

2017-03-22 Thread Sriskandarajah Suhothayan
It would be good if you can implement a prototype of a text editor in idea
for a simple grammar (prefarably in antler).

Thanks
Suho

On Wed, Mar 22, 2017 at 11:56 PM, Dulaj Atapattu  wrote:

> Hi Suho,
>
> I am a final year Computer Science and Engineering Undergraduate of
> University of Moratuwa. I have some previous experience in IntelliJ IDEA
> plugin development. I have developed a embedded graphical designer for JSON
> files for IntelliJ IDEA. Therefore I would like to develop the Idea Plugin
> for Siddhi as my GSOC project.
>
> I have already finished setting up the development environment with
> intellij-community source code. Now I am getting familiar with ANTLR. I
> will soon start writing a proposal. Can you please mention what to do in
> first as my next steps.
>
> Thank you.
>
> --
> *Dulaj Atapattu*
> Secretary | IEEE Computer Society
> Undergraduate | Department of Computer Science and Engineering
> University of Moratuwa
> Tel: +94712481879 <071%20248%201879>
> [image:
> https://twitter.com/DRAtapattu] [image:
> https://www.facebook.com/dulaj.atapattu]
> 
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Idea Plugin for Siddhi

2017-03-22 Thread Dulaj Atapattu
Hi Suho,

I am a final year Computer Science and Engineering Undergraduate of
University of Moratuwa. I have some previous experience in IntelliJ IDEA
plugin development. I have developed a embedded graphical designer for JSON
files for IntelliJ IDEA. Therefore I would like to develop the Idea Plugin
for Siddhi as my GSOC project.

I have already finished setting up the development environment with
intellij-community source code. Now I am getting familiar with ANTLR. I
will soon start writing a proposal. Can you please mention what to do in
first as my next steps.

Thank you.

-- 
*Dulaj Atapattu*
Secretary | IEEE Computer Society
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Tel: +94712481879
[image:
https://twitter.com/DRAtapattu] [image:
https://www.facebook.com/dulaj.atapattu]

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


Re: [Dev] GSOC 2017 Account Chooser

2017-03-22 Thread Harsha Thirimanna
Hi Anuradha,

Glad to see your interest on this..

You have already seen how simultaneous logins with multiple accounts -by
supported in Google.

We need  to have an endpoint under WSO2 Identity Server (IdP) - where user
can add multiple accounts - and there will be one account, which is the
default one.

At the same time user should be able to switch between different user
accounts.

Can you please read the AccountChooser spec and come up with a proposal...?

We have to do this for IS 5.3.0.

*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 Wed, Mar 22, 2017 at 12:10 AM, Anuradha Gunasinghe <
anuradha.2014...@iit.ac.lk> wrote:

> Hi Sir,
>
> I am a student in IIT and trying to work for a GSOC project this year. I
> went thorough the list of projects from WSO2 and thought to try out this
> "Account Chooser" project.
> As I followed the references that you had pointed out in the proposal,
> this is public specification that is provided by google. When we login to
> the gmail, we have this option.
> As I understood the scenario from WSO2 IS side, we have to work in
> following key areas,
>
> 1. Provide the Account Chooser UI capability to the login page or some
> other landing pages as same as google doing as follows.
>
>
> ​
>
> 2. Provide the back end capabilities to support this feature.
> 3. Following the specification and make the implementation full compliant
> to the specification.
>
> What is the next major release that you are going to do in WSO2 IS ? Then
> we can align with that and i can try out the current login scenario as
> well. Is that possible to build the  latest one and try out ?
>
> thanks
> Anuradha Gunasinghe.
>
> ___
> 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] about spark yarn mode and wso2 ml

2017-03-22 Thread Nirmal Fernando
[removing architecture@]
Hi Roger,

Could you please elaborate more?

On Wed, Mar 22, 2017 at 10:23 PM, Roger Giuffre 
wrote:

> Hello.
>
> Can you take off a doubt?
>
> If I want to connect the WSO2 ml ,for example google dataprocess, that
> manages a cluster in yarn mode, can i still attach the spark SparkContext to
> its master?
> This is certainly true for a cluster in standalone mode or in mesos mode.
>
> Thanks
>
> Roger
>
> ___
> 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
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 - Proposal 20: [IS] OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-03-22 Thread Dinuksha Ishwari
Hi Maduranga,

I have referred the given code [1] and observed that DCRProcessor will only
process requests that call the endpoint /identity/register as OAuth2.0
specification and will not process the the calls to
/identity/connect/register which is the endpoint specified in OpenIDConnect
specification for DCR. Correct me if I am wrong.

I would appreciate if you could provide me some more information regarding
exposing an endpoint for the custom component of DCRM.

[1] https://github.com/wso2-extensions/identity-inbound-
auth-oauth/blob/master/components/org.wso2.carbon.
identity.oauth.dcr/src/main/java/org/wso2/carbon/identity/
oauth/dcr/processor/DCRProcessor.java

Thank you,
Dinuksha.

On Tue, Mar 21, 2017 at 11:54 PM, Maduranga Siriwardena 
wrote:

> Hi Dinuksha,
>
> Glad to hear that you have made progress with the project.
>
> As a start, exposing a separate servlet would be okay. But going forward
> with the project, you may have to use the approach used in the DCR endpoint
> which is [1] (or may have to use a cxf endpoint).
>
> [1] https://github.com/wso2-extensions/identity-inbound-
> auth-oauth/blob/master/components/org.wso2.carbon.
> identity.oauth.dcr/src/main/java/org/wso2/carbon/identity/
> oauth/dcr/processor/DCRProcessor.java
>
> Thanks,
>
> On Tue, Mar 21, 2017 at 12:26 PM, Dinuksha Ishwari <
> dinuksha.ishw...@gmail.com> wrote:
>
>> Hi Devs/Mentors,
>>
>> This is to inform you the progress made so far with the project. In order
>> to get familiar with the wso2 codebase and the product building process, I
>> built the kernel and product-is for IS 5.3.0 successfully. Then I patched
>> the current DCR component, built it and added as a patch to IS and got the
>> modifications applied to the server.
>>
>> Now I am working on a basic implementation of the DCRM where I have
>> written a separate component and exposed a servlet from that. I am now
>> modifying it to accept required parameters and to get the basic flow
>> working. I will share the code via github soon for reviewing. Meanwhile I'm
>> working on preparing the project proposal as well.
>>
>> Regards,
>> Dinuksha.
>>
>> On Fri, Mar 17, 2017 at 8:04 AM, Dinuksha Ishwari <
>> dinuksha.ishw...@gmail.com> wrote:
>>
>>> Hi Omindu,
>>>
>>> Thanks for the information.
>>>
>>>
>>>
>>> On Fri, Mar 17, 2017 at 1:44 AM, Omindu Rathnaweera 
>>> wrote:
>>>
 Hi Dinuksha,

 For OAuth, those two are the only libraries we use.


 On Wed, Mar 15, 2017 at 10:16 AM, Dinuksha Ishwari <
 dinuksha.ishw...@gmail.com> wrote:

> Hi,
>
> When I was going through the code base, I observed that Nimbus and
> Apache Oltu libraries are used for the OAuth2.0 implementation. Could you
> kindly let me know what other libraries are used?
>
> Thanks,
> Dinuksha
>
>
>
> On Mon, Feb 27, 2017 at 9:51 AM, Dinuksha Ishwari <
> dinuksha.ishw...@gmail.com> wrote:
>
>> Hi Ishara,
>>
>> I have read the OAuth2.0 DCR and DCRM specification and familiarized
>> myself with the WSO2 Identity Server DCR implementation. I have also
>> written a few blog posts [1][2] in order to share my experience.
>>
>> I would be very much grateful if you could update the jira
>> tickets[3][4] providing more information so that I can attempt to 
>> identify
>> the problem and fix the issue.
>>
>> [1] http://dinukshaish.blogspot.com/2017/02/oauth-20-in-nutshell.html
>> [2] http://dinukshaish.blogspot.com/2017/02/oauth-20-dynamic-cli
>> ent-registration.html
>> [3] https://wso2.org/jira/browse/IDENTITY-5184
>> [4] https://wso2.org/jira/browse/IDENTITY-5185
>>
>> Thanks,
>> Dinuksha
>>
>> On Fri, Feb 24, 2017 at 11:53 AM, Ishara Karunarathna <
>> isha...@wso2.com> wrote:
>>
>>>
>>>
>>> On Fri, Feb 24, 2017 at 11:16 AM, Dinuksha Ishwari <
>>> dinuksha.ishw...@gmail.com> wrote:
>>> [+ dev]
>>>
 Hi Ishara,

 Thank you for the information. I'm in the process of reading the
 related specifications and getting familiar with the code base further.
 Will get back to you soon.

 Thanks,
 Dinuksha.

 On Fri, Feb 24, 2017 at 10:14 AM, Ishara Karunarathna <
 isha...@wso2.com> wrote:

> Hi Dinuksha,
>
> Thank you for your interest in GSoC and the effort on WSO2IS DCRM
> implementation.
> It’s great  that you have already started working with IS code
> base. Further you can go through current DCR implementation from
> here[1] and go through that code.
>
> You may find open jiras here[2]. Following are related to current
> DCR implementation
> https://wso2.org/jira/browse/IDENTITY-5185
> https://wso2.org/jira/browse/IDENTITY-5184
>
> Thanks,
> Ishara
>

[Dev] about spark yarn mode and wso2 ml

2017-03-22 Thread Roger Giuffre
Hello.

Can you take off a doubt?

If I want to connect the WSO2 ml ,for example google dataprocess, that
manages a cluster in yarn mode, can i still attach the spark SparkContext to
its master?
This is certainly true for a cluster in standalone mode or in mesos mode.

Thanks

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


Re: [Dev] GSoC 2017 - Proposal 20: [IS] OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-03-22 Thread Maduranga Siriwardena
Hi Dinuksha,

DCR has 3 specs.

   - OAuth 2.0 Dynamic Client Registration
   - OAuth 2.0 Dynamic Client Registration Management
   - OpenID Connect Dynamic Client Registration

OAuth 2.0 Dynamic Client Registration is handled by [1]. And OpenID Connect
Dynamic Client Registration is handled by [2]. This is the class that
handles requests for /identity/connect/register. OAuth 2.0 Dynamic Client
Registration Management is the one you are going to implement.

As a start you can just register a servlet and implement the functionality.
We will guide you how to register a processor for identity endpoint, if we
decide to go in that path.

I hope that I answered your questions. Get back to us of you need anything
clarified.


[1]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth.dcr/src/main/java/org/wso2/carbon/identity/oauth/dcr/processor/DCRProcessor.java
[2]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oidc.dcr/src/main/java/org/wso2/carbon/identity/oidc/dcr/processor/OIDCDCRProcessor.java

Thanks,


On Wed, Mar 22, 2017 at 10:53 AM, Dinuksha Ishwari <
dinuksha.ishw...@gmail.com> wrote:

> Hi Maduranga,
>
> I have referred the given code [1] and observed that DCRProcessor will
> only process requests that call the endpoint /identity/register as OAuth2.0
> specification and will not process the the calls to
> /identity/connect/register which is the endpoint specified in OpenIDConnect
> specification for DCR. Correct me if I am wrong.
>
> I would appreciate if you could provide me some more information regarding
> exposing an endpoint for the custom component of DCRM.
>
> [1] https://github.com/wso2-extensions/identity-inbound-auth
> -oauth/blob/master/components/org.wso2.carbon.identity.
> oauth.dcr/src/main/java/org/wso2/carbon/identity/oauth/
> dcr/processor/DCRProcessor.java
>
> Thank you,
> Dinuksha.
>
> On Tue, Mar 21, 2017 at 11:54 PM, Maduranga Siriwardena <
> madura...@wso2.com> wrote:
>
>> Hi Dinuksha,
>>
>> Glad to hear that you have made progress with the project.
>>
>> As a start, exposing a separate servlet would be okay. But going forward
>> with the project, you may have to use the approach used in the DCR endpoint
>> which is [1] (or may have to use a cxf endpoint).
>>
>> [1] https://github.com/wso2-extensions/identity-inbound-auth
>> -oauth/blob/master/components/org.wso2.carbon.identity.
>> oauth.dcr/src/main/java/org/wso2/carbon/identity/oauth/
>> dcr/processor/DCRProcessor.java
>>
>> Thanks,
>>
>> On Tue, Mar 21, 2017 at 12:26 PM, Dinuksha Ishwari <
>> dinuksha.ishw...@gmail.com> wrote:
>>
>>> Hi Devs/Mentors,
>>>
>>> This is to inform you the progress made so far with the project. In
>>> order to get familiar with the wso2 codebase and the product building
>>> process, I built the kernel and product-is for IS 5.3.0 successfully. Then
>>> I patched the current DCR component, built it and added as a patch to IS
>>> and got the modifications applied to the server.
>>>
>>> Now I am working on a basic implementation of the DCRM where I have
>>> written a separate component and exposed a servlet from that. I am now
>>> modifying it to accept required parameters and to get the basic flow
>>> working. I will share the code via github soon for reviewing. Meanwhile I'm
>>> working on preparing the project proposal as well.
>>>
>>> Regards,
>>> Dinuksha.
>>>
>>> On Fri, Mar 17, 2017 at 8:04 AM, Dinuksha Ishwari <
>>> dinuksha.ishw...@gmail.com> wrote:
>>>
 Hi Omindu,

 Thanks for the information.



 On Fri, Mar 17, 2017 at 1:44 AM, Omindu Rathnaweera 
 wrote:

> Hi Dinuksha,
>
> For OAuth, those two are the only libraries we use.
>
>
> On Wed, Mar 15, 2017 at 10:16 AM, Dinuksha Ishwari <
> dinuksha.ishw...@gmail.com> wrote:
>
>> Hi,
>>
>> When I was going through the code base, I observed that Nimbus and
>> Apache Oltu libraries are used for the OAuth2.0 implementation. Could you
>> kindly let me know what other libraries are used?
>>
>> Thanks,
>> Dinuksha
>>
>>
>>
>> On Mon, Feb 27, 2017 at 9:51 AM, Dinuksha Ishwari <
>> dinuksha.ishw...@gmail.com> wrote:
>>
>>> Hi Ishara,
>>>
>>> I have read the OAuth2.0 DCR and DCRM specification and familiarized
>>> myself with the WSO2 Identity Server DCR implementation. I have also
>>> written a few blog posts [1][2] in order to share my experience.
>>>
>>> I would be very much grateful if you could update the jira
>>> tickets[3][4] providing more information so that I can attempt to 
>>> identify
>>> the problem and fix the issue.
>>>
>>> [1] http://dinukshaish.blogspot.com/2017/02/oauth-20-in-nutshell
>>> .html
>>> [2] http://dinukshaish.blogspot.com/2017/02/oauth-20-dynamic-cli
>>> ent-registration.html
>>> [3] 

[Dev] (no subject)

2017-03-22 Thread Menuka Warushavithana

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


Re: [Dev] GSOC 2017 CLI Tool for WSO2 Identity Server

2017-03-22 Thread Farasath Ahamed
Hi Isuranga,

I went through the repo and created some git issues. Appreciate if you
could have a look.


Thanks,
Farasath.

Farasath Ahamed
Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 




On Wed, Mar 22, 2017 at 10:50 AM, Isuranga Perera  wrote:

> Hi Farasath
>
> Sorry for the inconvenience. I have corrected it now.
>
> regards
>
>
> [image: photo]
> Isuranga Perera
> at University of Colombo School of Computing
> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
> isurangamper...@gmail.com
>  W  https://isurangaperera.wordpress.com/
> 
>
> 
> 
> 
> 
> Get a signature like this: Click here!
> 
>
> On Wed, Mar 22, 2017 at 10:47 AM, Farasath Ahamed 
> wrote:
>
>> Hi Isuranga,
>>
>> The repo[1] gives a 404 now. Previously it was accessible. Any idea why?
>>
>> [1] https://github.com/IsurangaPerera/cli
>>
>>
>> Thanks,
>> Farasath
>>
>> Farasath Ahamed
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>> 
>>
>>
>>
>> On Thu, Mar 16, 2017 at 8:55 AM, Isuranga Perera <
>> isurangamper...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> Sorry for the late response. [1] is the link to Github repo. Within a
>>> day or two I'll be able to complete the prototype.
>>>
>>>  [1] https://github.com/IsurangaPerera/cli
>>>
>>> Regards
>>>
>>>
>>> [image: photo]
>>> Isuranga Perera
>>> at University of Colombo School of Computing
>>> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
>>> isurangamper...@gmail.com
>>>  W  https://isurangaperera.wordpress.com/
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> Get a signature like this: Click here!
>>> 
>>>
>>> On Wed, Mar 15, 2017 at 3:36 PM, Harsha Thirimanna 
>>> wrote:
>>>
 Yes , it would be ok if it is one the way,  we would like to look in to
 that. Please share the repo .

 On Mar 15, 2017 3:23 PM, "Farasath Ahamed"  wrote:

> Hi Isuranga,
>
> Can you share the link to the GitHub repo so that we can have a look
> and provide feedback?
>
>
> Thanks,
> Farasath.
>
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
> 
>
>
>
> On Wed, Mar 15, 2017 at 3:19 PM, Isuranga Perera <
> isurangamper...@gmail.com> wrote:
>
>> Hi Harsha
>>
>> I'm almost done with the prototype which currently supports only *Basic
>> Authentication*. Although I had to face some issues related to x.509
>> verification and wsdl2go code generation I was able to solve them. The
>> prototype is a complete go implementation. I'll send you the prototype
>> within a day or two and then proceed for the project proposal. I can add
>> you as a collaborator for the project on GitHub if needed. I'll let you
>> know any further clarification is needed
>>
>> Regards
>>
>>
>>
>> [image: photo]
>> Isuranga Perera
>> at University of Colombo School of Computing
>> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
>> isurangamper...@gmail.com
>>  W  https://isurangaperera.wordpress.com/
>> 
>>
>> 
>> 
>> 
>> 
>> Get a signature like this: Click here!
>> 

Re: [Dev] GSoC 2017 - JMeter Test Manager for Distributed Deployments of WSO2 Servers

2017-03-22 Thread Yasassri Ratnayake
Hi Thilina,

We have missed some requirements. Please consider the following as well.

1. We need a Tomcat instance to host the Backends(Weapps) which are
required by the Test Scripts. So we need another instance spawned with
Tomcat. After spawning the instance you can deploy the prerequisite web
apps. (These web apps will be available in the Test-Repo under resources)
2. Also when deploying Jmeter we need to copy 3rd party Jars to Jmeter.
(These are also available in the repository)

Also answering your question about the Deployment profiles. We have
identified several components to make the scope manageable.

*Products*
ESB | V4.9 & V5.0
APIM | V1.9 & V2.0

*JDK*
JAVA | V1.7 & V1.8

*DataBase*
MySQL

*Third Party Servers*
Brokers | ActiveMQ 5.10 | WSO2 MB 3.1 (Only applicable when ESB is used)

So a Sample Profile would be, *ESB 4.9 + JAVA 1.7 + MYSQL + ActiveMQ*. For
now, you can concentrate on the above components when determining a
deployment profile. But your solution should be scalable.

Please let us know if you have more queries regarding this.

With Regards,

On Wed, Mar 22, 2017 at 4:01 AM, Thilina Manamgoda 
wrote:

> Hi Yasassri,
>
> This the order of operations,
>
>
>1.
>
>Get WSO2 product profile
>2.
>
>Build DB Docker images
>3.
>
>Deploy DB in Kubernetes cluster
>4.
>
>Get DB Deployment details from Kubernetes cluster
>5.
>
>Build the WSO2 product docker images with DB info
>6.
>
>Deploy products in Kubernetes cluster
>7.
>
>Get products Deployment details from Kubernetes cluster
>8.
>
>Build Log DB Docker Image
>9.
>
>Deploy Log DB in Kubernetes cluster
>10.
>
>Get Log DB Deployment details from Kubernetes cluster
>11.
>
>Get Jmeter profile
>12.
>
>Build the Docker image with Log DB
>13.
>
>Deploy Jmeter server in Kubernetes cluster
>14.
>
>Get Deployment details from Kubernetes cluster
>15.
>
>Run the Jmeter Scripts
>16.
>
>Store logs in the Log DB
>17.
>
>Get logs from Log DB
>18.
>
>Generate HTML Report
>
>
>
> Can you plese explain a example product deployment profile?.
>
>
> regards,
>
> Thilina Manamgoda
>
>
> On Tue, Mar 21, 2017 at 5:27 PM, Yasassri Ratnayake 
> wrote:
>
>> Hi Thilina,
>>
>> Please find my comments inline.
>>
>> On Mon, Mar 20, 2017 at 6:57 PM, Thilina Manamgoda > > wrote:
>>
>>> Hi Yasassri,
>>>
>>> First of all, sorry for the late reply. What we can do in a Jmeter
>>> cluster mode is run a test with more users. So if we have to run Jmeter
>>> Scripts parallel we have to do it using separate  Jmeter instances. Yes of
>>> course I will consider the requirements that you mentioned.
>>>
>>>   Is a Java web app good way to go ?
>>>
>>
>> Yes you can develop this as a WebApp.
>>
>>
>>> It will contain the UI, Kubernetes client and Docker client. Now, after
>>> the tests are done the logic in the Java class  HTMLReportGenereater, is
>>> executed . Similarly we have to export the final logs(Application logs,
>>> Jmeter logs, Test result logs) to a external database. Then we can import
>>> those logs to the web app and do the HTML Generating. This is a simple
>>> diagram that shows main tasks in this approach,
>>>
>>> [image: jmeter.png]
>>>
>>> Please let me know whether this approach is fine or not.
>>>
>>
>> Overrall architecture seems ok, but the order of oeprations are not
>> clear. Also how are we adding deployment profile to the webapp?
>>
>> With Regards,
>> --
>> Yasassri Ratnayake
>> Senior Software Engineer - QA
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>> *Mobile : +94715933168 <+94%2071%20593%203168>*
>> *Blogs : http://yasassriratnayake.blogspot.com
>> *
>> *http://wso2logs.blogspot.com *
>>
>
>


-- 
Yasassri Ratnayake
Senior Software Engineer - QA
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
*Mobile : +94715933168*
*Blogs : http://yasassriratnayake.blogspot.com
*
*http://wso2logs.blogspot.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC2

2017-03-22 Thread Eranda Rajapakshe
Tested the feature, microservice hot deployment in server mode.

[x] Stable - go ahead and release

Thanks,

On Wed, Mar 22, 2017 at 12:19 PM, Danesh Kuruppu  wrote:

> Hi Devs,
>
> This is the 2nd Release Candidate of WSO2 MSF4J(Microservices Framework
> for Java) 2.2.0.
>
> Please download, test the framework and vote. The vote will be open for
> 72 hours or as needed.
> Refer to GitHub readmes for guides.
>
> * Source and binary distribution files:*
> https://github.com/wso2/msf4j/releases/tag/v2.2.0-rc2
>
> *Maven staging repository:*
> https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1015
>
> *The tag to be voted upon:*
> https://github.com/wso2/msf4j/tree/v2.2.0-rc2
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Thank you,
> Platform Team
> --
>
> *Danesh Kuruppu*
> Senior Software Engineer | WSO2
>
> Email: dan...@wso2.com
> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
> Web: WSO2 Inc 
>
>


-- 
*Eranda Rajapakshe*
Software Engineer
WSO2 Inc.
Mobile : +94784822608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC2

2017-03-22 Thread Danesh Kuruppu
Hi Devs,

This is the 2nd Release Candidate of WSO2 MSF4J(Microservices Framework for
Java) 2.2.0.

Please download, test the framework and vote. The vote will be open for 72
hours or as needed.
Refer to GitHub readmes for guides.

* Source and binary distribution files:*
https://github.com/wso2/msf4j/releases/tag/v2.2.0-rc2

*Maven staging repository:*
https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1015

*The tag to be voted upon:*
https://github.com/wso2/msf4j/tree/v2.2.0-rc2


[ ] Broken - do not release (explain why)
[ ] Stable - go ahead and release

Thank you,
Platform Team
-- 

*Danesh Kuruppu*
Senior Software Engineer | WSO2

Email: dan...@wso2.com
Mobile: +94 (77) 1690552
Web: WSO2 Inc 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev