Re: [Dev] Supporting MongoDB as a Secondary Userstore : an Extension for WSO2 Platform

2017-01-08 Thread Asantha Thilina
Hi all,

I am willing to contribute and January (30, 31) is ok for me for a meeting

thanks,
Asantha

On Sun, Jan 8, 2017 at 10:20 PM, Tharindu Edirisinghe 
wrote:

> Hi Devs,
>
> Along with Google Summer of Code 2016, we initiated this project [1] for
> supporting MongoDB as a secondary userstore for WSO2 products.
>
> Asantha (CC'ed) here successfully completed the project where it supported
> IS 5.1.0. (for IS 5.2.0 we need to do some minor modification to get it to
> working and for IS 5.3.0 which is about to be released.. we'll have to do
> some more changes because the claim management API is changed).
>
> We cannot ship this with a WSO2 product, because it is not scalable. The
> end user might use a different version of MongoDB database or JDBC driver,
> releasing patches would be difficult if any bug is found etc.
>
> Therefore the best way is to develop it as a connector (extension) and
> publicly release to WSO2 store.
>
> For that, I am initiating this email where we can discuss on how to
> proceed with this.
>
> @Kathees - I hope you can take the ownership of this. We can get Asantha's
> help as well whenever necessary.
>
> My idea is to have a meeting for this during the last week of January
> (30,31) and come up with a plan.
>
> [1] https://docs.wso2.com/display/GSoC/Project+Proposals+for+
> 2016#ProjectProposalsfor2016-Proposal21:[IS]DocumentBasedNoSQLSupportforWS
> O2IdentityServerDatabase
>
> Thanks,
> TharinduE
>
> --
>
> Tharindu Edirisinghe
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586 <+94%2077%20518%201586>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-30 Thread Asantha Thilina
Hi all,

thanks a lot for all the support and guidance given me through out the last
three months to success my project in GSoC 2016.I have learn a lot in last
three months by working in GSoC with you guys, specially i would be really
thankful for my mentor Tharindu Edirisinghe for all the support given me
and i highly appreciate all the support  giving me to success my research
project as well

Thanks,
Asantha

On Tue, Aug 23, 2016 at 6:29 PM, Tharindu Edirisinghe 
wrote:

> Excellent work Asantha.
>
> We really appreciate your effort put towards making this project a success
> !
>
> On Mon, Aug 22, 2016 at 8:52 PM, Asantha Thilina  > wrote:
>
>> Hi all,
>>
>> I have prepared my final report in GSoC[1] and there i have added all my
>> repositories,PR,blog posts,documents and mail threads and i have prepared a
>> final blog post here[2] mentioning all my experience in GSoC 2016
>>
>> [1] https://asanthamax.github.io/mongodbuserstore/
>> [2] http://asanthamax.blogspot.com/2016/08/my-gsoc-final-summary.html
>>
>> Thanks,
>> Asantha
>>
>>
>> On Sat, Aug 20, 2016 at 1:23 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Chamila,
>>>
>>> I have added new pull requests to orbit[1] for new org.json version
>>>
>>> [1]https://github.com/wso2/orbit/pull/225
>>>
>>> thanks,
>>> Asantha
>>>
>>> On Fri, Aug 19, 2016 at 9:58 PM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> For creating new orbit, you will have to send 1 PR to wso2/orbit
>>>> repository[1] as well. There inside json folder, you'll have to define a
>>>> new json orbit with new version (eg: 3.0.0wso2v2) and there you will have
>>>> to refer the new json version you are depending on.
>>>>
>>>> In your PR, you are referring to 3.0.0wso2v1 which is depending on the
>>>> older version we are talking about. So this will still cause the issue you
>>>> are talking.
>>>>
>>>> Thank You!
>>>>
>>>> On Sat, Aug 20, 2016 at 12:47 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Johann,
>>>>>
>>>>> first of all ,sorry for the late reply earlier i wasn't added org.json
>>>>> to bundleDef now i have fixed the issue and i have added new orbit as
>>>>> chamila mentioned for org.json as defined in here[1] i have added version
>>>>> 20160212 because version 20140107  which is already in IS causing
>>>>> some problems for my userstore methods even it successfully deployed 
>>>>> ,after
>>>>> adding version 20160212 solved the issue now my userstore is deploy
>>>>> org.json  20160212  also to the IS during packaging and i have
>>>>> updated the PR[2] with the latest modifications
>>>>>
>>>>> [1]https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1/pom.xml
>>>>> [2]https://github.com/wso2-extensions/identity-userstore-mon
>>>>> godb/pull/1
>>>>>
>>>>> thanks,
>>>>> Asantha
>>>>>
>>>>> On Fri, Aug 19, 2016 at 5:45 AM, Johann Nallathamby 
>>>>> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> As Chamila mentioned you need to bundle the required library in your
>>>>>> feature as well, so that it is self contained, and can be installed
>>>>>> independently in any carbon server.
>>>>>>
>>>>>> Have you added that in your PR? I couldn't see a bundleDef for
>>>>>> org.json.
>>>>>>
>>>>>> Regards,
>>>>>> Johann.
>>>>>>
>>>>>> On Fri, Aug 19, 2016 at 3:04 PM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> First of all let me apologize for the late reply ,I have changed the
>>>>>>> org.json version as chamila said and now it's working no need to add 
>>>>>>> json
>>>>>>> lib manually and version changed will not affected to any of my code i 
>>>>>>> have
>>>>>>> updated the PR[1] with latest modifications now it's need
>>>

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-22 Thread Asantha Thilina
Hi all,

I have prepared my final report in GSoC[1] and there i have added all my
repositories,PR,blog posts,documents and mail threads and i have prepared a
final blog post here[2] mentioning all my experience in GSoC 2016

[1] https://asanthamax.github.io/mongodbuserstore/
[2] http://asanthamax.blogspot.com/2016/08/my-gsoc-final-summary.html

Thanks,
Asantha


On Sat, Aug 20, 2016 at 1:23 AM, Asantha Thilina 
wrote:

> Hi Chamila,
>
> I have added new pull requests to orbit[1] for new org.json version
>
> [1]https://github.com/wso2/orbit/pull/225
>
> thanks,
> Asantha
>
> On Fri, Aug 19, 2016 at 9:58 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Asantha,
>>
>> For creating new orbit, you will have to send 1 PR to wso2/orbit
>> repository[1] as well. There inside json folder, you'll have to define a
>> new json orbit with new version (eg: 3.0.0wso2v2) and there you will have
>> to refer the new json version you are depending on.
>>
>> In your PR, you are referring to 3.0.0wso2v1 which is depending on the
>> older version we are talking about. So this will still cause the issue you
>> are talking.
>>
>> Thank You!
>>
>> On Sat, Aug 20, 2016 at 12:47 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Johann,
>>>
>>> first of all ,sorry for the late reply earlier i wasn't added org.json
>>> to bundleDef now i have fixed the issue and i have added new orbit as
>>> chamila mentioned for org.json as defined in here[1] i have added version
>>> 20160212 because version 20140107  which is already in IS causing some
>>> problems for my userstore methods even it successfully deployed ,after
>>> adding version 20160212 solved the issue now my userstore is deploy
>>> org.json  20160212  also to the IS during packaging and i have updated
>>> the PR[2] with the latest modifications
>>>
>>> [1]https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1/pom.xml
>>> [2]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
>>>
>>> thanks,
>>> Asantha
>>>
>>> On Fri, Aug 19, 2016 at 5:45 AM, Johann Nallathamby 
>>> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> As Chamila mentioned you need to bundle the required library in your
>>>> feature as well, so that it is self contained, and can be installed
>>>> independently in any carbon server.
>>>>
>>>> Have you added that in your PR? I couldn't see a bundleDef for org.json.
>>>>
>>>> Regards,
>>>> Johann.
>>>>
>>>> On Fri, Aug 19, 2016 at 3:04 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> First of all let me apologize for the late reply ,I have changed the
>>>>> org.json version as chamila said and now it's working no need to add json
>>>>> lib manually and version changed will not affected to any of my code i 
>>>>> have
>>>>> updated the PR[1] with latest modifications now it's need
>>>>> mongodb-java-driver only to run the module no other extra library required
>>>>>
>>>>> [1]https://github.com/wso2-extensions/identity-userstore-mon
>>>>> godb/pull/1
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Fri, Aug 19, 2016 at 1:26 AM, Chamila Wijayarathna <
>>>>> cdwijayarat...@gmail.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> If you have used any new features of org.json which is not available
>>>>>> in that old version, I think you will have to create an orbit with new
>>>>>> org.json version.
>>>>>>
>>>>>> And I think it (either new or old version) need to be packed in your
>>>>>> feature, so it can be installed into any carbon based product.
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> On Fri, Aug 19, 2016 at 3:17 PM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Chamila,
>>>>>>>
>>>>>>> ok thanks for the comment then i will change the version of my
>>>>>>> dependency and test it
>>>>>>>
>>>>>>>

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-19 Thread Asantha Thilina
Hi Chamila,

I have added new pull requests to orbit[1] for new org.json version

[1]https://github.com/wso2/orbit/pull/225

thanks,
Asantha

On Fri, Aug 19, 2016 at 9:58 PM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Hi Asantha,
>
> For creating new orbit, you will have to send 1 PR to wso2/orbit
> repository[1] as well. There inside json folder, you'll have to define a
> new json orbit with new version (eg: 3.0.0wso2v2) and there you will have
> to refer the new json version you are depending on.
>
> In your PR, you are referring to 3.0.0wso2v1 which is depending on the
> older version we are talking about. So this will still cause the issue you
> are talking.
>
> Thank You!
>
> On Sat, Aug 20, 2016 at 12:47 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Johann,
>>
>> first of all ,sorry for the late reply earlier i wasn't added org.json to
>> bundleDef now i have fixed the issue and i have added new orbit as chamila
>> mentioned for org.json as defined in here[1] i have added version 20160212
>> because version 20140107  which is already in IS causing some problems
>> for my userstore methods even it successfully deployed ,after adding
>> version 20160212 solved the issue now my userstore is deploy org.json  
>> 20160212
>>  also to the IS during packaging and i have updated the PR[2] with the
>> latest modifications
>>
>> [1]https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1/pom.xml
>> [2]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
>>
>> thanks,
>> Asantha
>>
>> On Fri, Aug 19, 2016 at 5:45 AM, Johann Nallathamby 
>> wrote:
>>
>>> Hi Asantha,
>>>
>>> As Chamila mentioned you need to bundle the required library in your
>>> feature as well, so that it is self contained, and can be installed
>>> independently in any carbon server.
>>>
>>> Have you added that in your PR? I couldn't see a bundleDef for org.json.
>>>
>>> Regards,
>>> Johann.
>>>
>>> On Fri, Aug 19, 2016 at 3:04 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> First of all let me apologize for the late reply ,I have changed the
>>>> org.json version as chamila said and now it's working no need to add json
>>>> lib manually and version changed will not affected to any of my code i have
>>>> updated the PR[1] with latest modifications now it's need
>>>> mongodb-java-driver only to run the module no other extra library required
>>>>
>>>> [1]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
>>>>
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Fri, Aug 19, 2016 at 1:26 AM, Chamila Wijayarathna <
>>>> cdwijayarat...@gmail.com> wrote:
>>>>
>>>>> Hi Asantha,
>>>>>
>>>>> If you have used any new features of org.json which is not available
>>>>> in that old version, I think you will have to create an orbit with new
>>>>> org.json version.
>>>>>
>>>>> And I think it (either new or old version) need to be packed in your
>>>>> feature, so it can be installed into any carbon based product.
>>>>>
>>>>> Thanks!
>>>>>
>>>>> On Fri, Aug 19, 2016 at 3:17 PM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Chamila,
>>>>>>
>>>>>> ok thanks for the comment then i will change the version of my
>>>>>> dependency and test it
>>>>>>
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>> On Fri, Aug 19, 2016 at 1:13 AM, Chamila Wijayarathna <
>>>>>> cdwijayarat...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Asantha, Tharindu,
>>>>>>>
>>>>>>> I think IS already packs json, but the version is 20140107 which
>>>>>>> comes from wso2 orbit bundle [1]. You are receiving the error due to
>>>>>>> version mismatch, because you are using  version 20160212.
>>>>>>>
>>>>>>> Can you try using existing dependency and check if your features
>>>>>>> work okay with that version?\\
>>>>>>>
>>>>>>> Than

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-19 Thread Asantha Thilina
Hi Johann,

first of all ,sorry for the late reply earlier i wasn't added org.json to
bundleDef now i have fixed the issue and i have added new orbit as chamila
mentioned for org.json as defined in here[1] i have added version 20160212
because version 20140107  which is already in IS causing some problems for
my userstore methods even it successfully deployed ,after adding version
20160212 solved the issue now my userstore is deploy org.json  20160212
 also to the IS during packaging and i have updated the PR[2] with the
latest modifications

[1]https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1/pom.xml
[2]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1

thanks,
Asantha

On Fri, Aug 19, 2016 at 5:45 AM, Johann Nallathamby  wrote:

> Hi Asantha,
>
> As Chamila mentioned you need to bundle the required library in your
> feature as well, so that it is self contained, and can be installed
> independently in any carbon server.
>
> Have you added that in your PR? I couldn't see a bundleDef for org.json.
>
> Regards,
> Johann.
>
> On Fri, Aug 19, 2016 at 3:04 PM, Asantha Thilina  > wrote:
>
>> Hi all,
>>
>> First of all let me apologize for the late reply ,I have changed the
>> org.json version as chamila said and now it's working no need to add json
>> lib manually and version changed will not affected to any of my code i have
>> updated the PR[1] with latest modifications now it's need
>> mongodb-java-driver only to run the module no other extra library required
>>
>> [1]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
>>
>> Thanks,
>> Asantha
>>
>> On Fri, Aug 19, 2016 at 1:26 AM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Asantha,
>>>
>>> If you have used any new features of org.json which is not available in
>>> that old version, I think you will have to create an orbit with new
>>> org.json version.
>>>
>>> And I think it (either new or old version) need to be packed in your
>>> feature, so it can be installed into any carbon based product.
>>>
>>> Thanks!
>>>
>>> On Fri, Aug 19, 2016 at 3:17 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Chamila,
>>>>
>>>> ok thanks for the comment then i will change the version of my
>>>> dependency and test it
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Fri, Aug 19, 2016 at 1:13 AM, Chamila Wijayarathna <
>>>> cdwijayarat...@gmail.com> wrote:
>>>>
>>>>> Hi Asantha, Tharindu,
>>>>>
>>>>> I think IS already packs json, but the version is 20140107 which comes
>>>>> from wso2 orbit bundle [1]. You are receiving the error due to version
>>>>> mismatch, because you are using  version 20160212.
>>>>>
>>>>> Can you try using existing dependency and check if your features work
>>>>> okay with that version?\\
>>>>>
>>>>> Thank You!
>>>>>
>>>>> [1]. https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1
>>>>>
>>>>> On Fri, Aug 19, 2016 at 3:03 PM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> I meant shipping with the product... by packing with the product.
>>>>>>
>>>>>> Yes, it should be packed by the feature.
>>>>>>
>>>>>> I'll look more into Charon's dependency as well.
>>>>>>
>>>>>> On Fri, Aug 19, 2016 at 10:26 AM, Chamila Wijayarathna <
>>>>>> cdwijayarat...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Harsha,
>>>>>>>
>>>>>>> The license seems to be okay, isn't it? It doesn't mention anything
>>>>>>> that prevent us from using it. Also I think we use same library for json
>>>>>>> related stuff in charon as well. So it can't be an issue IMO.
>>>>>>>
>>>>>>> @Tharindu, Why we should pack this in product? Shouldn't we pack
>>>>>>> this in the feature?
>>>>>>>
>>>>>>> Thank You!
>>>>>>>
>>>>>>> On Fri, Aug 19, 2016 at 2:11 PM, Harsha Thirimanna >>>>>> > wrote:
>>>>>>>
>>>>>>>> As i

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-19 Thread Asantha Thilina
Hi all,

First of all let me apologize for the late reply ,I have changed the
org.json version as chamila said and now it's working no need to add json
lib manually and version changed will not affected to any of my code i have
updated the PR[1] with latest modifications now it's need
mongodb-java-driver only to run the module no other extra library required

[1]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1

Thanks,
Asantha

On Fri, Aug 19, 2016 at 1:26 AM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Hi Asantha,
>
> If you have used any new features of org.json which is not available in
> that old version, I think you will have to create an orbit with new
> org.json version.
>
> And I think it (either new or old version) need to be packed in your
> feature, so it can be installed into any carbon based product.
>
> Thanks!
>
> On Fri, Aug 19, 2016 at 3:17 PM, Asantha Thilina  > wrote:
>
>> Hi Chamila,
>>
>> ok thanks for the comment then i will change the version of my dependency
>> and test it
>>
>> Thanks,
>> Asantha
>>
>> On Fri, Aug 19, 2016 at 1:13 AM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Asantha, Tharindu,
>>>
>>> I think IS already packs json, but the version is 20140107 which comes
>>> from wso2 orbit bundle [1]. You are receiving the error due to version
>>> mismatch, because you are using  version 20160212.
>>>
>>> Can you try using existing dependency and check if your features work
>>> okay with that version?\\
>>>
>>> Thank You!
>>>
>>> [1]. https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1
>>>
>>> On Fri, Aug 19, 2016 at 3:03 PM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> I meant shipping with the product... by packing with the product.
>>>>
>>>> Yes, it should be packed by the feature.
>>>>
>>>> I'll look more into Charon's dependency as well.
>>>>
>>>> On Fri, Aug 19, 2016 at 10:26 AM, Chamila Wijayarathna <
>>>> cdwijayarat...@gmail.com> wrote:
>>>>
>>>>> Hi Harsha,
>>>>>
>>>>> The license seems to be okay, isn't it? It doesn't mention anything
>>>>> that prevent us from using it. Also I think we use same library for json
>>>>> related stuff in charon as well. So it can't be an issue IMO.
>>>>>
>>>>> @Tharindu, Why we should pack this in product? Shouldn't we pack this
>>>>> in the feature?
>>>>>
>>>>> Thank You!
>>>>>
>>>>> On Fri, Aug 19, 2016 at 2:11 PM, Harsha Thirimanna 
>>>>> wrote:
>>>>>
>>>>>> As in the license, there are some restrictions.
>>>>>>
>>>>>> http://www.json.org/license.html
>>>>>>
>>>>>> *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/ha
>>>>>> rsha-thirimanna/10/ab8/122
>>>>>> <http://wso2.com/signature>
>>>>>>
>>>>>> On Fri, Aug 19, 2016 at 9:30 AM, Tharindu Edirisinghe <
>>>>>> tharin...@wso2.com> wrote:
>>>>>>
>>>>>>> Thanks Asantha.
>>>>>>>
>>>>>>> @Johann/Darshana - Would it be possible to pack org.json [1]
>>>>>>> dependency to the product itself ?
>>>>>>>
>>>>>>> [1] https://mvnrepository.com/artifact/org.json/json/20160212
>>>>>>>
>>>>>>> Regards,
>>>>>>> TharinduE
>>>>>>>
>>>>>>> On Fri, Aug 19, 2016 at 12:48 AM, Asantha Thilina <
>>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Tharindu,
>>>>>>>>
>>>>>>>> As you instructed i have finished all above process and i already
>>>>>>>> sent a PR[1] to product-is with my modifications and earlier i have 
>>>>>>>> sent a
>>>>>

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-18 Thread Asantha Thilina
Hi Chamila,

ok thanks for the comment then i will change the version of my dependency
and test it

Thanks,
Asantha

On Fri, Aug 19, 2016 at 1:13 AM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Hi Asantha, Tharindu,
>
> I think IS already packs json, but the version is 20140107 which comes
> from wso2 orbit bundle [1]. You are receiving the error due to version
> mismatch, because you are using  version 20160212.
>
> Can you try using existing dependency and check if your features work okay
> with that version?\\
>
> Thank You!
>
> [1]. https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1
>
> On Fri, Aug 19, 2016 at 3:03 PM, Tharindu Edirisinghe 
> wrote:
>
>> I meant shipping with the product... by packing with the product.
>>
>> Yes, it should be packed by the feature.
>>
>> I'll look more into Charon's dependency as well.
>>
>> On Fri, Aug 19, 2016 at 10:26 AM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Harsha,
>>>
>>> The license seems to be okay, isn't it? It doesn't mention anything that
>>> prevent us from using it. Also I think we use same library for json related
>>> stuff in charon as well. So it can't be an issue IMO.
>>>
>>> @Tharindu, Why we should pack this in product? Shouldn't we pack this in
>>> the feature?
>>>
>>> Thank You!
>>>
>>> On Fri, Aug 19, 2016 at 2:11 PM, Harsha Thirimanna 
>>> wrote:
>>>
>>>> As in the license, there are some restrictions.
>>>>
>>>> http://www.json.org/license.html
>>>>
>>>> *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/ha
>>>> rsha-thirimanna/10/ab8/122
>>>> <http://wso2.com/signature>
>>>>
>>>> On Fri, Aug 19, 2016 at 9:30 AM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> Thanks Asantha.
>>>>>
>>>>> @Johann/Darshana - Would it be possible to pack org.json [1]
>>>>> dependency to the product itself ?
>>>>>
>>>>> [1] https://mvnrepository.com/artifact/org.json/json/20160212
>>>>>
>>>>> Regards,
>>>>> TharinduE
>>>>>
>>>>> On Fri, Aug 19, 2016 at 12:48 AM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> As you instructed i have finished all above process and i already
>>>>>> sent a PR[1] to product-is with my modifications and earlier i have sent 
>>>>>> a
>>>>>> PR[2] to identity-userstore-mongodb
>>>>>> during the deployment of the product-is i face the following issue
>>>>>> In my MongoDBUserStoreManager plugin i will be using org.json[2] lib
>>>>>> for query purposes so it is a dependent for my plugin to work ,For the
>>>>>> moment i manually added json lib to dropin folder to activate my bundle
>>>>>> otherwise i will get following error when i open osgi console and checked
>>>>>> Missing optionally imported package org.json_[20160212.0.0,2016021
>>>>>> 3.0.0).
>>>>>> In order to activate the bundle need to add mongo-java-driver[4] also
>>>>>> to dropins folder after that it will activate successfully,
>>>>>> Is there any method to ship the json lib also with my bundle when
>>>>>> deploying it to IS?
>>>>>> [1]https://github.com/wso2/product-is/pull/668
>>>>>> [2]https://github.com/wso2-extensions/identity-userstore-mon
>>>>>> godb/pull/1
>>>>>> [3]https://mvnrepository.com/artifact/org.json/json/20160212
>>>>>> [4]https://mvnrepository.com/artifact/org.mongodb/mongo-java
>>>>>> -driver/3.2.2
>>>>>>
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Aug 18, 2016 at 2:19 AM, Tharindu Edirisinghe <
>>>>>> tharin...@wso2.com> wrote:
>>>>>>
>>>>>

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-18 Thread Asantha Thilina
Hi Tharindu,

sure i will check that into

Thanks,
Asantha

On Fri, Aug 19, 2016 at 12:26 AM, Tharindu Edirisinghe 
wrote:

> Seems we'll have to find some alternative if we are to pack this to the
> product.
>
> @Asantha - Can you check if Apache has a library that provides similar
> functionality.
>
> Thanks,
> TharinduE
>
> On Fri, Aug 19, 2016 at 9:41 AM, Harsha Thirimanna 
> wrote:
>
>> As in the license, there are some restrictions.
>>
>> http://www.json.org/license.html
>>
>> *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/ha
>> rsha-thirimanna/10/ab8/122
>> <http://wso2.com/signature>
>>
>> On Fri, Aug 19, 2016 at 9:30 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Thanks Asantha.
>>>
>>> @Johann/Darshana - Would it be possible to pack org.json [1] dependency
>>> to the product itself ?
>>>
>>> [1] https://mvnrepository.com/artifact/org.json/json/20160212
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Fri, Aug 19, 2016 at 12:48 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> As you instructed i have finished all above process and i already sent
>>>> a PR[1] to product-is with my modifications and earlier i have sent a PR[2]
>>>> to identity-userstore-mongodb
>>>> during the deployment of the product-is i face the following issue
>>>> In my MongoDBUserStoreManager plugin i will be using org.json[2] lib
>>>> for query purposes so it is a dependent for my plugin to work ,For the
>>>> moment i manually added json lib to dropin folder to activate my bundle
>>>> otherwise i will get following error when i open osgi console and checked
>>>> Missing optionally imported package org.json_[20160212.0.0,2016021
>>>> 3.0.0).
>>>> In order to activate the bundle need to add mongo-java-driver[4] also
>>>> to dropins folder after that it will activate successfully,
>>>> Is there any method to ship the json lib also with my bundle when
>>>> deploying it to IS?
>>>> [1]https://github.com/wso2/product-is/pull/668
>>>> [2]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
>>>> [3]https://mvnrepository.com/artifact/org.json/json/20160212
>>>> [4]https://mvnrepository.com/artifact/org.mongodb/mongo-java
>>>> -driver/3.2.2
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>>
>>>>
>>>> On Thu, Aug 18, 2016 at 2:19 AM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> Hi Asntha,
>>>>>
>>>>> Please follow steps below to complete the project.
>>>>>
>>>>> 1. In your features [1] folder, you have to create etc folder and put
>>>>> feature.properties file in it. This is same as [2].
>>>>> 2. You have to create server.feature in [1]. Refer [3] and do the
>>>>> same. Make necessary modifications to pom file.
>>>>> 3. Once you do above, you can commit and push so that your PR [4] will
>>>>> automatically get these changes appended.
>>>>>
>>>>> Next step is to add this feature to IS product so when the product is
>>>>> built, the jar file is automatically packed to the product. For that,
>>>>> follow the instructions below.
>>>>>
>>>>> 4. Clone product-is [5] and do a clean repo build skipping tests. (you
>>>>> can just backup .m2 directory in your home and create an empty folder with
>>>>> name .m2. Then you can run mvn clean install -Dmaven.test.skip=true"
>>>>> command in product-is.
>>>>> 5. Once the product is built, you can get the zip file in
>>>>> modules/distribution folder. Run the product and check if you can access
>>>>> management console.
>>>>> 6. Next step is to build your feature so local m2 repository get the
>>>>> jar files of your feature.
>>>>> 7. Then, you can fork product-is and modify parent pom [6] adding a
>>>>> new property for your feature's version. Similar to below property, you 
>>>>> can
>>>>>

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-18 Thread Asantha Thilina
Hi Tharindu,

As you instructed i have finished all above process and i already sent a
PR[1] to product-is with my modifications and earlier i have sent a PR[2]
to identity-userstore-mongodb
during the deployment of the product-is i face the following issue
In my MongoDBUserStoreManager plugin i will be using org.json[2] lib for
query purposes so it is a dependent for my plugin to work ,For the moment i
manually added json lib to dropin folder to activate my bundle otherwise i
will get following error when i open osgi console and checked
Missing optionally imported package org.json_[20160212.0.0,20160213.0.0).
In order to activate the bundle need to add mongo-java-driver[4] also to
dropins folder after that it will activate successfully,
Is there any method to ship the json lib also with my bundle when deploying
it to IS?
[1]https://github.com/wso2/product-is/pull/668
[2]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
[3]https://mvnrepository.com/artifact/org.json/json/20160212
[4]https://mvnrepository.com/artifact/org.mongodb/mongo-java-driver/3.2.2

Thanks,
Asantha



On Thu, Aug 18, 2016 at 2:19 AM, Tharindu Edirisinghe 
wrote:

> Hi Asntha,
>
> Please follow steps below to complete the project.
>
> 1. In your features [1] folder, you have to create etc folder and put
> feature.properties file in it. This is same as [2].
> 2. You have to create server.feature in [1]. Refer [3] and do the same.
> Make necessary modifications to pom file.
> 3. Once you do above, you can commit and push so that your PR [4] will
> automatically get these changes appended.
>
> Next step is to add this feature to IS product so when the product is
> built, the jar file is automatically packed to the product. For that,
> follow the instructions below.
>
> 4. Clone product-is [5] and do a clean repo build skipping tests. (you can
> just backup .m2 directory in your home and create an empty folder with name
> .m2. Then you can run mvn clean install -Dmaven.test.skip=true" command in
> product-is.
> 5. Once the product is built, you can get the zip file in
> modules/distribution folder. Run the product and check if you can access
> management console.
> 6. Next step is to build your feature so local m2 repository get the jar
> files of your feature.
> 7. Then, you can fork product-is and modify parent pom [6] adding a new
> property for your feature's version. Similar to below property, you can add
> your own one.
>
> 5.1.1 userstore.remote.version>
>
> 8.  Modify the p2-profile-get pom file [7] and include your feature there.
> You can search for "*user.store.remote.feature*" and following that, add
> details for your feature.
> 9. Then re-build the product-is, get the zip file, run it and in
> Management Console, check if mongodb userstore is listed. Also you can
> check if the jar file is packed in plugins.
> 10. Finally send a PR to product-is with these changes.
>
>
> [1] https://github.com/asanthamax/identity-userstore-mongodb/
> tree/master/features
> [2] https://github.com/wso2-extensions/identity-userstore-
> remote/blob/master/features/etc/feature.properties
> [3] https://github.com/wso2-extensions/identity-userstore-
> remote/tree/master/features/org.wso2.carbon.identity.user.
> store.remote.server.feature
> [4] https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
> [5] https://github.com/wso2/product-is/
> [6] https://github.com/wso2/product-is/blob/master/pom.xml
> [7] https://github.com/wso2/product-is/blob/master/
> modules/p2-profile-gen/pom.xml
>
> Thanks,
> TharinduE
>
> On Tue, Aug 16, 2016 at 1:13 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> According to your instructions i have added the components folder with
>> the mongodbuserstore package to my forked repo[1] and i also sent the pull
>> request to origin also[2] i have refactor the main package to 
>> *org.wso2.carbon.identity.user.store.mo
>> <http://org.wso2.carbon.identity.user.store.mo>**ngodb *
>> expecting your feedback
>> [1] https://github.com/asanthamax/identity-userstore-mongodb
>> [2] https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
>> Thanks,
>> Asantha
>>
>> On Tue, Aug 16, 2016 at 2:45 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Asantha,
>>>
>>> Now that you have completed the project [1], for the final evaluation,
>>> you need to contribute your code to WSO2 codebase.
>>>
>>> For that, we have created the repository [2].
>>>
>>> You can refer [3] to get some idea about the package structure of the
>>> repo.
>>>
>>> Further, you can refactor your project and rename the main p

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-16 Thread Asantha Thilina
Hi Tharindu,

According to your instructions i have added the components folder with the
mongodbuserstore package to my forked repo[1] and i also sent the pull
request to origin also[2] i have refactor the main package to
*org.wso2.carbon.identity.user.store.mo
**ngodb *
expecting your feedback
[1] https://github.com/asanthamax/identity-userstore-mongodb
[2] https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
Thanks,
Asantha

On Tue, Aug 16, 2016 at 2:45 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Now that you have completed the project [1], for the final evaluation, you
> need to contribute your code to WSO2 codebase.
>
> For that, we have created the repository [2].
>
> You can refer [3] to get some idea about the package structure of the repo.
>
> Further, you can refactor your project and rename the main package to 
> *org.wso2.carbon.identity.user.store.mo
> **ngodb*.
>
> You can send a pull request with these.
>
> I will help you with writing the feature and creating the parent pom file
> later.
>
>
> [1] https://docs.wso2.com/display/GSoC/Project+Proposals+for+
> 2016#ProjectProposalsfor2016-Proposal21:[IS]DocumentBasedNoSQLSupportforWS
> O2IdentityServerDatabase
> [2] https://github.com/wso2-extensions/identity-userstore-mongodb
> [3] https://github.com/wso2-extensions/identity-userstore-remote
>
> Thank you,
> TharinduE
> --
>
> Tharindu Edirisinghe
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-31 Thread Asantha Thilina
Hi Tharindu,

yes sure i am comfortable with any time and look forward for that

Thanks,
Asantha

On Sun, Jul 31, 2016 at 12:15 PM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Good work so far. Since we are reaching the final stage of GSoC, let's
> have a hangout at the end of this week and plan the final steps to complete
> the project.
>
> I will go through the deliverables and provide feedback soon.
>
> Thanks,
> Tharindu
>
> On Mon, Jul 25, 2016 at 12:08 PM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> I have cleaned up all the bugs and removed all unnecessary codes and
>> committed all the changes into my repository[1]
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Sat, Jul 23, 2016 at 8:26 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> here i added all the commitments to spread sheet[1] and also i updated
>>> my blog with about java document api[2] and also i added findbug report[3]
>>> and also i updated my blog with the code quality analysis process i have
>>> done[4]
>>>
>>> [1]
>>> https://docs.google.com/spreadsheets/d/1jwSR_qFV-LfOS7ZTZ8CpiFFTYPoudDQF7zQhvblivaE/edit?usp=sharing
>>> [2]
>>> http://asanthamax.blogspot.com/2016/07/mongodb-user-store-package-hierarchy.html
>>> [3]https://googledrive.com/host/0B__ZE1ru1jkXZFdES3BOaHVyZ3M/
>>> [4]
>>> http://asanthamax.blogspot.com/2016/07/findbugs-in-mongodbuserstoremanager-in.html
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Fri, Jul 22, 2016 at 8:45 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> I have created the API documentation and hosted in my google drive[1] i
>>>> will be preparing code inspection report as well will share it as soon as
>>>> well i also added github page also to the userstore script in here[2] as
>>>> well
>>>> [1] http://googledrive.com/host/0B__ZE1ru1jkXbDVoSDlveV9yNk0
>>>> [2] https://asanthamax.github.io/mongodbuserstore/
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Tue, Jul 12, 2016 at 11:59 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>> sure we will arrange a hangout on next week and sure i will refer the
>>>>> link and do the necessary inspect in my code for any security
>>>>> vulnerabilities and update you sooner
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Tue, Jul 12, 2016 at 9:56 AM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> Thanks for the update. I'm out of the country this week and won't be
>>>>>> available. Let's have a hangout next week and discuss the final steps of
>>>>>> the project.
>>>>>>
>>>>>> Along with find bugs, if you haven't enabled findsecuritybugs plugin,
>>>>>> you can refer [1] and check if any security weaknesses are there in the
>>>>>> code.
>>>>>>
>>>>>> [1]
>>>>>> http://tharindue.blogspot.in/2016/06/static-code-analysis-for-java-using.html
>>>>>>
>>>>>> Thanks,
>>>>>> TharinduE
>>>>>>
>>>>>> On Tue, Jul 12, 2016 at 5:32 PM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Tharindu,
>>>>>>> I have clean up the code according to find bug plugin and also for
>>>>>>> rollback purposes since it only concern when modifying or adding new 
>>>>>>> user
>>>>>>> or role to user store i have manually added rollback option where if 
>>>>>>> error
>>>>>>> occured all the changes done to db in code segment will be discard from 
>>>>>>> db
>>>>>>> i updated the my repository with recent changes[1] now i preparing the
>>>>>>> documentation and test scripts.
>>>>>>>
>>>>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-24 Thread Asantha Thilina
Hi Tharindu,

I have cleaned up all the bugs and removed all unnecessary codes and
committed all the changes into my repository[1]

[1] https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Sat, Jul 23, 2016 at 8:26 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> here i added all the commitments to spread sheet[1] and also i updated my
> blog with about java document api[2] and also i added findbug report[3] and
> also i updated my blog with the code quality analysis process i have done[4]
>
> [1]
> https://docs.google.com/spreadsheets/d/1jwSR_qFV-LfOS7ZTZ8CpiFFTYPoudDQF7zQhvblivaE/edit?usp=sharing
> [2]
> http://asanthamax.blogspot.com/2016/07/mongodb-user-store-package-hierarchy.html
> [3]https://googledrive.com/host/0B__ZE1ru1jkXZFdES3BOaHVyZ3M/
> [4]
> http://asanthamax.blogspot.com/2016/07/findbugs-in-mongodbuserstoremanager-in.html
>
> Thanks,
> Asantha
>
> On Fri, Jul 22, 2016 at 8:45 AM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> I have created the API documentation and hosted in my google drive[1] i
>> will be preparing code inspection report as well will share it as soon as
>> well i also added github page also to the userstore script in here[2] as
>> well
>> [1] http://googledrive.com/host/0B__ZE1ru1jkXbDVoSDlveV9yNk0
>> [2] https://asanthamax.github.io/mongodbuserstore/
>>
>> Thanks,
>> Asantha
>>
>> On Tue, Jul 12, 2016 at 11:59 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>> sure we will arrange a hangout on next week and sure i will refer the
>>> link and do the necessary inspect in my code for any security
>>> vulnerabilities and update you sooner
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Tue, Jul 12, 2016 at 9:56 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> Thanks for the update. I'm out of the country this week and won't be
>>>> available. Let's have a hangout next week and discuss the final steps of
>>>> the project.
>>>>
>>>> Along with find bugs, if you haven't enabled findsecuritybugs plugin,
>>>> you can refer [1] and check if any security weaknesses are there in the
>>>> code.
>>>>
>>>> [1]
>>>> http://tharindue.blogspot.in/2016/06/static-code-analysis-for-java-using.html
>>>>
>>>> Thanks,
>>>> TharinduE
>>>>
>>>> On Tue, Jul 12, 2016 at 5:32 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>> I have clean up the code according to find bug plugin and also for
>>>>> rollback purposes since it only concern when modifying or adding new user
>>>>> or role to user store i have manually added rollback option where if error
>>>>> occured all the changes done to db in code segment will be discard from db
>>>>> i updated the my repository with recent changes[1] now i preparing the
>>>>> documentation and test scripts.
>>>>>
>>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Mon, Jul 4, 2016 at 2:54 AM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> thanks for the reply ,sure i will try out that and update the
>>>>>> progress as soon as possible
>>>>>>
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>> On Mon, Jul 4, 2016 at 1:38 AM, Tharindu Edirisinghe <
>>>>>> tharin...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Asantha,
>>>>>>>
>>>>>>> While you are adding the roll back transaction capability, also look
>>>>>>> into testing a high load and try to generate database level exceptions.
>>>>>>> Once thing you can try out is writing a client for performing userstore
>>>>>>> manager operations such as add user, add role, login, logout etc. and 
>>>>>>> play
>>>>>>> it with a high concurrency using Jmeter. Then we should be able to get a
>>>>>>> better understanding of transaction management with respective to 
>>>>>>> Mon

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-23 Thread Asantha Thilina
Hi Tharindu,

here i added all the commitments to spread sheet[1] and also i updated my
blog with about java document api[2] and also i added findbug report[3] and
also i updated my blog with the code quality analysis process i have done[4]

[1]
https://docs.google.com/spreadsheets/d/1jwSR_qFV-LfOS7ZTZ8CpiFFTYPoudDQF7zQhvblivaE/edit?usp=sharing
[2]
http://asanthamax.blogspot.com/2016/07/mongodb-user-store-package-hierarchy.html
[3]https://googledrive.com/host/0B__ZE1ru1jkXZFdES3BOaHVyZ3M/
[4]
http://asanthamax.blogspot.com/2016/07/findbugs-in-mongodbuserstoremanager-in.html

Thanks,
Asantha

On Fri, Jul 22, 2016 at 8:45 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> I have created the API documentation and hosted in my google drive[1] i
> will be preparing code inspection report as well will share it as soon as
> well i also added github page also to the userstore script in here[2] as
> well
> [1] http://googledrive.com/host/0B__ZE1ru1jkXbDVoSDlveV9yNk0
> [2] https://asanthamax.github.io/mongodbuserstore/
>
> Thanks,
> Asantha
>
> On Tue, Jul 12, 2016 at 11:59 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>> sure we will arrange a hangout on next week and sure i will refer the
>> link and do the necessary inspect in my code for any security
>> vulnerabilities and update you sooner
>>
>> Thanks,
>> Asantha
>>
>> On Tue, Jul 12, 2016 at 9:56 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Asantha,
>>>
>>> Thanks for the update. I'm out of the country this week and won't be
>>> available. Let's have a hangout next week and discuss the final steps of
>>> the project.
>>>
>>> Along with find bugs, if you haven't enabled findsecuritybugs plugin,
>>> you can refer [1] and check if any security weaknesses are there in the
>>> code.
>>>
>>> [1]
>>> http://tharindue.blogspot.in/2016/06/static-code-analysis-for-java-using.html
>>>
>>> Thanks,
>>> TharinduE
>>>
>>> On Tue, Jul 12, 2016 at 5:32 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>> I have clean up the code according to find bug plugin and also for
>>>> rollback purposes since it only concern when modifying or adding new user
>>>> or role to user store i have manually added rollback option where if error
>>>> occured all the changes done to db in code segment will be discard from db
>>>> i updated the my repository with recent changes[1] now i preparing the
>>>> documentation and test scripts.
>>>>
>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Mon, Jul 4, 2016 at 2:54 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> thanks for the reply ,sure i will try out that and update the progress
>>>>> as soon as possible
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Mon, Jul 4, 2016 at 1:38 AM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> While you are adding the roll back transaction capability, also look
>>>>>> into testing a high load and try to generate database level exceptions.
>>>>>> Once thing you can try out is writing a client for performing userstore
>>>>>> manager operations such as add user, add role, login, logout etc. and 
>>>>>> play
>>>>>> it with a high concurrency using Jmeter. Then we should be able to get a
>>>>>> better understanding of transaction management with respective to 
>>>>>> MongoDB.
>>>>>>
>>>>>> Regards,
>>>>>> TharinduE
>>>>>>
>>>>>> On Mon, Jul 4, 2016 at 10:57 AM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> i will be trying for implement roll back transactions capability in
>>>>>>> MongoDB to add to MongoDB User Store[2] i found that MongoDB use a 
>>>>>>> concept
>>>>>>> call two phase commit[1] i trying to implement that inside my code but 
>>>>

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-22 Thread Asantha Thilina
Hi Tharindu,

I have created the API documentation and hosted in my google drive[1] i
will be preparing code inspection report as well will share it as soon as
well i also added github page also to the userstore script in here[2] as
well
[1] http://googledrive.com/host/0B__ZE1ru1jkXbDVoSDlveV9yNk0
[2] https://asanthamax.github.io/mongodbuserstore/

Thanks,
Asantha

On Tue, Jul 12, 2016 at 11:59 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
> sure we will arrange a hangout on next week and sure i will refer the link
> and do the necessary inspect in my code for any security vulnerabilities
> and update you sooner
>
> Thanks,
> Asantha
>
> On Tue, Jul 12, 2016 at 9:56 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> Thanks for the update. I'm out of the country this week and won't be
>> available. Let's have a hangout next week and discuss the final steps of
>> the project.
>>
>> Along with find bugs, if you haven't enabled findsecuritybugs plugin, you
>> can refer [1] and check if any security weaknesses are there in the code.
>>
>> [1]
>> http://tharindue.blogspot.in/2016/06/static-code-analysis-for-java-using.html
>>
>> Thanks,
>> TharinduE
>>
>> On Tue, Jul 12, 2016 at 5:32 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>> I have clean up the code according to find bug plugin and also for
>>> rollback purposes since it only concern when modifying or adding new user
>>> or role to user store i have manually added rollback option where if error
>>> occured all the changes done to db in code segment will be discard from db
>>> i updated the my repository with recent changes[1] now i preparing the
>>> documentation and test scripts.
>>>
>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Jul 4, 2016 at 2:54 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> thanks for the reply ,sure i will try out that and update the progress
>>>> as soon as possible
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Mon, Jul 4, 2016 at 1:38 AM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> Hi Asantha,
>>>>>
>>>>> While you are adding the roll back transaction capability, also look
>>>>> into testing a high load and try to generate database level exceptions.
>>>>> Once thing you can try out is writing a client for performing userstore
>>>>> manager operations such as add user, add role, login, logout etc. and play
>>>>> it with a high concurrency using Jmeter. Then we should be able to get a
>>>>> better understanding of transaction management with respective to MongoDB.
>>>>>
>>>>> Regards,
>>>>> TharinduE
>>>>>
>>>>> On Mon, Jul 4, 2016 at 10:57 AM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> i will be trying for implement roll back transactions capability in
>>>>>> MongoDB to add to MongoDB User Store[2] i found that MongoDB use a 
>>>>>> concept
>>>>>> call two phase commit[1] i trying to implement that inside my code but it
>>>>>> seems to be little complex and i think it may arise performance issue 
>>>>>> when
>>>>>> adding high load of dataset at once is there any other better method i 
>>>>>> can
>>>>>> achieve this task? any advices would be grateful
>>>>>>
>>>>>> [1]
>>>>>> https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/
>>>>>> [2] https://github.com/asanthamax/mongodbuserstore
>>>>>>
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>> On Wed, Jun 29, 2016 at 2:55 PM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Tharindu,
>>>>>>>
>>>>>>> I have finished and added delete functions also to users ,roles and
>>>>>>> user claim deletions to my repo[1]
>>>>>>>
>>>>>>> [1] https://github.com/

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-12 Thread Asantha Thilina
Hi Tharindu,
sure we will arrange a hangout on next week and sure i will refer the link
and do the necessary inspect in my code for any security vulnerabilities
and update you sooner

Thanks,
Asantha

On Tue, Jul 12, 2016 at 9:56 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Thanks for the update. I'm out of the country this week and won't be
> available. Let's have a hangout next week and discuss the final steps of
> the project.
>
> Along with find bugs, if you haven't enabled findsecuritybugs plugin, you
> can refer [1] and check if any security weaknesses are there in the code.
>
> [1]
> http://tharindue.blogspot.in/2016/06/static-code-analysis-for-java-using.html
>
> Thanks,
> TharinduE
>
> On Tue, Jul 12, 2016 at 5:32 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>> I have clean up the code according to find bug plugin and also for
>> rollback purposes since it only concern when modifying or adding new user
>> or role to user store i have manually added rollback option where if error
>> occured all the changes done to db in code segment will be discard from db
>> i updated the my repository with recent changes[1] now i preparing the
>> documentation and test scripts.
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Jul 4, 2016 at 2:54 AM, Asantha Thilina > > wrote:
>>
>>> Hi Tharindu,
>>>
>>> thanks for the reply ,sure i will try out that and update the progress
>>> as soon as possible
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Jul 4, 2016 at 1:38 AM, Tharindu Edirisinghe >> > wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> While you are adding the roll back transaction capability, also look
>>>> into testing a high load and try to generate database level exceptions.
>>>> Once thing you can try out is writing a client for performing userstore
>>>> manager operations such as add user, add role, login, logout etc. and play
>>>> it with a high concurrency using Jmeter. Then we should be able to get a
>>>> better understanding of transaction management with respective to MongoDB.
>>>>
>>>> Regards,
>>>> TharinduE
>>>>
>>>> On Mon, Jul 4, 2016 at 10:57 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> i will be trying for implement roll back transactions capability in
>>>>> MongoDB to add to MongoDB User Store[2] i found that MongoDB use a concept
>>>>> call two phase commit[1] i trying to implement that inside my code but it
>>>>> seems to be little complex and i think it may arise performance issue when
>>>>> adding high load of dataset at once is there any other better method i can
>>>>> achieve this task? any advices would be grateful
>>>>>
>>>>> [1]
>>>>> https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/
>>>>> [2] https://github.com/asanthamax/mongodbuserstore
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Wed, Jun 29, 2016 at 2:55 PM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> I have finished and added delete functions also to users ,roles and
>>>>>> user claim deletions to my repo[1]
>>>>>>
>>>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>>>
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>> On Mon, Jun 27, 2016 at 4:18 AM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi aiya,
>>>>>>>
>>>>>>> i have small problem in my research, i will be developing
>>>>>>> convolution neural network using deeplearning4j to detect frauds i have
>>>>>>> discovered some fraud patterns which can use to train my network but the
>>>>>>> problem i having is,are there any possibility to add condition driven
>>>>>>> capability to dataset to train model
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Asantha
>>>>>>>
>>>>>>> On Wed

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-12 Thread Asantha Thilina
Hi Tharindu,
I have clean up the code according to find bug plugin and also for rollback
purposes since it only concern when modifying or adding new user or role to
user store i have manually added rollback option where if error occured all
the changes done to db in code segment will be discard from db i updated
the my repository with recent changes[1] now i preparing the documentation
and test scripts.

[1] https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Mon, Jul 4, 2016 at 2:54 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> thanks for the reply ,sure i will try out that and update the progress as
> soon as possible
>
> Thanks,
> Asantha
>
> On Mon, Jul 4, 2016 at 1:38 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> While you are adding the roll back transaction capability, also look into
>> testing a high load and try to generate database level exceptions. Once
>> thing you can try out is writing a client for performing userstore manager
>> operations such as add user, add role, login, logout etc. and play it with
>> a high concurrency using Jmeter. Then we should be able to get a better
>> understanding of transaction management with respective to MongoDB.
>>
>> Regards,
>> TharinduE
>>
>> On Mon, Jul 4, 2016 at 10:57 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> i will be trying for implement roll back transactions capability in
>>> MongoDB to add to MongoDB User Store[2] i found that MongoDB use a concept
>>> call two phase commit[1] i trying to implement that inside my code but it
>>> seems to be little complex and i think it may arise performance issue when
>>> adding high load of dataset at once is there any other better method i can
>>> achieve this task? any advices would be grateful
>>>
>>> [1] https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/
>>> [2] https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Wed, Jun 29, 2016 at 2:55 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> I have finished and added delete functions also to users ,roles and
>>>> user claim deletions to my repo[1]
>>>>
>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Mon, Jun 27, 2016 at 4:18 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi aiya,
>>>>>
>>>>> i have small problem in my research, i will be developing convolution
>>>>> neural network using deeplearning4j to detect frauds i have discovered 
>>>>> some
>>>>> fraud patterns which can use to train my network but the problem i having
>>>>> is,are there any possibility to add condition driven capability to dataset
>>>>> to train model
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Wed, Jun 22, 2016 at 9:35 PM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Good work Asantha... Meanwhile let's look at getting your research
>>>>>> work published as well. I will provide feedback for the work so far in
>>>>>> couple of days time. I have also completed the Mid Review based on your
>>>>>> current work where you are already ahead of schedule.
>>>>>>
>>>>>> Regards,
>>>>>> TharinduE
>>>>>>
>>>>>> On Wed, Jun 22, 2016 at 9:41 PM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Tharindu,
>>>>>>>
>>>>>>> following is the summary of operations i have implemented up to now
>>>>>>> and yet to implement
>>>>>>>
>>>>>>> 1. Add new MongoDB User Store - done both case sensitive and
>>>>>>> intensensitive
>>>>>>> 2. Add new users to MongoDB user store - done both case sensitive
>>>>>>> and intensensitive
>>>>>>> 3. Add new roles to MongoDB user store - done both case sensitive
>>>>>>> and intensensitive
>>>>>>> 4. Search users and roles - done both ca

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-03 Thread Asantha Thilina
Hi Tharindu,

thanks for the reply ,sure i will try out that and update the progress as
soon as possible

Thanks,
Asantha

On Mon, Jul 4, 2016 at 1:38 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> While you are adding the roll back transaction capability, also look into
> testing a high load and try to generate database level exceptions. Once
> thing you can try out is writing a client for performing userstore manager
> operations such as add user, add role, login, logout etc. and play it with
> a high concurrency using Jmeter. Then we should be able to get a better
> understanding of transaction management with respective to MongoDB.
>
> Regards,
> TharinduE
>
> On Mon, Jul 4, 2016 at 10:57 AM, Asantha Thilina  > wrote:
>
>> Hi all,
>>
>> i will be trying for implement roll back transactions capability in
>> MongoDB to add to MongoDB User Store[2] i found that MongoDB use a concept
>> call two phase commit[1] i trying to implement that inside my code but it
>> seems to be little complex and i think it may arise performance issue when
>> adding high load of dataset at once is there any other better method i can
>> achieve this task? any advices would be grateful
>>
>> [1] https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/
>> [2] https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Wed, Jun 29, 2016 at 2:55 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> I have finished and added delete functions also to users ,roles and user
>>> claim deletions to my repo[1]
>>>
>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Jun 27, 2016 at 4:18 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi aiya,
>>>>
>>>> i have small problem in my research, i will be developing convolution
>>>> neural network using deeplearning4j to detect frauds i have discovered some
>>>> fraud patterns which can use to train my network but the problem i having
>>>> is,are there any possibility to add condition driven capability to dataset
>>>> to train model
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Wed, Jun 22, 2016 at 9:35 PM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> Good work Asantha... Meanwhile let's look at getting your research
>>>>> work published as well. I will provide feedback for the work so far in
>>>>> couple of days time. I have also completed the Mid Review based on your
>>>>> current work where you are already ahead of schedule.
>>>>>
>>>>> Regards,
>>>>> TharinduE
>>>>>
>>>>> On Wed, Jun 22, 2016 at 9:41 PM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> following is the summary of operations i have implemented up to now
>>>>>> and yet to implement
>>>>>>
>>>>>> 1. Add new MongoDB User Store - done both case sensitive and
>>>>>> intensensitive
>>>>>> 2. Add new users to MongoDB user store - done both case sensitive and
>>>>>> intensensitive
>>>>>> 3. Add new roles to MongoDB user store - done both case sensitive and
>>>>>> intensensitive
>>>>>> 4. Search users and roles - done both case sensitive and
>>>>>> intensensitive
>>>>>> 5. Assign roles to mongodb user store users - done both case
>>>>>> sensitive and intensensitive
>>>>>> 6. Assign users to mongodb user store roles - done both case
>>>>>> sensitive and intensensitive
>>>>>> 7. Edit claim values of user profiles  - done both case sensitive and
>>>>>> intensensitive
>>>>>> for those implemented user operations i have added selenium scripts
>>>>>> also to my repo[1] and also i have prepared user guide[2] and 
>>>>>> administrator
>>>>>> guide[3] also and also i have updated my blog[4] with all my tasks what i
>>>>>> have done and following are the tasks yet to complete
>>>>>>
>>>>>> 1. implement delete operations
>>>>>> 2. implement new 

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-03 Thread Asantha Thilina
Hi all,

i will be trying for implement roll back transactions capability in MongoDB
to add to MongoDB User Store[2] i found that MongoDB use a concept call two
phase commit[1] i trying to implement that inside my code but it seems to
be little complex and i think it may arise performance issue when adding
high load of dataset at once is there any other better method i can achieve
this task? any advices would be grateful

[1] https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/
[2] https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Wed, Jun 29, 2016 at 2:55 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> I have finished and added delete functions also to users ,roles and user
> claim deletions to my repo[1]
>
> [1] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Mon, Jun 27, 2016 at 4:18 AM, Asantha Thilina  > wrote:
>
>> Hi aiya,
>>
>> i have small problem in my research, i will be developing convolution
>> neural network using deeplearning4j to detect frauds i have discovered some
>> fraud patterns which can use to train my network but the problem i having
>> is,are there any possibility to add condition driven capability to dataset
>> to train model
>>
>> Thanks,
>> Asantha
>>
>> On Wed, Jun 22, 2016 at 9:35 PM, Tharindu Edirisinghe > > wrote:
>>
>>> Good work Asantha... Meanwhile let's look at getting your research work
>>> published as well. I will provide feedback for the work so far in couple of
>>> days time. I have also completed the Mid Review based on your current work
>>> where you are already ahead of schedule.
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Wed, Jun 22, 2016 at 9:41 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> following is the summary of operations i have implemented up to now and
>>>> yet to implement
>>>>
>>>> 1. Add new MongoDB User Store - done both case sensitive and
>>>> intensensitive
>>>> 2. Add new users to MongoDB user store - done both case sensitive and
>>>> intensensitive
>>>> 3. Add new roles to MongoDB user store - done both case sensitive and
>>>> intensensitive
>>>> 4. Search users and roles - done both case sensitive and intensensitive
>>>> 5. Assign roles to mongodb user store users - done both case sensitive
>>>> and intensensitive
>>>> 6. Assign users to mongodb user store roles - done both case sensitive
>>>> and intensensitive
>>>> 7. Edit claim values of user profiles  - done both case sensitive and
>>>> intensensitive
>>>> for those implemented user operations i have added selenium scripts
>>>> also to my repo[1] and also i have prepared user guide[2] and administrator
>>>> guide[3] also and also i have updated my blog[4] with all my tasks what i
>>>> have done and following are the tasks yet to complete
>>>>
>>>> 1. implement delete operations
>>>> 2. implement new profiles adding
>>>> 3. check for injections possibilities and improve the security of all
>>>> the functions
>>>> 4. prepare full test scripts for all the functions
>>>> 5. prepare developer guide and database architecture diagrams
>>>>
>>>> expect your feedback
>>>>
>>>> [1]  https://github.com/asanthamax/mongodbuserstore
>>>> [2]
>>>> https://docs.google.com/document/d/1mdnmYruzQz5QSxAYwM1XVeJntJMFdxUsV5gord7LuPA/edit?usp=sharing
>>>> [3]
>>>> https://docs.google.com/document/d/1fCLfZYsPOBkHMzRCGM3aexoBSplX3bKIRmONmFsgkBc/edit?usp=sharing
>>>> [4]  http://asanthamax.blogspot.com
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Wed, Jun 22, 2016 at 12:29 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> I have finished the case insensitive user operations as well and i
>>>>> added selenium test scripts for those implemented functions to my repo[1]
>>>>> except delete function all the other functions with test script added to 
>>>>> my
>>>>> repo[1]
>>>>>
>>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Fri, Jun 17, 201

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-29 Thread Asantha Thilina
Hi Tharindu,

I have finished and added delete functions also to users ,roles and user
claim deletions to my repo[1]

[1] https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Mon, Jun 27, 2016 at 4:18 AM, Asantha Thilina 
wrote:

> Hi aiya,
>
> i have small problem in my research, i will be developing convolution
> neural network using deeplearning4j to detect frauds i have discovered some
> fraud patterns which can use to train my network but the problem i having
> is,are there any possibility to add condition driven capability to dataset
> to train model
>
> Thanks,
> Asantha
>
> On Wed, Jun 22, 2016 at 9:35 PM, Tharindu Edirisinghe 
> wrote:
>
>> Good work Asantha... Meanwhile let's look at getting your research work
>> published as well. I will provide feedback for the work so far in couple of
>> days time. I have also completed the Mid Review based on your current work
>> where you are already ahead of schedule.
>>
>> Regards,
>> TharinduE
>>
>> On Wed, Jun 22, 2016 at 9:41 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> following is the summary of operations i have implemented up to now and
>>> yet to implement
>>>
>>> 1. Add new MongoDB User Store - done both case sensitive and
>>> intensensitive
>>> 2. Add new users to MongoDB user store - done both case sensitive and
>>> intensensitive
>>> 3. Add new roles to MongoDB user store - done both case sensitive and
>>> intensensitive
>>> 4. Search users and roles - done both case sensitive and intensensitive
>>> 5. Assign roles to mongodb user store users - done both case sensitive
>>> and intensensitive
>>> 6. Assign users to mongodb user store roles - done both case sensitive
>>> and intensensitive
>>> 7. Edit claim values of user profiles  - done both case sensitive and
>>> intensensitive
>>> for those implemented user operations i have added selenium scripts also
>>> to my repo[1] and also i have prepared user guide[2] and administrator
>>> guide[3] also and also i have updated my blog[4] with all my tasks what i
>>> have done and following are the tasks yet to complete
>>>
>>> 1. implement delete operations
>>> 2. implement new profiles adding
>>> 3. check for injections possibilities and improve the security of all
>>> the functions
>>> 4. prepare full test scripts for all the functions
>>> 5. prepare developer guide and database architecture diagrams
>>>
>>> expect your feedback
>>>
>>> [1]  https://github.com/asanthamax/mongodbuserstore
>>> [2]
>>> https://docs.google.com/document/d/1mdnmYruzQz5QSxAYwM1XVeJntJMFdxUsV5gord7LuPA/edit?usp=sharing
>>> [3]
>>> https://docs.google.com/document/d/1fCLfZYsPOBkHMzRCGM3aexoBSplX3bKIRmONmFsgkBc/edit?usp=sharing
>>> [4]  http://asanthamax.blogspot.com
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Wed, Jun 22, 2016 at 12:29 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> I have finished the case insensitive user operations as well and i
>>>> added selenium test scripts for those implemented functions to my repo[1]
>>>> except delete function all the other functions with test script added to my
>>>> repo[1]
>>>>
>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Fri, Jun 17, 2016 at 2:28 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> sure i'll be look forward for the hangout
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Fri, Jun 17, 2016 at 2:22 AM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> I will go through the docs and provide feedback soon. Let's have a
>>>>>> hangout session to discuss the pending issues.
>>>>>>
>>>>>> I'm available today 9.00 P.M IST for a google hangout.
>>>>>>
>>>>>> Thanks,
>>>>>> TharinduE
>>>>>>
>>>>>> On Fri, Jun 17, 2016 at 11:30 AM, Asantha Thilina <
>>>>>&

Re: [Dev] deep neural network for detect frauds

2016-06-27 Thread Asantha Thilina
Hi Nirmal,

As tharindu mentioned i would be planning to gather user identity data
through the AbstractEventListener then those data will be used to train my
model

Thanks,
Asantha

On Mon, Jun 27, 2016 at 9:26 AM, Tharindu Edirisinghe 
wrote:

> Hi Nirmal,
>
> The data is not in hand right now.. but we can assume we have data.
>
> Currently in Identity Server, it does not publish security related events
> such as login, logout, password change etc.
>
> What Asantha would do is write a Listener ( i.e extend
> AbstractUserOperationEventListener) and for each user operation it would
> publish an event.
>
> Once he does it, we can perform some user operations with a load test and
> gather data (get the events generated).
>
> Based on this data he needs to carry out the analysis.
>
> Thanks,
> TharinduE
>
> On Mon, Jun 27, 2016 at 6:22 PM, Nirmal Fernando  wrote:
>
>> Seshika implemented a fraud detection toolbox using Markov chain models
>> (using real-time siddhi queries) [1]. API-M Analytics product uses Markov
>> chain model to detect abnormal resource access patterns.
>>
>> In WSO2 ML, we have implemented a clustering based anomaly detection
>> algorithm [2].
>>
>> [1]
>> http://wso2.com/analytics/solutions/fraud-and-anomaly-detection-solution/
>> [2]
>> https://docs.wso2.com/display/ML110/Generating+a+Model+Using+the+K+Means+Anomaly+Detection+Algorithm+with+Labeled+Data
>>
>>
>> On Mon, Jun 27, 2016 at 5:45 PM, Tharindu Edirisinghe > > wrote:
>>
>>> +DamithN, Seshika, Nirmal
>>>
>>>
>>> @DamithN - I found the mail thread [1] bit similar. Are there any other
>>> reference to the work you've done for that ?
>>>
>>> @Seshika, Nirmal - Do you guys have any input for the work Asantha is
>>> trying to do ? He is a GSoC student that I mentor this year.
>>>
>>> Appreciate if you can help him out with this.
>>>
>>>
>>> [1] "[Architecture] Security Authentication Analytics"
>>>
>>> Thanks,
>>> TharinduE
>>>
>>> On Mon, Jun 27, 2016 at 4:15 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> i am a GSOC student who doing the *project 21 : NoSQL User Store
>>>> Development for Identity Server* and i am developing a *convolutional
>>>> neural network* to detect *frauds* using deeplearning4j[1] for my
>>>> research, i have done some case studies regarding fraud patterns ,i have
>>>> mainly focused on frauds that can be occur in online money transactions and
>>>> in login authentications i have refer some research papers[2],[3] and  a
>>>> white paper[4] regrading those possible fraud patterns
>>>> I choosed convolutional neural network to develop my model but i am
>>>> little confused about how could include those fraud patterns in to my model
>>>> in a way it can detect a fraud in real time
>>>>
>>>
>> Once you have a built model, you could write a siddhi extension to
>> perform predictions (i.e. detect frauds in this case).
>>
>> Question: do we have data in hand? or are you trying to build a model on
>> the fly?
>>
>> and also is convolutional network is a best way to achieve my task or is
>>>> there any better method than this?,i would be grateful if anyone can guide
>>>> me to achieve this task
>>>> [1]http://deeplearning4j.org/convolutionalnets
>>>> [2]
>>>> http://www.ijsce.org/attachments/File/NCAI2011/IJSCE_NCAI2011_025.pdf
>>>> [3]
>>>> https://www.researchgate.net/publication/200795976_Fraud_Detection_using_Neural_Networks
>>>> [4]https://neo4j.com/resources/fraud-detection-white-paper/
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Tharindu Edirisinghe
>>> Senior Software Engineer | WSO2 Inc
>>> Platform Security Team
>>> Blog : tharindue.blogspot.com
>>> mobile : +94 775181586
>>>
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-22 Thread Asantha Thilina
Hi Tharindu,

following is the summary of operations i have implemented up to now and yet
to implement

1. Add new MongoDB User Store - done both case sensitive and intensensitive
2. Add new users to MongoDB user store - done both case sensitive and
intensensitive
3. Add new roles to MongoDB user store - done both case sensitive and
intensensitive
4. Search users and roles - done both case sensitive and intensensitive
5. Assign roles to mongodb user store users - done both case sensitive and
intensensitive
6. Assign users to mongodb user store roles - done both case sensitive and
intensensitive
7. Edit claim values of user profiles  - done both case sensitive and
intensensitive
for those implemented user operations i have added selenium scripts also to
my repo[1] and also i have prepared user guide[2] and administrator
guide[3] also and also i have updated my blog[4] with all my tasks what i
have done and following are the tasks yet to complete

1. implement delete operations
2. implement new profiles adding
3. check for injections possibilities and improve the security of all the
functions
4. prepare full test scripts for all the functions
5. prepare developer guide and database architecture diagrams

expect your feedback

[1]  https://github.com/asanthamax/mongodbuserstore
[2]
https://docs.google.com/document/d/1mdnmYruzQz5QSxAYwM1XVeJntJMFdxUsV5gord7LuPA/edit?usp=sharing
[3]
https://docs.google.com/document/d/1fCLfZYsPOBkHMzRCGM3aexoBSplX3bKIRmONmFsgkBc/edit?usp=sharing
[4]  http://asanthamax.blogspot.com

Thanks,
Asantha

On Wed, Jun 22, 2016 at 12:29 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> I have finished the case insensitive user operations as well and i added
> selenium test scripts for those implemented functions to my repo[1] except
> delete function all the other functions with test script added to my repo[1]
>
> [1] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Fri, Jun 17, 2016 at 2:28 AM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> sure i'll be look forward for the hangout
>>
>> Thanks,
>> Asantha
>>
>> On Fri, Jun 17, 2016 at 2:22 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Asantha,
>>>
>>> I will go through the docs and provide feedback soon. Let's have a
>>> hangout session to discuss the pending issues.
>>>
>>> I'm available today 9.00 P.M IST for a google hangout.
>>>
>>> Thanks,
>>> TharinduE
>>>
>>> On Fri, Jun 17, 2016 at 11:30 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> I have prepared the user guide[1] and administrator guide[2] in google
>>>> doc since all tasks are not finished yet i have only added the tasks i have
>>>> already done and there is still the developer guide has to be prepare i
>>>> will prepare it as sooner as well
>>>>
>>>> [1]
>>>> https://docs.google.com/document/d/1fCLfZYsPOBkHMzRCGM3aexoBSplX3bKIRmONmFsgkBc/edit?usp=sharing
>>>> [2]
>>>> https://docs.google.com/document/d/1mdnmYruzQz5QSxAYwM1XVeJntJMFdxUsV5gord7LuPA/edit?usp=sharing
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Tue, Jun 14, 2016 at 1:55 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> sure i will prepare those documents sooner
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Mon, Jun 13, 2016 at 9:38 PM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Excellent work Asantha !
>>>>>>
>>>>>> Meanwhile you can prepare a document also adding the screenshots you
>>>>>> have got. Basically we will need following documentation.
>>>>>>
>>>>>> 1. Developer Guide ( The architecture of the userstoremanager,
>>>>>> diagrams of all the collections, how they are related to each other etc.)
>>>>>>
>>>>>> 2. Administrator Guide (How to guide a server administrator to setup
>>>>>> a secondary userstore with mongodb)
>>>>>>
>>>>>> 3. User Guide (All the functionality of the userstoremanager, i.e
>>>>>> each function in RemoteUserStoreManager with sample SOAP requests and
>>>>>> responses)
>>>>>>
>>>>>> We will need to look at the QA aspect of the project also.. but l

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-22 Thread Asantha Thilina
Hi Tharindu,

I have finished the case insensitive user operations as well and i added
selenium test scripts for those implemented functions to my repo[1] except
delete function all the other functions with test script added to my repo[1]

[1] https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Fri, Jun 17, 2016 at 2:28 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> sure i'll be look forward for the hangout
>
> Thanks,
> Asantha
>
> On Fri, Jun 17, 2016 at 2:22 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> I will go through the docs and provide feedback soon. Let's have a
>> hangout session to discuss the pending issues.
>>
>> I'm available today 9.00 P.M IST for a google hangout.
>>
>> Thanks,
>> TharinduE
>>
>> On Fri, Jun 17, 2016 at 11:30 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> I have prepared the user guide[1] and administrator guide[2] in google
>>> doc since all tasks are not finished yet i have only added the tasks i have
>>> already done and there is still the developer guide has to be prepare i
>>> will prepare it as sooner as well
>>>
>>> [1]
>>> https://docs.google.com/document/d/1fCLfZYsPOBkHMzRCGM3aexoBSplX3bKIRmONmFsgkBc/edit?usp=sharing
>>> [2]
>>> https://docs.google.com/document/d/1mdnmYruzQz5QSxAYwM1XVeJntJMFdxUsV5gord7LuPA/edit?usp=sharing
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Tue, Jun 14, 2016 at 1:55 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> sure i will prepare those documents sooner
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Mon, Jun 13, 2016 at 9:38 PM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> Excellent work Asantha !
>>>>>
>>>>> Meanwhile you can prepare a document also adding the screenshots you
>>>>> have got. Basically we will need following documentation.
>>>>>
>>>>> 1. Developer Guide ( The architecture of the userstoremanager,
>>>>> diagrams of all the collections, how they are related to each other etc.)
>>>>>
>>>>> 2. Administrator Guide (How to guide a server administrator to setup a
>>>>> secondary userstore with mongodb)
>>>>>
>>>>> 3. User Guide (All the functionality of the userstoremanager, i.e each
>>>>> function in RemoteUserStoreManager with sample SOAP requests and 
>>>>> responses)
>>>>>
>>>>> We will need to look at the QA aspect of the project also.. but let's
>>>>> keep aside for the moment until we get all the functionality working.
>>>>>
>>>>> Thanks for all the hard work !
>>>>>
>>>>> Best Regards,
>>>>> Tharindu Edirisinghe
>>>>>
>>>>> On Tue, Jun 14, 2016 at 12:46 AM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> as you advice me i added soap ui screen shots of test result and
>>>>>> selenium script for implemented functions into my repository[1]
>>>>>>
>>>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>> On Mon, Jun 13, 2016 at 6:23 AM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Tharindu,
>>>>>>>
>>>>>>> i updated my blog[1] with all the works i have done so far there i
>>>>>>> added all the methods and their use in MongoDBUserStoreManager ,
>>>>>>> hopes your feedback
>>>>>>> [1] http://asanthamax.blogspot.com/
>>>>>>> Thanks,
>>>>>>> Asantha
>>>>>>>
>>>>>>> On Sun, Jun 12, 2016 at 2:11 PM, Asantha Thilina <
>>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Tharindu,
>>>>>>>>
>>>>>>>> i have solved the login issue for registered users in my mongodb
>>>>>>>> user store. after compare my imp

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-16 Thread Asantha Thilina
Hi Tharindu,

sure i'll be look forward for the hangout

Thanks,
Asantha

On Fri, Jun 17, 2016 at 2:22 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> I will go through the docs and provide feedback soon. Let's have a hangout
> session to discuss the pending issues.
>
> I'm available today 9.00 P.M IST for a google hangout.
>
> Thanks,
> TharinduE
>
> On Fri, Jun 17, 2016 at 11:30 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> I have prepared the user guide[1] and administrator guide[2] in google
>> doc since all tasks are not finished yet i have only added the tasks i have
>> already done and there is still the developer guide has to be prepare i
>> will prepare it as sooner as well
>>
>> [1]
>> https://docs.google.com/document/d/1fCLfZYsPOBkHMzRCGM3aexoBSplX3bKIRmONmFsgkBc/edit?usp=sharing
>> [2]
>> https://docs.google.com/document/d/1mdnmYruzQz5QSxAYwM1XVeJntJMFdxUsV5gord7LuPA/edit?usp=sharing
>>
>> Thanks,
>> Asantha
>>
>> On Tue, Jun 14, 2016 at 1:55 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> sure i will prepare those documents sooner
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Jun 13, 2016 at 9:38 PM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Excellent work Asantha !
>>>>
>>>> Meanwhile you can prepare a document also adding the screenshots you
>>>> have got. Basically we will need following documentation.
>>>>
>>>> 1. Developer Guide ( The architecture of the userstoremanager, diagrams
>>>> of all the collections, how they are related to each other etc.)
>>>>
>>>> 2. Administrator Guide (How to guide a server administrator to setup a
>>>> secondary userstore with mongodb)
>>>>
>>>> 3. User Guide (All the functionality of the userstoremanager, i.e each
>>>> function in RemoteUserStoreManager with sample SOAP requests and responses)
>>>>
>>>> We will need to look at the QA aspect of the project also.. but let's
>>>> keep aside for the moment until we get all the functionality working.
>>>>
>>>> Thanks for all the hard work !
>>>>
>>>> Best Regards,
>>>> Tharindu Edirisinghe
>>>>
>>>> On Tue, Jun 14, 2016 at 12:46 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> as you advice me i added soap ui screen shots of test result and
>>>>> selenium script for implemented functions into my repository[1]
>>>>>
>>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Mon, Jun 13, 2016 at 6:23 AM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> i updated my blog[1] with all the works i have done so far there i
>>>>>> added all the methods and their use in MongoDBUserStoreManager ,
>>>>>> hopes your feedback
>>>>>> [1] http://asanthamax.blogspot.com/
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>> On Sun, Jun 12, 2016 at 2:11 PM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Tharindu,
>>>>>>>
>>>>>>> i have solved the login issue for registered users in my mongodb
>>>>>>> user store. after compare my implementation with JDBCUserStoreManager i
>>>>>>> realized that i would gone through the wrong path by implementing
>>>>>>> UserStoreManager so i changed it by extending AbstractUserStoreManager
>>>>>>> instead of UserStoreManager thereafter most of the issues i have faced
>>>>>>> being resolved now it can add new users,roles and assign users to roles
>>>>>>> ,roles to users can change user profile claim values and also registered
>>>>>>> users can successfully logged into IS still the delete part has to be
>>>>>>> implemented and i will prepare a test scripts for my already implemented
>>>>>>> working parts sooner and from implemented m

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-16 Thread Asantha Thilina
Hi Tharindu,

I have prepared the user guide[1] and administrator guide[2] in google doc
since all tasks are not finished yet i have only added the tasks i have
already done and there is still the developer guide has to be prepare i
will prepare it as sooner as well

[1]
https://docs.google.com/document/d/1fCLfZYsPOBkHMzRCGM3aexoBSplX3bKIRmONmFsgkBc/edit?usp=sharing
[2]
https://docs.google.com/document/d/1mdnmYruzQz5QSxAYwM1XVeJntJMFdxUsV5gord7LuPA/edit?usp=sharing

Thanks,
Asantha

On Tue, Jun 14, 2016 at 1:55 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> sure i will prepare those documents sooner
>
> Thanks,
> Asantha
>
> On Mon, Jun 13, 2016 at 9:38 PM, Tharindu Edirisinghe 
> wrote:
>
>> Excellent work Asantha !
>>
>> Meanwhile you can prepare a document also adding the screenshots you have
>> got. Basically we will need following documentation.
>>
>> 1. Developer Guide ( The architecture of the userstoremanager, diagrams
>> of all the collections, how they are related to each other etc.)
>>
>> 2. Administrator Guide (How to guide a server administrator to setup a
>> secondary userstore with mongodb)
>>
>> 3. User Guide (All the functionality of the userstoremanager, i.e each
>> function in RemoteUserStoreManager with sample SOAP requests and responses)
>>
>> We will need to look at the QA aspect of the project also.. but let's
>> keep aside for the moment until we get all the functionality working.
>>
>> Thanks for all the hard work !
>>
>> Best Regards,
>> Tharindu Edirisinghe
>>
>> On Tue, Jun 14, 2016 at 12:46 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> as you advice me i added soap ui screen shots of test result and
>>> selenium script for implemented functions into my repository[1]
>>>
>>> [1] https://github.com/asanthamax/mongodbuserstore
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Jun 13, 2016 at 6:23 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> i updated my blog[1] with all the works i have done so far there i
>>>> added all the methods and their use in MongoDBUserStoreManager ,
>>>> hopes your feedback
>>>> [1] http://asanthamax.blogspot.com/
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Sun, Jun 12, 2016 at 2:11 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> i have solved the login issue for registered users in my mongodb user
>>>>> store. after compare my implementation with JDBCUserStoreManager i 
>>>>> realized
>>>>> that i would gone through the wrong path by implementing UserStoreManager
>>>>> so i changed it by extending AbstractUserStoreManager instead of
>>>>> UserStoreManager thereafter most of the issues i have faced being resolved
>>>>> now it can add new users,roles and assign users to roles ,roles to users
>>>>> can change user profile claim values and also registered users can
>>>>> successfully logged into IS still the delete part has to be implemented 
>>>>> and
>>>>> i will prepare a test scripts for my already implemented working parts
>>>>> sooner and from implemented modules only issue i'm facing at the moment is
>>>>> i can't decrypt the salted password of MongoDB server configuration in 
>>>>> user
>>>>> store property xml file
>>>>> And also I need some advice from you to how i can improve the security
>>>>> of my query parameters in MongoDB
>>>>> i updated all my works in my repository[1]
>>>>>
>>>>> [1]https://github.com/asanthamax/mongodbuserstore
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Fri, Jun 10, 2016 at 12:51 PM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> sorry for the delay i have updated my blog today and i'm keep posting
>>>>>> all the progress in their[1] up to now and i am look forward for your
>>>>>> feedbacks and comments
>>>>>>
>>>>>> [1]http://asanthamax.blogspot.com/
>>>>>>
>>>>>> Thanks,
>>>>&g

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-13 Thread Asantha Thilina
Hi Tharindu,

sure i will prepare those documents sooner

Thanks,
Asantha

On Mon, Jun 13, 2016 at 9:38 PM, Tharindu Edirisinghe 
wrote:

> Excellent work Asantha !
>
> Meanwhile you can prepare a document also adding the screenshots you have
> got. Basically we will need following documentation.
>
> 1. Developer Guide ( The architecture of the userstoremanager, diagrams of
> all the collections, how they are related to each other etc.)
>
> 2. Administrator Guide (How to guide a server administrator to setup a
> secondary userstore with mongodb)
>
> 3. User Guide (All the functionality of the userstoremanager, i.e each
> function in RemoteUserStoreManager with sample SOAP requests and responses)
>
> We will need to look at the QA aspect of the project also.. but let's keep
> aside for the moment until we get all the functionality working.
>
> Thanks for all the hard work !
>
> Best Regards,
> Tharindu Edirisinghe
>
> On Tue, Jun 14, 2016 at 12:46 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> as you advice me i added soap ui screen shots of test result and selenium
>> script for implemented functions into my repository[1]
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>> Thanks,
>> Asantha
>>
>> On Mon, Jun 13, 2016 at 6:23 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> i updated my blog[1] with all the works i have done so far there i added
>>> all the methods and their use in MongoDBUserStoreManager ,
>>> hopes your feedback
>>> [1] http://asanthamax.blogspot.com/
>>> Thanks,
>>> Asantha
>>>
>>> On Sun, Jun 12, 2016 at 2:11 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> i have solved the login issue for registered users in my mongodb user
>>>> store. after compare my implementation with JDBCUserStoreManager i realized
>>>> that i would gone through the wrong path by implementing UserStoreManager
>>>> so i changed it by extending AbstractUserStoreManager instead of
>>>> UserStoreManager thereafter most of the issues i have faced being resolved
>>>> now it can add new users,roles and assign users to roles ,roles to users
>>>> can change user profile claim values and also registered users can
>>>> successfully logged into IS still the delete part has to be implemented and
>>>> i will prepare a test scripts for my already implemented working parts
>>>> sooner and from implemented modules only issue i'm facing at the moment is
>>>> i can't decrypt the salted password of MongoDB server configuration in user
>>>> store property xml file
>>>> And also I need some advice from you to how i can improve the security
>>>> of my query parameters in MongoDB
>>>> i updated all my works in my repository[1]
>>>>
>>>> [1]https://github.com/asanthamax/mongodbuserstore
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Fri, Jun 10, 2016 at 12:51 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> sorry for the delay i have updated my blog today and i'm keep posting
>>>>> all the progress in their[1] up to now and i am look forward for your
>>>>> feedbacks and comments
>>>>>
>>>>> [1]http://asanthamax.blogspot.com/
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Thu, Jun 9, 2016 at 7:37 AM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> Great ! There has been a delay in my replies but it's really good to
>>>>>> see your progress with the project with a minimum level of supervision.
>>>>>>
>>>>>> I will arrange a review next week with the Identity Server team for
>>>>>> the work completed so far and then we can provide the Mid Review feedback
>>>>>> for the project.
>>>>>>
>>>>>> Keep on communicating the progress and the issues you face via emails
>>>>>> and also update your blog with the findings.
>>>>>>
>>>>>> Thank you,
>>>>>> TharinduE
>>>

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-13 Thread Asantha Thilina
Hi Tharindu,

as you advice me i added soap ui screen shots of test result and selenium
script for implemented functions into my repository[1]

[1] https://github.com/asanthamax/mongodbuserstore
Thanks,
Asantha

On Mon, Jun 13, 2016 at 6:23 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> i updated my blog[1] with all the works i have done so far there i added
> all the methods and their use in MongoDBUserStoreManager ,
> hopes your feedback
> [1] http://asanthamax.blogspot.com/
> Thanks,
> Asantha
>
> On Sun, Jun 12, 2016 at 2:11 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> i have solved the login issue for registered users in my mongodb user
>> store. after compare my implementation with JDBCUserStoreManager i realized
>> that i would gone through the wrong path by implementing UserStoreManager
>> so i changed it by extending AbstractUserStoreManager instead of
>> UserStoreManager thereafter most of the issues i have faced being resolved
>> now it can add new users,roles and assign users to roles ,roles to users
>> can change user profile claim values and also registered users can
>> successfully logged into IS still the delete part has to be implemented and
>> i will prepare a test scripts for my already implemented working parts
>> sooner and from implemented modules only issue i'm facing at the moment is
>> i can't decrypt the salted password of MongoDB server configuration in user
>> store property xml file
>> And also I need some advice from you to how i can improve the security of
>> my query parameters in MongoDB
>> i updated all my works in my repository[1]
>>
>> [1]https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Fri, Jun 10, 2016 at 12:51 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> sorry for the delay i have updated my blog today and i'm keep posting
>>> all the progress in their[1] up to now and i am look forward for your
>>> feedbacks and comments
>>>
>>> [1]http://asanthamax.blogspot.com/
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Thu, Jun 9, 2016 at 7:37 AM, Tharindu Edirisinghe >> > wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> Great ! There has been a delay in my replies but it's really good to
>>>> see your progress with the project with a minimum level of supervision.
>>>>
>>>> I will arrange a review next week with the Identity Server team for the
>>>> work completed so far and then we can provide the Mid Review feedback for
>>>> the project.
>>>>
>>>> Keep on communicating the progress and the issues you face via emails
>>>> and also update your blog with the findings.
>>>>
>>>> Thank you,
>>>> TharinduE
>>>>
>>>> On Thu, Jun 9, 2016 at 4:44 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> i rearranged the UM_USER_ATTRIBUTE collection now when ever user
>>>>> update his profile, claim values will save in the collection the way we
>>>>> discussed in hangout i updated my repo[1] with latest modification
>>>>>
>>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Wed, Jun 8, 2016 at 8:03 AM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> sorry i forget to attach my github repository here is the repository
>>>>>> link i have update the repository with my latest errors fixed
>>>>>> https://github.com/asanthamax/mongodbuserstore
>>>>>>
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>> On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Tharindu,
>>>>>>>
>>>>>>> I have fixed the claims issue now it can update and add claims to
>>>>>>> user but still the db structure is same as in relational structure i 
>>>>>>> have
>>>>>>> currently mapping it to a way we discussed ,most of the issues being 
>>>>>&g

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-13 Thread Asantha Thilina
Hi Tharindu,

i updated my blog[1] with all the works i have done so far there i added
all the methods and their use in MongoDBUserStoreManager ,
hopes your feedback
[1] http://asanthamax.blogspot.com/
Thanks,
Asantha

On Sun, Jun 12, 2016 at 2:11 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> i have solved the login issue for registered users in my mongodb user
> store. after compare my implementation with JDBCUserStoreManager i realized
> that i would gone through the wrong path by implementing UserStoreManager
> so i changed it by extending AbstractUserStoreManager instead of
> UserStoreManager thereafter most of the issues i have faced being resolved
> now it can add new users,roles and assign users to roles ,roles to users
> can change user profile claim values and also registered users can
> successfully logged into IS still the delete part has to be implemented and
> i will prepare a test scripts for my already implemented working parts
> sooner and from implemented modules only issue i'm facing at the moment is
> i can't decrypt the salted password of MongoDB server configuration in user
> store property xml file
> And also I need some advice from you to how i can improve the security of
> my query parameters in MongoDB
> i updated all my works in my repository[1]
>
> [1]https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Fri, Jun 10, 2016 at 12:51 PM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> sorry for the delay i have updated my blog today and i'm keep posting all
>> the progress in their[1] up to now and i am look forward for your feedbacks
>> and comments
>>
>> [1]http://asanthamax.blogspot.com/
>>
>> Thanks,
>> Asantha
>>
>> On Thu, Jun 9, 2016 at 7:37 AM, Tharindu Edirisinghe 
>> wrote:
>>
>>> Hi Asantha,
>>>
>>> Great ! There has been a delay in my replies but it's really good to see
>>> your progress with the project with a minimum level of supervision.
>>>
>>> I will arrange a review next week with the Identity Server team for the
>>> work completed so far and then we can provide the Mid Review feedback for
>>> the project.
>>>
>>> Keep on communicating the progress and the issues you face via emails
>>> and also update your blog with the findings.
>>>
>>> Thank you,
>>> TharinduE
>>>
>>> On Thu, Jun 9, 2016 at 4:44 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> i rearranged the UM_USER_ATTRIBUTE collection now when ever user update
>>>> his profile, claim values will save in the collection the way we discussed
>>>> in hangout i updated my repo[1] with latest modification
>>>>
>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Wed, Jun 8, 2016 at 8:03 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> sorry i forget to attach my github repository here is the repository
>>>>> link i have update the repository with my latest errors fixed
>>>>> https://github.com/asanthamax/mongodbuserstore
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> I have fixed the claims issue now it can update and add claims to
>>>>>> user but still the db structure is same as in relational structure i have
>>>>>> currently mapping it to a way we discussed ,most of the issues being 
>>>>>> fixed
>>>>>> now following tasks can do in now MongoDBUserStoreManager
>>>>>> can add users.
>>>>>> can add roles.
>>>>>> can assign roles to users.
>>>>>> can assign users to roles.
>>>>>> can edit user claim values in update profile.
>>>>>> I creating the documentation of my MongoDBUserStoreManager as well
>>>>>> sooner i will publish the document and also test scripts as well
>>>>>> And also following are the issues now i facing in
>>>>>> registered users in my user store domain can't login to the IS it's

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-12 Thread Asantha Thilina
Hi Tharindu,

i have solved the login issue for registered users in my mongodb user
store. after compare my implementation with JDBCUserStoreManager i realized
that i would gone through the wrong path by implementing UserStoreManager
so i changed it by extending AbstractUserStoreManager instead of
UserStoreManager thereafter most of the issues i have faced being resolved
now it can add new users,roles and assign users to roles ,roles to users
can change user profile claim values and also registered users can
successfully logged into IS still the delete part has to be implemented and
i will prepare a test scripts for my already implemented working parts
sooner and from implemented modules only issue i'm facing at the moment is
i can't decrypt the salted password of MongoDB server configuration in user
store property xml file
And also I need some advice from you to how i can improve the security of
my query parameters in MongoDB
i updated all my works in my repository[1]

[1]https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Fri, Jun 10, 2016 at 12:51 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> sorry for the delay i have updated my blog today and i'm keep posting all
> the progress in their[1] up to now and i am look forward for your feedbacks
> and comments
>
> [1]http://asanthamax.blogspot.com/
>
> Thanks,
> Asantha
>
> On Thu, Jun 9, 2016 at 7:37 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> Great ! There has been a delay in my replies but it's really good to see
>> your progress with the project with a minimum level of supervision.
>>
>> I will arrange a review next week with the Identity Server team for the
>> work completed so far and then we can provide the Mid Review feedback for
>> the project.
>>
>> Keep on communicating the progress and the issues you face via emails and
>> also update your blog with the findings.
>>
>> Thank you,
>> TharinduE
>>
>> On Thu, Jun 9, 2016 at 4:44 PM, Asantha Thilina > > wrote:
>>
>>> Hi Tharindu,
>>>
>>> i rearranged the UM_USER_ATTRIBUTE collection now when ever user update
>>> his profile, claim values will save in the collection the way we discussed
>>> in hangout i updated my repo[1] with latest modification
>>>
>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Wed, Jun 8, 2016 at 8:03 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> sorry i forget to attach my github repository here is the repository
>>>> link i have update the repository with my latest errors fixed
>>>> https://github.com/asanthamax/mongodbuserstore
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> I have fixed the claims issue now it can update and add claims to user
>>>>> but still the db structure is same as in relational structure i have
>>>>> currently mapping it to a way we discussed ,most of the issues being fixed
>>>>> now following tasks can do in now MongoDBUserStoreManager
>>>>> can add users.
>>>>> can add roles.
>>>>> can assign roles to users.
>>>>> can assign users to roles.
>>>>> can edit user claim values in update profile.
>>>>> I creating the documentation of my MongoDBUserStoreManager as well
>>>>> sooner i will publish the document and also test scripts as well
>>>>> And also following are the issues now i facing in
>>>>> registered users in my user store domain can't login to the IS it's
>>>>> giving error as MongoDBUserStoreManager can't cast to
>>>>> AbstractUserStoreManager since i done MongoDBUserStoreManager by
>>>>> implementing the UserStoreManager is there any special changes to do in my
>>>>> code to authenticate user ? i debugged and see my doAuthenticate method 
>>>>> not
>>>>> get triggered during runtime
>>>>> expect some advice from you
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Mon, Jun 6, 2016 at 1:18 AM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-10 Thread Asantha Thilina
Hi Tharindu,

sorry for the delay i have updated my blog today and i'm keep posting all
the progress in their[1] up to now and i am look forward for your feedbacks
and comments

[1]http://asanthamax.blogspot.com/

Thanks,
Asantha

On Thu, Jun 9, 2016 at 7:37 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Great ! There has been a delay in my replies but it's really good to see
> your progress with the project with a minimum level of supervision.
>
> I will arrange a review next week with the Identity Server team for the
> work completed so far and then we can provide the Mid Review feedback for
> the project.
>
> Keep on communicating the progress and the issues you face via emails and
> also update your blog with the findings.
>
> Thank you,
> TharinduE
>
> On Thu, Jun 9, 2016 at 4:44 PM, Asantha Thilina 
> wrote:
>
>> Hi Tharindu,
>>
>> i rearranged the UM_USER_ATTRIBUTE collection now when ever user update
>> his profile, claim values will save in the collection the way we discussed
>> in hangout i updated my repo[1] with latest modification
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Wed, Jun 8, 2016 at 8:03 AM, Asantha Thilina > > wrote:
>>
>>> Hi Tharindu,
>>>
>>> sorry i forget to attach my github repository here is the repository
>>> link i have update the repository with my latest errors fixed
>>> https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> I have fixed the claims issue now it can update and add claims to user
>>>> but still the db structure is same as in relational structure i have
>>>> currently mapping it to a way we discussed ,most of the issues being fixed
>>>> now following tasks can do in now MongoDBUserStoreManager
>>>> can add users.
>>>> can add roles.
>>>> can assign roles to users.
>>>> can assign users to roles.
>>>> can edit user claim values in update profile.
>>>> I creating the documentation of my MongoDBUserStoreManager as well
>>>> sooner i will publish the document and also test scripts as well
>>>> And also following are the issues now i facing in
>>>> registered users in my user store domain can't login to the IS it's
>>>> giving error as MongoDBUserStoreManager can't cast to
>>>> AbstractUserStoreManager since i done MongoDBUserStoreManager by
>>>> implementing the UserStoreManager is there any special changes to do in my
>>>> code to authenticate user ? i debugged and see my doAuthenticate method not
>>>> get triggered during runtime
>>>> expect some advice from you
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Mon, Jun 6, 2016 at 1:18 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> ok sure i will modify the readme content as appropriately,at the
>>>>> moment i didn't add that feature, set to all default i will modify that to
>>>>> add a port number also,
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Mon, Jun 6, 2016 at 12:04 AM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> We might not need implementing the HybridRoleManager... I'll provide
>>>>>> you the exact details after trying out the functionality you have
>>>>>> implemented up to now.
>>>>>>
>>>>>> Can you please write a basic document with the steps for creating the
>>>>>> mongodb database and adding a userstore in IS pointing to the created
>>>>>> mongodb database and include in the ReadMe of github repo.
>>>>>>
>>>>>> Also if mongodb server is running in a different port other than the
>>>>>> default port, can we still connect to that ? I didn't see a place to 
>>>>>> define
>>>>>> the port in the configuration.. should it be added as a connection 
>>>>>> string ?
>>>>>> (didn't go through the code to find what is 

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-09 Thread Asantha Thilina
Hi Tharindu,

i rearranged the UM_USER_ATTRIBUTE collection now when ever user update his
profile, claim values will save in the collection the way we discussed in
hangout i updated my repo[1] with latest modification

[1] https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Wed, Jun 8, 2016 at 8:03 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> sorry i forget to attach my github repository here is the repository link
> i have update the repository with my latest errors fixed
> https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina 
> wrote:
>
>> Hi Tharindu,
>>
>> I have fixed the claims issue now it can update and add claims to user
>> but still the db structure is same as in relational structure i have
>> currently mapping it to a way we discussed ,most of the issues being fixed
>> now following tasks can do in now MongoDBUserStoreManager
>> can add users.
>> can add roles.
>> can assign roles to users.
>> can assign users to roles.
>> can edit user claim values in update profile.
>> I creating the documentation of my MongoDBUserStoreManager as well sooner
>> i will publish the document and also test scripts as well
>> And also following are the issues now i facing in
>> registered users in my user store domain can't login to the IS it's
>> giving error as MongoDBUserStoreManager can't cast to
>> AbstractUserStoreManager since i done MongoDBUserStoreManager by
>> implementing the UserStoreManager is there any special changes to do in my
>> code to authenticate user ? i debugged and see my doAuthenticate method not
>> get triggered during runtime
>> expect some advice from you
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Jun 6, 2016 at 1:18 AM, Asantha Thilina > > wrote:
>>
>>> Hi Tharindu,
>>>
>>> ok sure i will modify the readme content as appropriately,at the moment
>>> i didn't add that feature, set to all default i will modify that to add a
>>> port number also,
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Jun 6, 2016 at 12:04 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> We might not need implementing the HybridRoleManager... I'll provide
>>>> you the exact details after trying out the functionality you have
>>>> implemented up to now.
>>>>
>>>> Can you please write a basic document with the steps for creating the
>>>> mongodb database and adding a userstore in IS pointing to the created
>>>> mongodb database and include in the ReadMe of github repo.
>>>>
>>>> Also if mongodb server is running in a different port other than the
>>>> default port, can we still connect to that ? I didn't see a place to define
>>>> the port in the configuration.. should it be added as a connection string ?
>>>> (didn't go through the code to find what is going wrong)
>>>>
>>>> Thanks,
>>>> TharinduE
>>>>
>>>> On Sun, Jun 5, 2016 at 11:55 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> As we discussed on hangout i doing the changes in UM_USER_ATTRIBUTE
>>>>> collection and also changing the hybrid role to master datasource but when
>>>>> i try to add user to hybrid role i facing a small issue i can't grab the
>>>>> datasource ,in HybridRoleManager class it need to give java.sql.DataSource
>>>>> but in my current user store manager class i have never used a sql
>>>>> datasource(since it nosql) so i think i need to grab the master datasource
>>>>> of IS which is h2 database datasource, is there a way to get the primary
>>>>> datasource?
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Sat, Jun 4, 2016 at 1:59 PM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> The call details are as following.
>>>>>>
>>>>>> 1. Demonstrated how to use WSO2 admin services.
>>>>>>
>>>>>> 2. All the user operations in *RemoteUserStoreManagerService *[1]
>>>>>> should be tested (using SOAP UI) for the mongodb userstore.
>>>>>>
>>>>>> 3. When the user pro

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-08 Thread Asantha Thilina
Hi Tharindu,

sorry i forget to attach my github repository here is the repository link i
have update the repository with my latest errors fixed
https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> I have fixed the claims issue now it can update and add claims to user but
> still the db structure is same as in relational structure i have currently
> mapping it to a way we discussed ,most of the issues being fixed now
> following tasks can do in now MongoDBUserStoreManager
> can add users.
> can add roles.
> can assign roles to users.
> can assign users to roles.
> can edit user claim values in update profile.
> I creating the documentation of my MongoDBUserStoreManager as well sooner
> i will publish the document and also test scripts as well
> And also following are the issues now i facing in
> registered users in my user store domain can't login to the IS it's giving
> error as MongoDBUserStoreManager can't cast to AbstractUserStoreManager
> since i done MongoDBUserStoreManager by implementing the UserStoreManager
> is there any special changes to do in my code to authenticate user ? i
> debugged and see my doAuthenticate method not get triggered during runtime
> expect some advice from you
>
> Thanks,
> Asantha
>
> On Mon, Jun 6, 2016 at 1:18 AM, Asantha Thilina 
> wrote:
>
>> Hi Tharindu,
>>
>> ok sure i will modify the readme content as appropriately,at the moment i
>> didn't add that feature, set to all default i will modify that to add a
>> port number also,
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Jun 6, 2016 at 12:04 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Asantha,
>>>
>>> We might not need implementing the HybridRoleManager... I'll provide you
>>> the exact details after trying out the functionality you have implemented
>>> up to now.
>>>
>>> Can you please write a basic document with the steps for creating the
>>> mongodb database and adding a userstore in IS pointing to the created
>>> mongodb database and include in the ReadMe of github repo.
>>>
>>> Also if mongodb server is running in a different port other than the
>>> default port, can we still connect to that ? I didn't see a place to define
>>> the port in the configuration.. should it be added as a connection string ?
>>> (didn't go through the code to find what is going wrong)
>>>
>>> Thanks,
>>> TharinduE
>>>
>>> On Sun, Jun 5, 2016 at 11:55 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> As we discussed on hangout i doing the changes in UM_USER_ATTRIBUTE
>>>> collection and also changing the hybrid role to master datasource but when
>>>> i try to add user to hybrid role i facing a small issue i can't grab the
>>>> datasource ,in HybridRoleManager class it need to give java.sql.DataSource
>>>> but in my current user store manager class i have never used a sql
>>>> datasource(since it nosql) so i think i need to grab the master datasource
>>>> of IS which is h2 database datasource, is there a way to get the primary
>>>> datasource?
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Sat, Jun 4, 2016 at 1:59 PM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> The call details are as following.
>>>>>
>>>>> 1. Demonstrated how to use WSO2 admin services.
>>>>>
>>>>> 2. All the user operations in *RemoteUserStoreManagerService *[1]
>>>>> should be tested (using SOAP UI) for the mongodb userstore.
>>>>>
>>>>> 3. When the user profile is saved in a JDBC userstore, for each
>>>>> attribute of the user, it will add a new entry in *UM_USER_ATTRIBUTE 
>>>>> **(Refer
>>>>> [2] for more information) *like below.
>>>>>
>>>>>
>>>>> +---+--+-+---++--+
>>>>> | UM_ID | UM_ATTR_NAME | UM_ATTR_VALUE   | UM_PROFILE_ID |
>>>>> UM_USER_ID | UM_TENANT_ID |
>>>>>
>>>>> +---+--+-+---++--+
>>>>> | 1 | im   | | default
>>>>> |   

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-08 Thread Asantha Thilina
Hi Tharindu,

I have fixed the claims issue now it can update and add claims to user but
still the db structure is same as in relational structure i have currently
mapping it to a way we discussed ,most of the issues being fixed now
following tasks can do in now MongoDBUserStoreManager
can add users.
can add roles.
can assign roles to users.
can assign users to roles.
can edit user claim values in update profile.
I creating the documentation of my MongoDBUserStoreManager as well sooner i
will publish the document and also test scripts as well
And also following are the issues now i facing in
registered users in my user store domain can't login to the IS it's giving
error as MongoDBUserStoreManager can't cast to AbstractUserStoreManager
since i done MongoDBUserStoreManager by implementing the UserStoreManager
is there any special changes to do in my code to authenticate user ? i
debugged and see my doAuthenticate method not get triggered during runtime
expect some advice from you

Thanks,
Asantha

On Mon, Jun 6, 2016 at 1:18 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> ok sure i will modify the readme content as appropriately,at the moment i
> didn't add that feature, set to all default i will modify that to add a
> port number also,
>
> Thanks,
> Asantha
>
> On Mon, Jun 6, 2016 at 12:04 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> We might not need implementing the HybridRoleManager... I'll provide you
>> the exact details after trying out the functionality you have implemented
>> up to now.
>>
>> Can you please write a basic document with the steps for creating the
>> mongodb database and adding a userstore in IS pointing to the created
>> mongodb database and include in the ReadMe of github repo.
>>
>> Also if mongodb server is running in a different port other than the
>> default port, can we still connect to that ? I didn't see a place to define
>> the port in the configuration.. should it be added as a connection string ?
>> (didn't go through the code to find what is going wrong)
>>
>> Thanks,
>> TharinduE
>>
>> On Sun, Jun 5, 2016 at 11:55 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> As we discussed on hangout i doing the changes in UM_USER_ATTRIBUTE
>>> collection and also changing the hybrid role to master datasource but when
>>> i try to add user to hybrid role i facing a small issue i can't grab the
>>> datasource ,in HybridRoleManager class it need to give java.sql.DataSource
>>> but in my current user store manager class i have never used a sql
>>> datasource(since it nosql) so i think i need to grab the master datasource
>>> of IS which is h2 database datasource, is there a way to get the primary
>>> datasource?
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Sat, Jun 4, 2016 at 1:59 PM, Tharindu Edirisinghe >> > wrote:
>>>
>>>> The call details are as following.
>>>>
>>>> 1. Demonstrated how to use WSO2 admin services.
>>>>
>>>> 2. All the user operations in *RemoteUserStoreManagerService *[1]
>>>> should be tested (using SOAP UI) for the mongodb userstore.
>>>>
>>>> 3. When the user profile is saved in a JDBC userstore, for each
>>>> attribute of the user, it will add a new entry in *UM_USER_ATTRIBUTE 
>>>> **(Refer
>>>> [2] for more information) *like below.
>>>>
>>>>
>>>> +---+--+-+---++--+
>>>> | UM_ID | UM_ATTR_NAME | UM_ATTR_VALUE   | UM_PROFILE_ID |
>>>> UM_USER_ID | UM_TENANT_ID |
>>>>
>>>> +---+--+-+---++--+
>>>> | 1 | im   | | default
>>>> |  1 |-1234 |
>>>> | 2 | region   | Western | default
>>>> |  1 |-1234 |
>>>> | 3 | streetAddress| | default
>>>> |  1 |-1234 |
>>>> | 4 | country  | | default
>>>> |  1 |-1234 |
>>>> | 5 | mobile   | | default
>>>> |  1 |-1234 |
>>>> | 6 | sn   | NewLastname | default
>>>> |  1 |-1234 |
>>>> | 7 | profileConfiguration | default | default
>

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-05 Thread Asantha Thilina
Hi Tharindu,

ok sure i will modify the readme content as appropriately,at the moment i
didn't add that feature, set to all default i will modify that to add a
port number also,

Thanks,
Asantha

On Mon, Jun 6, 2016 at 12:04 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> We might not need implementing the HybridRoleManager... I'll provide you
> the exact details after trying out the functionality you have implemented
> up to now.
>
> Can you please write a basic document with the steps for creating the
> mongodb database and adding a userstore in IS pointing to the created
> mongodb database and include in the ReadMe of github repo.
>
> Also if mongodb server is running in a different port other than the
> default port, can we still connect to that ? I didn't see a place to define
> the port in the configuration.. should it be added as a connection string ?
> (didn't go through the code to find what is going wrong)
>
> Thanks,
> TharinduE
>
> On Sun, Jun 5, 2016 at 11:55 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> As we discussed on hangout i doing the changes in UM_USER_ATTRIBUTE
>> collection and also changing the hybrid role to master datasource but when
>> i try to add user to hybrid role i facing a small issue i can't grab the
>> datasource ,in HybridRoleManager class it need to give java.sql.DataSource
>> but in my current user store manager class i have never used a sql
>> datasource(since it nosql) so i think i need to grab the master datasource
>> of IS which is h2 database datasource, is there a way to get the primary
>> datasource?
>>
>> Thanks,
>> Asantha
>>
>> On Sat, Jun 4, 2016 at 1:59 PM, Tharindu Edirisinghe 
>> wrote:
>>
>>> The call details are as following.
>>>
>>> 1. Demonstrated how to use WSO2 admin services.
>>>
>>> 2. All the user operations in *RemoteUserStoreManagerService *[1]
>>> should be tested (using SOAP UI) for the mongodb userstore.
>>>
>>> 3. When the user profile is saved in a JDBC userstore, for each
>>> attribute of the user, it will add a new entry in *UM_USER_ATTRIBUTE 
>>> **(Refer
>>> [2] for more information) *like below.
>>>
>>>
>>> +---+--+-+---++--+
>>> | UM_ID | UM_ATTR_NAME | UM_ATTR_VALUE   | UM_PROFILE_ID |
>>> UM_USER_ID | UM_TENANT_ID |
>>>
>>> +---+--+-+---++--+
>>> | 1 | im   | | default
>>> |  1 |-1234 |
>>> | 2 | region   | Western | default
>>> |  1 |-1234 |
>>> | 3 | streetAddress| | default
>>> |  1 |-1234 |
>>> | 4 | country  | | default
>>> |  1 |-1234 |
>>> | 5 | mobile   | | default
>>> |  1 |-1234 |
>>> | 6 | sn   | NewLastname | default
>>> |  1 |-1234 |
>>> | 7 | profileConfiguration | default | default
>>> |  1 |-1234 |
>>> | 8 | dateOfBirth  | | default
>>> |  1 |-1234 |
>>> | 9 | mail | newu...@new.com | default
>>> |  1 |-1234 |
>>> |10 | organizationName | WSO2| default
>>> |  1 |-1234 |
>>> |11 | givenName| NewUser | default
>>> |  1 |-1234 |
>>> |12 | province | western | default
>>> |  1 |-1234 |
>>>
>>> +---+--+-+---++--+
>>>
>>> Performance wise this is not a good design. For mongodb userstore, I
>>> suggested to add a new document in *UM_USER_ATTRIBUTE *collection for
>>> each user. If the attribute value is empty in the profile, an empty string
>>> can be stored.
>>>
>>> {
>>>"im": "",
>>>" region": "Western",
>>>"street": "Address",
>>>"country": "",
>>>"mobile": "",
>>>"sn": "NewLastname",
>>>"profileConfiguration": "default",
&

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-05 Thread Asantha Thilina
Hi Tharindu,

As we discussed on hangout i doing the changes in UM_USER_ATTRIBUTE
collection and also changing the hybrid role to master datasource but when
i try to add user to hybrid role i facing a small issue i can't grab the
datasource ,in HybridRoleManager class it need to give java.sql.DataSource
but in my current user store manager class i have never used a sql
datasource(since it nosql) so i think i need to grab the master datasource
of IS which is h2 database datasource, is there a way to get the primary
datasource?

Thanks,
Asantha

On Sat, Jun 4, 2016 at 1:59 PM, Tharindu Edirisinghe 
wrote:

> The call details are as following.
>
> 1. Demonstrated how to use WSO2 admin services.
>
> 2. All the user operations in *RemoteUserStoreManagerService *[1] should
> be tested (using SOAP UI) for the mongodb userstore.
>
> 3. When the user profile is saved in a JDBC userstore, for each attribute
> of the user, it will add a new entry in *UM_USER_ATTRIBUTE **(Refer [2]
> for more information) *like below.
>
>
> +---+--+-+---++--+
> | UM_ID | UM_ATTR_NAME | UM_ATTR_VALUE   | UM_PROFILE_ID |
> UM_USER_ID | UM_TENANT_ID |
>
> +---+--+-+---++--+
> | 1 | im   | | default
> |  1 |-1234 |
> | 2 | region   | Western | default
> |  1 |-1234 |
> | 3 | streetAddress| | default
> |  1 |-1234 |
> | 4 | country  | | default
> |  1 |-1234 |
> | 5 | mobile   | | default
> |  1 |-1234 |
> | 6 | sn   | NewLastname | default
> |  1 |-1234 |
> | 7 | profileConfiguration | default | default
> |  1 |-1234 |
> | 8 | dateOfBirth  | | default
> |  1 |-1234 |
> | 9 | mail | newu...@new.com | default
> |  1 |-1234 |
> |10 | organizationName | WSO2| default
> |  1 |-1234 |
> |11 | givenName| NewUser | default
> |  1 |-1234 |
> |12 | province | western | default
> |  1 |-1234 |
>
> +---+--+-+---++--+
>
> Performance wise this is not a good design. For mongodb userstore, I
> suggested to add a new document in *UM_USER_ATTRIBUTE *collection for
> each user. If the attribute value is empty in the profile, an empty string
> can be stored.
>
> {
>"im": "",
>" region": "Western",
>"street": "Address",
>"country": "",
>"mobile": "",
>"sn": "NewLastname",
>"profileConfiguration": "default",
>"dateOfBirth": "",
>"mail": "newu...@new.com",
>"organizationName": "WSO2",
>"givenName": "NewUser",
>"province": "western"
>
> }
>
> 3. Profile saving is having some issues currently and we need to further
> investigate what is going wrong. Until the issue is figured out, asked to
> manually create json documents in *UM_USER_ATTRIBUTE *collection and
> implement the retrieval of user attributes.
>
> *(can test getUserClaimValues method in the admin service using SOAP UI)*
> 4. For the analytics part of the project, suggested to extend the 
> *AbstractUserOperationEventListener
> *class [1] and override the methods for publishing events.
>
> 5. Developer documentation, Administration Guide and Testing Guide *(sample
> SOAP requests and responses in RemoteUserStoreManagerService API) *should
> be written as deliverables. For all actions related to the mongodb
> userstore manager *(i.e add user, delete user, add role ...) *, Selenium
> scripts should be provided *(can use firefox selenium addon and record
> each operation and provide the scripts)*.
>
> So far the progress is satisfactory. Keep on the good work !
>
> [1] https://localhost:9443/services/RemoteUserStoreManagerService?wsdl
> [2]
> http://tharindue.blogspot.com/2015/04/wso2-identity-server-data-dictionary.html
> [3]
> https://github.com/wso2/carbon-kernel/blob/v4.4.3/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/common/AbstractUserOperationEventListener.java
>
> Thank you,
> TharinduE
>

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-03 Thread Asantha Thilina
Hi Tharindu,

ok sure i will look forward for that

Thanks,
Asantha

On Fri, Jun 3, 2016 at 2:44 PM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Shall we have a google hangout tomorrow (Saturday) at 9.00 p.m ? So we can
> discuss about the issues you are facing and get them resolved.
>
> Regards,
> TharinduE
>
> On Fri, Jun 3, 2016 at 11:43 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> i fixed the most of the errors appeared in my user store in user
>> management side now it's almost done in user management side now i can add
>> new users ,roles and search roles of users and users of roles only issue i
>> having now is i can't update a user profile of user in user store i getting
>> a exception ,i want to get some advice from you to resolve that error and
>> to implement a logic to commit transaction in mongodb and also another
>> small problem is when i added a new claim where will it save in primary
>> user store ? is there any feature to change the user store  where claims
>> going to save. like it giving an option to select userstore in a dropdown
>> when adding newusers and roles.
>>
>> all the works i have done so far in my repo[1]
>>
>> [1] . https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Wed, Jun 1, 2016 at 3:00 AM, Asantha Thilina > > wrote:
>>
>>>
>>> -- Forwarded message --
>>> From: Asantha Thilina 
>>> Date: Wed, Jun 1, 2016 at 2:59 AM
>>> Subject: Fwd: GSOC 2016 - Project 21 : MongoDB Userstore Development
>>> To: WSO2 Developers' List , Tharindu Edirisinghe <
>>> tharin...@wso2.com>
>>>
>>>
>>>
>>> -- Forwarded message --
>>> From: Asantha Thilina 
>>> Date: Wed, Jun 1, 2016 at 2:51 AM
>>> Subject: Re: GSOC 2016 - Project 21 : MongoDB Userstore Development
>>> To: Tharindu Edirisinghe 
>>> Cc: WSO2 Developers' List , Lakmal Rupasinghe <
>>> lakma...@sliit.lk>
>>>
>>>
>>> Hi Tharindu,
>>>
>>> I fixed the most of the errors i got now my user store working it is
>>> successfully registered and can add users and roles to user store as well
>>> still there are some issues in other functions those are query errors i
>>> still fixing those as well ,i having some issues  about database
>>> transaction point of view and i need some advice from you, in mongodb there
>>> is no option to rollback transaction if error occurred how can i manage it?
>>> can we arrange a hangout meeting today or any comfortable day for you ? i'm
>>> ok with any time
>>> all the updates up to now i pushed to my repository[1]
>>>
>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Fri, May 27, 2016 at 1:56 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> sure i'll be look forward for that
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Thu, May 26, 2016 at 9:37 PM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> Hi Asantha,
>>>>>
>>>>> Glad to hear the progress... Sure I'll review over the weekend and
>>>>> provide feedback. By next week we'll have a hangout to discuss on how to
>>>>> move forward and the difficulties you have faced.  Keep the momentum 
>>>>> going !
>>>>>
>>>>> Regards,
>>>>> TharinduE
>>>>>
>>>>> On Fri, May 27, 2016 at 12:17 AM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> i been able to fix the mongodb user store intitalizing error now it
>>>>>> working successfully it will be registered as a secondary user store in 
>>>>>> IS
>>>>>> and when going to add a new users and roles it will show the domain of
>>>>>> mongodb userstore still i having small issues in my json query formats 
>>>>>> for
>>>>>> mongodb i fixing those issues at the moment all the progress so far i 
>>>>>> made
>>>>>> updated to my github repository[1] and i recently updated my blog[2] as
>>>>>> well,can yo

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-03 Thread Asantha Thilina
Hi Tharindu,

i fixed the most of the errors appeared in my user store in user management
side now it's almost done in user management side now i can add new users
,roles and search roles of users and users of roles only issue i having now
is i can't update a user profile of user in user store i getting a
exception ,i want to get some advice from you to resolve that error and to
implement a logic to commit transaction in mongodb and also another small
problem is when i added a new claim where will it save in primary user
store ? is there any feature to change the user store  where claims going
to save. like it giving an option to select userstore in a dropdown when
adding newusers and roles.

all the works i have done so far in my repo[1]

[1] . https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Wed, Jun 1, 2016 at 3:00 AM, Asantha Thilina 
wrote:

>
> -- Forwarded message ------
> From: Asantha Thilina 
> Date: Wed, Jun 1, 2016 at 2:59 AM
> Subject: Fwd: GSOC 2016 - Project 21 : MongoDB Userstore Development
> To: WSO2 Developers' List , Tharindu Edirisinghe <
> tharin...@wso2.com>
>
>
>
> ------ Forwarded message --
> From: Asantha Thilina 
> Date: Wed, Jun 1, 2016 at 2:51 AM
> Subject: Re: GSOC 2016 - Project 21 : MongoDB Userstore Development
> To: Tharindu Edirisinghe 
> Cc: WSO2 Developers' List , Lakmal Rupasinghe <
> lakma...@sliit.lk>
>
>
> Hi Tharindu,
>
> I fixed the most of the errors i got now my user store working it is
> successfully registered and can add users and roles to user store as well
> still there are some issues in other functions those are query errors i
> still fixing those as well ,i having some issues  about database
> transaction point of view and i need some advice from you, in mongodb there
> is no option to rollback transaction if error occurred how can i manage it?
> can we arrange a hangout meeting today or any comfortable day for you ? i'm
> ok with any time
> all the updates up to now i pushed to my repository[1]
>
> [1] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Fri, May 27, 2016 at 1:56 AM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> sure i'll be look forward for that
>>
>> Thanks,
>> Asantha
>>
>> On Thu, May 26, 2016 at 9:37 PM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Asantha,
>>>
>>> Glad to hear the progress... Sure I'll review over the weekend and
>>> provide feedback. By next week we'll have a hangout to discuss on how to
>>> move forward and the difficulties you have faced.  Keep the momentum going !
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Fri, May 27, 2016 at 12:17 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> i been able to fix the mongodb user store intitalizing error now it
>>>> working successfully it will be registered as a secondary user store in IS
>>>> and when going to add a new users and roles it will show the domain of
>>>> mongodb userstore still i having small issues in my json query formats for
>>>> mongodb i fixing those issues at the moment all the progress so far i made
>>>> updated to my github repository[1] and i recently updated my blog[2] as
>>>> well,can you review my code and give me a feedback?
>>>>
>>>> [1]https://github.com/asanthamax/mongodbuserstore
>>>> [2]http://asanthamax.blogspot.com/
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Sun, May 22, 2016 at 3:38 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> I have override all the methods in AbstractUserStoreManager in my
>>>>> MongoDBUserStoreManager class after that when i try to add new secondary
>>>>> user store in management console i got following error i attached the
>>>>> screen shot of the error with this mail
>>>>> i have pushed all the progress upto now to my github repository[1]
>>>>> can you give me some tips to solve this issue?
>>>>> any suggestion would be grateful
>>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Thu, May 19, 2016 at 11:47 PM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Thar

[Dev] Fwd: GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-01 Thread Asantha Thilina
-- Forwarded message --
From: Asantha Thilina 
Date: Wed, Jun 1, 2016 at 2:51 AM
Subject: Re: GSOC 2016 - Project 21 : MongoDB Userstore Development
To: Tharindu Edirisinghe 
Cc: WSO2 Developers' List , Lakmal Rupasinghe <
lakma...@sliit.lk>


Hi Tharindu,

I fixed the most of the errors i got now my user store working it is
successfully registered and can add users and roles to user store as well
still there are some issues in other functions those are query errors i
still fixing those as well ,i having some issues  about database
transaction point of view and i need some advice from you, in mongodb there
is no option to rollback transaction if error occurred how can i manage it?
can we arrange a hangout meeting today or any comfortable day for you ? i'm
ok with any time
all the updates up to now i pushed to my repository[1]

[1] https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Fri, May 27, 2016 at 1:56 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> sure i'll be look forward for that
>
> Thanks,
> Asantha
>
> On Thu, May 26, 2016 at 9:37 PM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> Glad to hear the progress... Sure I'll review over the weekend and
>> provide feedback. By next week we'll have a hangout to discuss on how to
>> move forward and the difficulties you have faced.  Keep the momentum going !
>>
>> Regards,
>> TharinduE
>>
>> On Fri, May 27, 2016 at 12:17 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> i been able to fix the mongodb user store intitalizing error now it
>>> working successfully it will be registered as a secondary user store in IS
>>> and when going to add a new users and roles it will show the domain of
>>> mongodb userstore still i having small issues in my json query formats for
>>> mongodb i fixing those issues at the moment all the progress so far i made
>>> updated to my github repository[1] and i recently updated my blog[2] as
>>> well,can you review my code and give me a feedback?
>>>
>>> [1]https://github.com/asanthamax/mongodbuserstore
>>> [2]http://asanthamax.blogspot.com/
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Sun, May 22, 2016 at 3:38 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> I have override all the methods in AbstractUserStoreManager in my
>>>> MongoDBUserStoreManager class after that when i try to add new secondary
>>>> user store in management console i got following error i attached the
>>>> screen shot of the error with this mail
>>>> i have pushed all the progress upto now to my github repository[1]
>>>> can you give me some tips to solve this issue?
>>>> any suggestion would be grateful
>>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Thu, May 19, 2016 at 11:47 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> sorry for the late reply ,as you advised i remove the scr reference
>>>>> and its corresponding methods from user store now it's works fine but i
>>>>> having another small issue if i wanted to run my mongodb user store as as
>>>>> my primary user store how would i do that?
>>>>> i added my user store configurations to user-mgt.xml file and comented
>>>>> the ldap userstore properties and i added MongoDBUserStore to
>>>>> tenant-mgt.xml as well but then i get error as datasource cannot be casted
>>>>> to MongoDB db source while deploying thats mean its still referring to
>>>>> Default Activator inside carbon core module how would i set it to my
>>>>> activator to reffer?
>>>>> any suggestion or help would be grateful
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Wed, May 18, 2016 at 10:29 PM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> Great progress so far !
>>>>>>
>>>>>> Since the reference is given to realm service in the bundle
>>>>>> activator, you should be facing the issue. Can you remove the service
>>>>>> reference from the bundle activator class.

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-05-26 Thread Asantha Thilina
Hi Tharindu,

sure i'll be look forward for that

Thanks,
Asantha

On Thu, May 26, 2016 at 9:37 PM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Glad to hear the progress... Sure I'll review over the weekend and provide
> feedback. By next week we'll have a hangout to discuss on how to move
> forward and the difficulties you have faced.  Keep the momentum going !
>
> Regards,
> TharinduE
>
> On Fri, May 27, 2016 at 12:17 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> i been able to fix the mongodb user store intitalizing error now it
>> working successfully it will be registered as a secondary user store in IS
>> and when going to add a new users and roles it will show the domain of
>> mongodb userstore still i having small issues in my json query formats for
>> mongodb i fixing those issues at the moment all the progress so far i made
>> updated to my github repository[1] and i recently updated my blog[2] as
>> well,can you review my code and give me a feedback?
>>
>> [1]https://github.com/asanthamax/mongodbuserstore
>> [2]http://asanthamax.blogspot.com/
>>
>> Thanks,
>> Asantha
>>
>> On Sun, May 22, 2016 at 3:38 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> I have override all the methods in AbstractUserStoreManager in my
>>> MongoDBUserStoreManager class after that when i try to add new secondary
>>> user store in management console i got following error i attached the
>>> screen shot of the error with this mail
>>> i have pushed all the progress upto now to my github repository[1]
>>> can you give me some tips to solve this issue?
>>> any suggestion would be grateful
>>> [1] https://github.com/asanthamax/mongodbuserstore
>>> Thanks,
>>> Asantha
>>>
>>> On Thu, May 19, 2016 at 11:47 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> sorry for the late reply ,as you advised i remove the scr reference and
>>>> its corresponding methods from user store now it's works fine but i having
>>>> another small issue if i wanted to run my mongodb user store as as my
>>>> primary user store how would i do that?
>>>> i added my user store configurations to user-mgt.xml file and comented
>>>> the ldap userstore properties and i added MongoDBUserStore to
>>>> tenant-mgt.xml as well but then i get error as datasource cannot be casted
>>>> to MongoDB db source while deploying thats mean its still referring to
>>>> Default Activator inside carbon core module how would i set it to my
>>>> activator to reffer?
>>>> any suggestion or help would be grateful
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Wed, May 18, 2016 at 10:29 PM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> Hi Asantha,
>>>>>
>>>>> Great progress so far !
>>>>>
>>>>> Since the reference is given to realm service in the bundle activator,
>>>>> you should be facing the issue. Can you remove the service reference from
>>>>> the bundle activator class. (You can delete the following from the class).
>>>>>
>>>>> * @scr.reference name="user.realmservice.default"
>>>>>  * interface="org.wso2.carbon.user.core.service.RealmService"
>>>>> cardinality="1..1"
>>>>>  * policy="dynamic" bind="setRealmService"
>>>>>  * unbind="unsetRealmService"
>>>>>
>>>>> Also delete the following methods where realm service is used.
>>>>>
>>>>> getRealmService()
>>>>> setRealmService(RealmService rlmService)
>>>>> unsetRealmService(RealmService rlmService)
>>>>>
>>>>> After that can you try if the userstore manager is working as
>>>>> expected. If you face any issues, please get back.
>>>>>
>>>>> Thank you,
>>>>> TharinduE
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sun, May 15, 2016 at 7:48 PM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-05-26 Thread Asantha Thilina
Hi Tharindu,

i been able to fix the mongodb user store intitalizing error now it working
successfully it will be registered as a secondary user store in IS and when
going to add a new users and roles it will show the domain of mongodb
userstore still i having small issues in my json query formats for mongodb
i fixing those issues at the moment all the progress so far i made updated
to my github repository[1] and i recently updated my blog[2] as well,can
you review my code and give me a feedback?

[1]https://github.com/asanthamax/mongodbuserstore
[2]http://asanthamax.blogspot.com/

Thanks,
Asantha

On Sun, May 22, 2016 at 3:38 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> I have override all the methods in AbstractUserStoreManager in my
> MongoDBUserStoreManager class after that when i try to add new secondary
> user store in management console i got following error i attached the
> screen shot of the error with this mail
> i have pushed all the progress upto now to my github repository[1]
> can you give me some tips to solve this issue?
> any suggestion would be grateful
> [1] https://github.com/asanthamax/mongodbuserstore
> Thanks,
> Asantha
>
> On Thu, May 19, 2016 at 11:47 PM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> sorry for the late reply ,as you advised i remove the scr reference and
>> its corresponding methods from user store now it's works fine but i having
>> another small issue if i wanted to run my mongodb user store as as my
>> primary user store how would i do that?
>> i added my user store configurations to user-mgt.xml file and comented
>> the ldap userstore properties and i added MongoDBUserStore to
>> tenant-mgt.xml as well but then i get error as datasource cannot be casted
>> to MongoDB db source while deploying thats mean its still referring to
>> Default Activator inside carbon core module how would i set it to my
>> activator to reffer?
>> any suggestion or help would be grateful
>> Thanks,
>> Asantha
>>
>> On Wed, May 18, 2016 at 10:29 PM, Tharindu Edirisinghe <
>> tharin...@wso2.com> wrote:
>>
>>> Hi Asantha,
>>>
>>> Great progress so far !
>>>
>>> Since the reference is given to realm service in the bundle activator,
>>> you should be facing the issue. Can you remove the service reference from
>>> the bundle activator class. (You can delete the following from the class).
>>>
>>> * @scr.reference name="user.realmservice.default"
>>>  * interface="org.wso2.carbon.user.core.service.RealmService"
>>> cardinality="1..1"
>>>  * policy="dynamic" bind="setRealmService"
>>>  * unbind="unsetRealmService"
>>>
>>> Also delete the following methods where realm service is used.
>>>
>>> getRealmService()
>>> setRealmService(RealmService rlmService)
>>> unsetRealmService(RealmService rlmService)
>>>
>>> After that can you try if the userstore manager is working as expected.
>>> If you face any issues, please get back.
>>>
>>> Thank you,
>>> TharinduE
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sun, May 15, 2016 at 7:48 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> I found the issue after debugging into my code ,my service bundle is
>>>> not get activated because i referring into mongodb-driver which is not osgi
>>>> comaptible and i just found another library in here[1] and it is worked for
>>>> me ,fixed project i pushed into my github repository [2].
>>>> i found out that *DefaultRealmService* which is used in Bundle
>>>> Activator of JDBCUserstoreManager cannot be used for MongoDB since it used
>>>> *java.sql.DataSource*.
>>>> Is their having any DataSource class like that for MongoDB? or would i
>>>> have to create a different logic to implement that scenario in MongoDB?
>>>> waiting for your suggestion
>>>>
>>>> [1].
>>>> http://central.maven.org/maven2/org/mongodb/mongo-java-driver/3.2.2/
>>>> [2]. https://github.com/asanthamax/mongodbuserstore
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Sat, May 14, 2016 at 10:53 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> i faced following issue while i developing ,
>>>>&

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-05-19 Thread Asantha Thilina
Hi Tharindu,

sorry for the late reply ,as you advised i remove the scr reference and its
corresponding methods from user store now it's works fine but i having
another small issue if i wanted to run my mongodb user store as as my
primary user store how would i do that?
i added my user store configurations to user-mgt.xml file and comented the
ldap userstore properties and i added MongoDBUserStore to tenant-mgt.xml as
well but then i get error as datasource cannot be casted to MongoDB db
source while deploying thats mean its still referring to Default Activator
inside carbon core module how would i set it to my activator to reffer?
any suggestion or help would be grateful
Thanks,
Asantha

On Wed, May 18, 2016 at 10:29 PM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Great progress so far !
>
> Since the reference is given to realm service in the bundle activator, you
> should be facing the issue. Can you remove the service reference from the
> bundle activator class. (You can delete the following from the class).
>
> * @scr.reference name="user.realmservice.default"
>  * interface="org.wso2.carbon.user.core.service.RealmService"
> cardinality="1..1"
>  * policy="dynamic" bind="setRealmService"
>  * unbind="unsetRealmService"
>
> Also delete the following methods where realm service is used.
>
> getRealmService()
> setRealmService(RealmService rlmService)
> unsetRealmService(RealmService rlmService)
>
> After that can you try if the userstore manager is working as expected. If
> you face any issues, please get back.
>
> Thank you,
> TharinduE
>
>
>
>
>
>
> On Sun, May 15, 2016 at 7:48 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> I found the issue after debugging into my code ,my service bundle is not
>> get activated because i referring into mongodb-driver which is not osgi
>> comaptible and i just found another library in here[1] and it is worked for
>> me ,fixed project i pushed into my github repository [2].
>> i found out that *DefaultRealmService* which is used in Bundle Activator
>> of JDBCUserstoreManager cannot be used for MongoDB since it used
>> *java.sql.DataSource*.
>> Is their having any DataSource class like that for MongoDB? or would i
>> have to create a different logic to implement that scenario in MongoDB?
>> waiting for your suggestion
>>
>> [1]. http://central.maven.org/maven2/org/mongodb/mongo-java-driver/3.2.2/
>> [2]. https://github.com/asanthamax/mongodbuserstore
>> Thanks,
>> Asantha
>>
>> On Sat, May 14, 2016 at 10:53 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> i faced following issue while i developing ,
>>> after adding my new json query support i didn't able to see My
>>> MongoDBUserStore in dropdown in create user store option.
>>> for json related activites i used an external json dependency from
>>> here[1] and i added it jar to lib folder in IS as well,i have enabled
>>> remote debugging and inspect my code and there i found in my 
>>> *MongoDBUserStoreDSComponent
>>> *class *activate *method triggered but execute 1st line of code only.
>>> it will not registered the service but in my osgi console window when i
>>> run *ss mongo* command i get monodb.userstore bundle and mongodb java
>>> driver bundle are activated successfully i attached my console output and
>>> identity server output for your consideration as well
>>> any suggestion would be grateful
>>>
>>> [1]. http://mvnrepository.com/artifact/org.json/json/20160212
>>> my github repository
>>>
>>> https://github.com/asanthamax/mongodbuserstore/tree/master/mongodb.userstoremanager
>>> Thanks,
>>> Asantha
>>>
>>>
>>> On Thu, May 12, 2016 at 2:01 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> since mongodb driver not having prepared statement support earlier i
>>>> developed a logic to support prepared statement but i realized that it has
>>>> a limitation such as parameters has to be pass as same order it exists in
>>>> prepared statement then as you suggested to use key value relationship
>>>> instead of order during our hangout conversation i created a new logic same
>>>> to prepared statement in sql and it will work according to key value
>>>> relationship and i created standard query format for mongodb with json to
>>>> support prepared statemen

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-05-15 Thread Asantha Thilina
Hi Tharindu,

I found the issue after debugging into my code ,my service bundle is not
get activated because i referring into mongodb-driver which is not osgi
comaptible and i just found another library in here[1] and it is worked for
me ,fixed project i pushed into my github repository [2].
i found out that *DefaultRealmService* which is used in Bundle Activator of
JDBCUserstoreManager cannot be used for MongoDB since it used
*java.sql.DataSource*.
Is their having any DataSource class like that for MongoDB? or would i have
to create a different logic to implement that scenario in MongoDB?
waiting for your suggestion

[1]. http://central.maven.org/maven2/org/mongodb/mongo-java-driver/3.2.2/
[2]. https://github.com/asanthamax/mongodbuserstore
Thanks,
Asantha

On Sat, May 14, 2016 at 10:53 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> i faced following issue while i developing ,
> after adding my new json query support i didn't able to see My
> MongoDBUserStore in dropdown in create user store option.
> for json related activites i used an external json dependency from here[1]
> and i added it jar to lib folder in IS as well,i have enabled remote
> debugging and inspect my code and there i found in my 
> *MongoDBUserStoreDSComponent
> *class *activate *method triggered but execute 1st line of code only. it
> will not registered the service but in my osgi console window when i run *ss
> mongo* command i get monodb.userstore bundle and mongodb java driver
> bundle are activated successfully i attached my console output and identity
> server output for your consideration as well
> any suggestion would be grateful
>
> [1]. http://mvnrepository.com/artifact/org.json/json/20160212
> my github repository
>
> https://github.com/asanthamax/mongodbuserstore/tree/master/mongodb.userstoremanager
> Thanks,
> Asantha
>
>
> On Thu, May 12, 2016 at 2:01 AM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> since mongodb driver not having prepared statement support earlier i
>> developed a logic to support prepared statement but i realized that it has
>> a limitation such as parameters has to be pass as same order it exists in
>> prepared statement then as you suggested to use key value relationship
>> instead of order during our hangout conversation i created a new logic same
>> to prepared statement in sql and it will work according to key value
>> relationship and i created standard query format for mongodb with json to
>> support prepared statements and i rewrite the JDBCRealmConstants class with
>> those supporting json queries instead of sql queries
>>
>> All of my prepared statement methods contain in MongoDBPreparedStatement
>> interface and its implementation in MongoDBPreparedStatementImpl class
>>
>> All the changes i have pushed to my repo in here[1]
>>
>> security of this prepared statements has to be improve
>>
>> I'll be grateful if you can provide me some suggestions to improve it and
>> also another small issue i having is can i write a DataSource for MongoDB
>> as in java.sql.DataSource ?
>>
>> [1]
>> https://github.com/asanthamax/mongodbuserstore/tree/master/mongodb.userstoremanager
>>
>> Thanks,
>> Asantha
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-05-11 Thread Asantha Thilina
Hi Tharindu,

since mongodb driver not having prepared statement support earlier i
developed a logic to support prepared statement but i realized that it has
a limitation such as parameters has to be pass as same order it exists in
prepared statement then as you suggested to use key value relationship
instead of order during our hangout conversation i created a new logic same
to prepared statement in sql and it will work according to key value
relationship and i created standard query format for mongodb with json to
support prepared statements and i rewrite the JDBCRealmConstants class with
those supporting json queries instead of sql queries

All of my prepared statement methods contain in MongoDBPreparedStatement
interface and its implementation in MongoDBPreparedStatementImpl class

All the changes i have pushed to my repo in here[1]

security of this prepared statements has to be improve

I'll be grateful if you can provide me some suggestions to improve it and
also another small issue i having is can i write a DataSource for MongoDB
as in java.sql.DataSource ?

[1]
https://github.com/asanthamax/mongodbuserstore/tree/master/mongodb.userstoremanager

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


Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-05-07 Thread Asantha Thilina
Hi Tharindu,

As you advice i updated my blog[1] with all my works i have done so far ,
looking for your feedback

[1]. http://asanthamax.blogspot.com/

Thanks,
Asantha

On Fri, May 6, 2016 at 11:21 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> i have done some coding in my user store ,does mongodb contain a
> parameterized query mechanism such as prepared statements in sql?
> i search through mongodb documentation and i didn't find any related idea
> therefore i create my own class to do that job and i tested it with sample
> data for all 4 CRUDS and it worked. my logic will be as follows,
> first it will read the query as json input,
> then as same as in prepared statement when function calling has to pass
> what are the parameters as example i can define the template query as
> follows
> {'UM_USER_NAME': '?'}
> then has to convert this query to DBObject and parse to find function with
> parameters and respective collection name as follows
> find("UM_USER",object,"test");
> so that then in find function i mapping the corresponding parameter to
> suitable query position but the problem in how would i  sanitize the user
> input parameters to avoid security threats as in prepared statements? do i
> have to write regular expressions or is their any other way of doing? is
> sql injections kind of thing possible with mongodb if so how would i escape
> it?
> i would be thankful if you can review my code and give me a feedback
> whether my logic is correct and also is there are a way to write schema in
> mongodb like in sql?
>
> all my works up to this is added to my repository in here [1]
>
> [1]. https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Thu, May 5, 2016 at 11:24 AM, Asantha Thilina  > wrote:
>
>> -- Forwarded message --
>> From: Asantha Thilina 
>> Date: Mon, May 2, 2016 at 12:46 AM
>> Subject: Re: [Dev] GSOC 2016 - Project 21 : Review Proposal
>> To: Tharindu Edirisinghe , dev@wso2.org
>>
>>
>> Hi Tharindu,
>>
>> as you adviced i started creating corresponding mongodb database
>> structure for IS user store i done the user store database script and share
>> it in here [1] and identity script still writing  before further progress
>> on identity script i would be very thankful if i can get your comment about
>> my user store script whether it correct or need to improve while i mapping
>> mysql script to mongodb i faced on following issue
>> MongoDB is not supporting to multikey hashed indexes according to their
>> documentation in here [2] therefore i create one hash index per document
>> which are need hash indexes
>> for mapping foreign keys i used the manual way than db refs or embeded
>> documents to avoid data repition for that i refer their documentation in
>> here [3]
>> For storage engine i used the default engine called wired tiger according
>> to their documentation in here [4]
>> waiting for your feedback about my works,
>> [1].
>> https://github.com/asanthamax/mongodbuserstore/blob/master/identity_server.js
>> [2]. https://docs.mongodb.org/v3.0/tutorial/create-a-hashed-index/
>> [3]. https://docs.mongodb.org/manual/reference/database-references/
>> [4]. https://docs.mongodb.org/manual/core/wiredtiger/
>>
>> Thanks,
>> Asantha
>>
>> On Sat, Apr 30, 2016 at 4:02 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> thanks for the guidance sure i'll do that way and update you as i
>>> progress
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Fri, Apr 29, 2016 at 10:00 PM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> Great work ! Yes, you will have to manually create the database with
>>>> the tables. Then once you create the userstore in Identity Server and point
>>>> to the particular database, it should work properly.
>>>>
>>>> Then what you can do here is converting the relational db schema to
>>>> collections in mongodb. You can refer the IS_5.1.0_HOME/dbscripts/ location
>>>> where all the database scripts are stored. You need to look at only 2 sql
>>>> files for the moment. They are the IS_5.1.0_HOME/dbscripts/mysql.sql and
>>>> IS_5.1.0_HOME/dbscripts/identity/mysql.sql . Referring these two files, you
>>>> can write 2 sql files for mongodb.
>>>>
>>>> Later we can do some modifications to automatically create the database
>>>> (i

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-05-06 Thread Asantha Thilina
Hi Tharindu,

i have done some coding in my user store ,does mongodb contain a
parameterized query mechanism such as prepared statements in sql?
i search through mongodb documentation and i didn't find any related idea
therefore i create my own class to do that job and i tested it with sample
data for all 4 CRUDS and it worked. my logic will be as follows,
first it will read the query as json input,
then as same as in prepared statement when function calling has to pass
what are the parameters as example i can define the template query as
follows
{'UM_USER_NAME': '?'}
then has to convert this query to DBObject and parse to find function with
parameters and respective collection name as follows
find("UM_USER",object,"test");
so that then in find function i mapping the corresponding parameter to
suitable query position but the problem in how would i  sanitize the user
input parameters to avoid security threats as in prepared statements? do i
have to write regular expressions or is their any other way of doing? is
sql injections kind of thing possible with mongodb if so how would i escape
it?
i would be thankful if you can review my code and give me a feedback
whether my logic is correct and also is there are a way to write schema in
mongodb like in sql?

all my works up to this is added to my repository in here [1]

[1]. https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Thu, May 5, 2016 at 11:24 AM, Asantha Thilina 
wrote:

> ------ Forwarded message --
> From: Asantha Thilina 
> Date: Mon, May 2, 2016 at 12:46 AM
> Subject: Re: [Dev] GSOC 2016 - Project 21 : Review Proposal
> To: Tharindu Edirisinghe , dev@wso2.org
>
>
> Hi Tharindu,
>
> as you adviced i started creating corresponding mongodb database structure
> for IS user store i done the user store database script and share it in
> here [1] and identity script still writing  before further progress on
> identity script i would be very thankful if i can get your comment about my
> user store script whether it correct or need to improve while i mapping
> mysql script to mongodb i faced on following issue
> MongoDB is not supporting to multikey hashed indexes according to their
> documentation in here [2] therefore i create one hash index per document
> which are need hash indexes
> for mapping foreign keys i used the manual way than db refs or embeded
> documents to avoid data repition for that i refer their documentation in
> here [3]
> For storage engine i used the default engine called wired tiger according
> to their documentation in here [4]
> waiting for your feedback about my works,
> [1].
> https://github.com/asanthamax/mongodbuserstore/blob/master/identity_server.js
> [2]. https://docs.mongodb.org/v3.0/tutorial/create-a-hashed-index/
> [3]. https://docs.mongodb.org/manual/reference/database-references/
> [4]. https://docs.mongodb.org/manual/core/wiredtiger/
>
> Thanks,
> Asantha
>
> On Sat, Apr 30, 2016 at 4:02 AM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> thanks for the guidance sure i'll do that way and update you as i progress
>>
>> Thanks,
>> Asantha
>>
>> On Fri, Apr 29, 2016 at 10:00 PM, Tharindu Edirisinghe <
>> tharin...@wso2.com> wrote:
>>
>>> Hi Asantha,
>>>
>>> Great work ! Yes, you will have to manually create the database with the
>>> tables. Then once you create the userstore in Identity Server and point to
>>> the particular database, it should work properly.
>>>
>>> Then what you can do here is converting the relational db schema to
>>> collections in mongodb. You can refer the IS_5.1.0_HOME/dbscripts/ location
>>> where all the database scripts are stored. You need to look at only 2 sql
>>> files for the moment. They are the IS_5.1.0_HOME/dbscripts/mysql.sql and
>>> IS_5.1.0_HOME/dbscripts/identity/mysql.sql . Referring these two files, you
>>> can write 2 sql files for mongodb.
>>>
>>> Later we can do some modifications to automatically create the database
>>> (if the mongodb userstore is selected to be the PRIMARY userstore)
>>> referring the schema in above 2 files.
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Fri, Apr 29, 2016 at 10:22 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> Thanks for the instructions As you described in mail i followed all the
>>>> steps and i  have been now able to see my new user store service is started
>>>> and shown in IS as you suggested i have changed the username and password
>>>> fields to mandatory and update

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-05-02 Thread Asantha Thilina
Hi Tharindu,

i have done some coding in my new mongodb user store and i shared my code
here [1]  i will be developing it by referring JDBC user store in here[2]
,is their any wso2 coding conventions i should follow ?can you review my
code and give me a feedback is their any improvement to be done

[1] https://github.com/asanthamax/mongodbuserstore
[2]
https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0/core/org.wso2.carbon.user.core/3.2.3/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreManager.java

Thanks,
Asantha

On Mon, May 2, 2016 at 12:46 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> as you adviced i started creating corresponding mongodb database structure
> for IS user store i done the user store database script and share it in
> here [1] and identity script still writing  before further progress on
> identity script i would be very thankful if i can get your comment about my
> user store script whether it correct or need to improve while i mapping
> mysql script to mongodb i faced on following issue
> MongoDB is not supporting to multikey hashed indexes according to their
> documentation in here [2] therefore i create one hash index per document
> which are need hash indexes
> for mapping foreign keys i used the manual way than db refs or embeded
> documents to avoid data repition for that i refer their documentation in
> here [3]
> For storage engine i used the default engine called wired tiger according
> to their documentation in here [4]
> waiting for your feedback about my works,
> [1].
> https://github.com/asanthamax/mongodbuserstore/blob/master/identity_server.js
> [2]. https://docs.mongodb.org/v3.0/tutorial/create-a-hashed-index/
> [3]. https://docs.mongodb.org/manual/reference/database-references/
> [4]. https://docs.mongodb.org/manual/core/wiredtiger/
>
> Thanks,
> Asantha
>
> On Sat, Apr 30, 2016 at 4:02 AM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> thanks for the guidance sure i'll do that way and update you as i progress
>>
>> Thanks,
>> Asantha
>>
>> On Fri, Apr 29, 2016 at 10:00 PM, Tharindu Edirisinghe <
>> tharin...@wso2.com> wrote:
>>
>>> Hi Asantha,
>>>
>>> Great work ! Yes, you will have to manually create the database with the
>>> tables. Then once you create the userstore in Identity Server and point to
>>> the particular database, it should work properly.
>>>
>>> Then what you can do here is converting the relational db schema to
>>> collections in mongodb. You can refer the IS_5.1.0_HOME/dbscripts/ location
>>> where all the database scripts are stored. You need to look at only 2 sql
>>> files for the moment. They are the IS_5.1.0_HOME/dbscripts/mysql.sql and
>>> IS_5.1.0_HOME/dbscripts/identity/mysql.sql . Referring these two files, you
>>> can write 2 sql files for mongodb.
>>>
>>> Later we can do some modifications to automatically create the database
>>> (if the mongodb userstore is selected to be the PRIMARY userstore)
>>> referring the schema in above 2 files.
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Fri, Apr 29, 2016 at 10:22 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> Thanks for the instructions As you described in mail i followed all the
>>>> steps and i  have been now able to see my new user store service is started
>>>> and shown in IS as you suggested i have changed the username and password
>>>> fields to mandatory and updated code i shared in here [1] after adding new
>>>> mongodb user store under new user store section in IS it gives the success
>>>> message but nothing showing at the user store list in admin console here i
>>>> attached screenshots of my IS console ,would i need to create database with
>>>> all the necessary tables to add new user store?
>>>>
>>>> [1]. https://github.com/asanthamax/mongodbuserstore
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Thu, Apr 28, 2016 at 7:48 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> Thanks for the reply ,i will follow the instructions and update you
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Fri, Apr 29, 2016 at 8:10 AM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>&

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-05-02 Thread Asantha Thilina
Hi Tharindu,

as you adviced i started creating corresponding mongodb database structure
for IS user store i done the user store database script and share it in
here [1] and identity script still writing  before further progress on
identity script i would be very thankful if i can get your comment about my
user store script whether it correct or need to improve while i mapping
mysql script to mongodb i faced on following issue
MongoDB is not supporting to multikey hashed indexes according to their
documentation in here [2] therefore i create one hash index per document
which are need hash indexes
for mapping foreign keys i used the manual way than db refs or embeded
documents to avoid data repition for that i refer their documentation in
here [3]
For storage engine i used the default engine called wired tiger according
to their documentation in here [4]
waiting for your feedback about my works,
[1].
https://github.com/asanthamax/mongodbuserstore/blob/master/identity_server.js
[2]. https://docs.mongodb.org/v3.0/tutorial/create-a-hashed-index/
[3]. https://docs.mongodb.org/manual/reference/database-references/
[4]. https://docs.mongodb.org/manual/core/wiredtiger/

Thanks,
Asantha

On Sat, Apr 30, 2016 at 4:02 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> thanks for the guidance sure i'll do that way and update you as i progress
>
> Thanks,
> Asantha
>
> On Fri, Apr 29, 2016 at 10:00 PM, Tharindu Edirisinghe  > wrote:
>
>> Hi Asantha,
>>
>> Great work ! Yes, you will have to manually create the database with the
>> tables. Then once you create the userstore in Identity Server and point to
>> the particular database, it should work properly.
>>
>> Then what you can do here is converting the relational db schema to
>> collections in mongodb. You can refer the IS_5.1.0_HOME/dbscripts/ location
>> where all the database scripts are stored. You need to look at only 2 sql
>> files for the moment. They are the IS_5.1.0_HOME/dbscripts/mysql.sql and
>> IS_5.1.0_HOME/dbscripts/identity/mysql.sql . Referring these two files, you
>> can write 2 sql files for mongodb.
>>
>> Later we can do some modifications to automatically create the database
>> (if the mongodb userstore is selected to be the PRIMARY userstore)
>> referring the schema in above 2 files.
>>
>> Regards,
>> TharinduE
>>
>> On Fri, Apr 29, 2016 at 10:22 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> Thanks for the instructions As you described in mail i followed all the
>>> steps and i  have been now able to see my new user store service is started
>>> and shown in IS as you suggested i have changed the username and password
>>> fields to mandatory and updated code i shared in here [1] after adding new
>>> mongodb user store under new user store section in IS it gives the success
>>> message but nothing showing at the user store list in admin console here i
>>> attached screenshots of my IS console ,would i need to create database with
>>> all the necessary tables to add new user store?
>>>
>>> [1]. https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Thu, Apr 28, 2016 at 7:48 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> Thanks for the reply ,i will follow the instructions and update you
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Fri, Apr 29, 2016 at 8:10 AM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> Hi Asantha,
>>>>>
>>>>> Can you try out the following steps in a fresh (new) Identity Server
>>>>> 5.1.0 pack.
>>>>>
>>>>> 1. Put the MongoDB JDBC driver in repository/components/lib directory.
>>>>> 2. Build the mongodb userstore manager and copy the built jar file to
>>>>> repository/components/dropins directory.
>>>>> 3. Connect to the mongodb shell and create an admin user.
>>>>>
>>>>> *> use admin*
>>>>> switched to db admin
>>>>> *> db.createUser({user:"admin", pwd:"admin123", roles:[{role:"root",
>>>>> db:"admin"}]})*
>>>>> Successfully added user: {
>>>>> "user" : "admin",
>>>>> "roles" : [
>>>>> {
>>>>> "role" : "root",
>>&g

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-04-30 Thread Asantha Thilina
Hi Tharindu,

thanks for the guidance sure i'll do that way and update you as i progress

Thanks,
Asantha

On Fri, Apr 29, 2016 at 10:00 PM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Great work ! Yes, you will have to manually create the database with the
> tables. Then once you create the userstore in Identity Server and point to
> the particular database, it should work properly.
>
> Then what you can do here is converting the relational db schema to
> collections in mongodb. You can refer the IS_5.1.0_HOME/dbscripts/ location
> where all the database scripts are stored. You need to look at only 2 sql
> files for the moment. They are the IS_5.1.0_HOME/dbscripts/mysql.sql and
> IS_5.1.0_HOME/dbscripts/identity/mysql.sql . Referring these two files, you
> can write 2 sql files for mongodb.
>
> Later we can do some modifications to automatically create the database
> (if the mongodb userstore is selected to be the PRIMARY userstore)
> referring the schema in above 2 files.
>
> Regards,
> TharinduE
>
> On Fri, Apr 29, 2016 at 10:22 PM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> Thanks for the instructions As you described in mail i followed all the
>> steps and i  have been now able to see my new user store service is started
>> and shown in IS as you suggested i have changed the username and password
>> fields to mandatory and updated code i shared in here [1] after adding new
>> mongodb user store under new user store section in IS it gives the success
>> message but nothing showing at the user store list in admin console here i
>> attached screenshots of my IS console ,would i need to create database with
>> all the necessary tables to add new user store?
>>
>> [1]. https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Thu, Apr 28, 2016 at 7:48 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> Thanks for the reply ,i will follow the instructions and update you
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Fri, Apr 29, 2016 at 8:10 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> Can you try out the following steps in a fresh (new) Identity Server
>>>> 5.1.0 pack.
>>>>
>>>> 1. Put the MongoDB JDBC driver in repository/components/lib directory.
>>>> 2. Build the mongodb userstore manager and copy the built jar file to
>>>> repository/components/dropins directory.
>>>> 3. Connect to the mongodb shell and create an admin user.
>>>>
>>>> *> use admin*
>>>> switched to db admin
>>>> *> db.createUser({user:"admin", pwd:"admin123", roles:[{role:"root",
>>>> db:"admin"}]})*
>>>> Successfully added user: {
>>>> "user" : "admin",
>>>> "roles" : [
>>>> {
>>>> "role" : "root",
>>>> "db" : "admin"
>>>> }
>>>> ]
>>>> }
>>>>
>>>> 4. Start the Identity Server with OSGI console (sh wso2server.sh
>>>> -DOsgiConsole)
>>>>
>>>> 5. Once the server is up, check if the userstore manager bundle and the
>>>> jdbc driver are active.
>>>>
>>>> osgi> *ss mongo*
>>>>
>>>> idState   Bundle
>>>> 86ACTIVE  mongodb.userstoremanager_0.0.1.SNAPSHOT
>>>> 87ACTIVE  mongodb_driver_3.2.2_1.0.0
>>>>
>>>> 6. Access the Management Console and add a new usrestore.
>>>>
>>>> 5. In the available userstore managers dropdown, you should be able to
>>>> see following.
>>>>
>>>>
>>>>
>>>>
>>>> *org.wso2.carbon.mongodb.userstoremanager.MongoDBUserStoreManager*
>>>> 6. Add the userstore manager providing the connection details. You can
>>>> use the credentials of the user you created previously on mongodb.
>>>>
>>>> I noticed that the connection username password are defined as optional
>>>> configuration. You will have to move this to the mandatory configuration
>>>> section as the server url and port.
>>>>
>>>> If you can get above to working.. then let's see what are the
>>>> improvements

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-04-28 Thread Asantha Thilina
Hi Tharindu,

Thanks for the reply ,i will follow the instructions and update you

Thanks,
Asantha

On Fri, Apr 29, 2016 at 8:10 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Can you try out the following steps in a fresh (new) Identity Server 5.1.0
> pack.
>
> 1. Put the MongoDB JDBC driver in repository/components/lib directory.
> 2. Build the mongodb userstore manager and copy the built jar file to
> repository/components/dropins directory.
> 3. Connect to the mongodb shell and create an admin user.
>
> *> use admin*
> switched to db admin
> *> db.createUser({user:"admin", pwd:"admin123", roles:[{role:"root",
> db:"admin"}]})*
> Successfully added user: {
> "user" : "admin",
> "roles" : [
> {
> "role" : "root",
> "db" : "admin"
> }
> ]
> }
>
> 4. Start the Identity Server with OSGI console (sh wso2server.sh
> -DOsgiConsole)
>
> 5. Once the server is up, check if the userstore manager bundle and the
> jdbc driver are active.
>
> osgi> *ss mongo*
>
> idState   Bundle
> 86ACTIVE  mongodb.userstoremanager_0.0.1.SNAPSHOT
> 87ACTIVE  mongodb_driver_3.2.2_1.0.0
>
> 6. Access the Management Console and add a new usrestore.
>
> 5. In the available userstore managers dropdown, you should be able to see
> following.
>
>
>
>
> *org.wso2.carbon.mongodb.userstoremanager.MongoDBUserStoreManager*
> 6. Add the userstore manager providing the connection details. You can use
> the credentials of the user you created previously on mongodb.
>
> I noticed that the connection username password are defined as optional
> configuration. You will have to move this to the mandatory configuration
> section as the server url and port.
>
> If you can get above to working.. then let's see what are the improvements
> we can do further.
>
> Thanks,
> TharinduE
>
>
>
> On Fri, Apr 29, 2016 at 12:07 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> i started developing on mongodb user store manager while i developing i
>> faced the following problem when i tested my user store bundle in IS it not
>> start the service earlier it worked ,in earlier i used the mysql db as main
>> datasource of IS and now i changed it to default(h2 db)
>> after that my osgi bundle service is not starting i shared my code in
>> here.[1] and i am using IS 5.1.0  and eclipse mars for development
>> environment
>> any comment or idea would be grateful
>>
>> [1]. https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Apr 25, 2016 at 8:14 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> that's fine i'll be ok with that time
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Tue, Apr 26, 2016 at 8:36 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> How about 4.30 p.m today ?
>>>>
>>>> Regards,
>>>> TharinduE
>>>>
>>>> On Mon, Apr 25, 2016 at 8:19 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> thanks for the wishes and i am really interesting and looking forward
>>>>> to continue on project,yeah sure we will  have a hangout and i would be
>>>>> grateful if we can arrange the meeting on evening round about 3.00 P.M. or
>>>>> any time later that ,is it ok
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Mon, Apr 25, 2016 at 6:57 AM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> Congratulations on getting selected for GSOC 2016 ! Hope you are
>>>>>> doing well. Shall we have a google hangout tomorrow 26/04/2016 to discuss
>>>>>> how to proceed with the project ? What time would suit you ?
>>>>>>
>>>>>> Regards,
>>>>>> TharinduE
>>>>>>
>>>>>> On Thu, Mar 24, 2016 at 9:18 AM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi all,
>&

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-04-28 Thread Asantha Thilina
Hi Tharindu,

i started developing on mongodb user store manager while i developing i
faced the following problem when i tested my user store bundle in IS it not
start the service earlier it worked ,in earlier i used the mysql db as main
datasource of IS and now i changed it to default(h2 db)
after that my osgi bundle service is not starting i shared my code in
here.[1] and i am using IS 5.1.0  and eclipse mars for development
environment
any comment or idea would be grateful

[1]. https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Mon, Apr 25, 2016 at 8:14 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> that's fine i'll be ok with that time
>
> Thanks,
> Asantha
>
> On Tue, Apr 26, 2016 at 8:36 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> How about 4.30 p.m today ?
>>
>> Regards,
>> TharinduE
>>
>> On Mon, Apr 25, 2016 at 8:19 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> thanks for the wishes and i am really interesting and looking forward to
>>> continue on project,yeah sure we will  have a hangout and i would be
>>> grateful if we can arrange the meeting on evening round about 3.00 P.M. or
>>> any time later that ,is it ok
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Apr 25, 2016 at 6:57 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> Congratulations on getting selected for GSOC 2016 ! Hope you are doing
>>>> well. Shall we have a google hangout tomorrow 26/04/2016 to discuss how to
>>>> proceed with the project ? What time would suit you ?
>>>>
>>>> Regards,
>>>> TharinduE
>>>>
>>>> On Thu, Mar 24, 2016 at 9:18 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> Thanks a lot for your valuable comments and feedback i done all the
>>>>> changes as you suggested in feedback and submitted the final document to
>>>>> google ,modified google doc is in here[1]
>>>>>
>>>>> [1]
>>>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Wed, Mar 23, 2016 at 8:08 PM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> thanks for the comment, sure i  do the modifications as suggested,
>>>>>>
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>> On Wed, Mar 23, 2016 at 6:54 PM, Tharindu Edirisinghe <
>>>>>> tharin...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Asantha,
>>>>>>>
>>>>>>> I've done some minor modifications to the doc. For the methods
>>>>>>> exposed through the API, can you add them in a table to improve the
>>>>>>> readability. (Chamila has suggested this already as a comment in the 
>>>>>>> doc).
>>>>>>> You can have some columns for Method Name, Return type, parameters,
>>>>>>> description.
>>>>>>>
>>>>>>> Once you do this, submit it to google because the deadline is
>>>>>>> tomorrow for proposal submission.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> TharinduE
>>>>>>>
>>>>>>> On Wed, Mar 23, 2016 at 9:08 PM, Asantha Thilina <
>>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Tharindu,
>>>>>>>>
>>>>>>>> I modified my project proposal[1] in google doc, as you suggested i
>>>>>>>> added function list which i am going to exposed to apis after modified 
>>>>>>>> the
>>>>>>>> content  i shared the doc to summer of code.
>>>>>>>> waiting for your feedback
>>>>>>>> [1]
>>>>>>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>>>>>>
>>>>>>>> Thanks,
>>>>&

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-04-25 Thread Asantha Thilina
Hi Tharindu,

that's fine i'll be ok with that time

Thanks,
Asantha

On Tue, Apr 26, 2016 at 8:36 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> How about 4.30 p.m today ?
>
> Regards,
> TharinduE
>
> On Mon, Apr 25, 2016 at 8:19 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> thanks for the wishes and i am really interesting and looking forward to
>> continue on project,yeah sure we will  have a hangout and i would be
>> grateful if we can arrange the meeting on evening round about 3.00 P.M. or
>> any time later that ,is it ok
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Apr 25, 2016 at 6:57 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Asantha,
>>>
>>> Congratulations on getting selected for GSOC 2016 ! Hope you are doing
>>> well. Shall we have a google hangout tomorrow 26/04/2016 to discuss how to
>>> proceed with the project ? What time would suit you ?
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Thu, Mar 24, 2016 at 9:18 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> Thanks a lot for your valuable comments and feedback i done all the
>>>> changes as you suggested in feedback and submitted the final document to
>>>> google ,modified google doc is in here[1]
>>>>
>>>> [1]
>>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Wed, Mar 23, 2016 at 8:08 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> thanks for the comment, sure i  do the modifications as suggested,
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Wed, Mar 23, 2016 at 6:54 PM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> I've done some minor modifications to the doc. For the methods
>>>>>> exposed through the API, can you add them in a table to improve the
>>>>>> readability. (Chamila has suggested this already as a comment in the 
>>>>>> doc).
>>>>>> You can have some columns for Method Name, Return type, parameters,
>>>>>> description.
>>>>>>
>>>>>> Once you do this, submit it to google because the deadline is
>>>>>> tomorrow for proposal submission.
>>>>>>
>>>>>> Thanks,
>>>>>> TharinduE
>>>>>>
>>>>>> On Wed, Mar 23, 2016 at 9:08 PM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Tharindu,
>>>>>>>
>>>>>>> I modified my project proposal[1] in google doc, as you suggested i
>>>>>>> added function list which i am going to exposed to apis after modified 
>>>>>>> the
>>>>>>> content  i shared the doc to summer of code.
>>>>>>> waiting for your feedback
>>>>>>> [1]
>>>>>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Asantha
>>>>>>>
>>>>>>> On Tue, Mar 22, 2016 at 8:16 PM, Asantha Thilina <
>>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Tharindu,
>>>>>>>>
>>>>>>>> thanks a lot for the feedbacks, sure i will modify the content of
>>>>>>>> the proposal as suggested  and submit to google within today
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Asantha
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Mar 23, 2016 at 7:45 AM, Tharindu Edirisinghe <
>>>>>>>> tharin...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Asantha,
>>>>>>>>>
>>>>>>>>> I've added the latest proposal you've sent to google docs in [1].
>>

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-04-25 Thread Asantha Thilina
Hi Tharindu,

thanks for the wishes and i am really interesting and looking forward to
continue on project,yeah sure we will  have a hangout and i would be
grateful if we can arrange the meeting on evening round about 3.00 P.M. or
any time later that ,is it ok

Thanks,
Asantha

On Mon, Apr 25, 2016 at 6:57 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Congratulations on getting selected for GSOC 2016 ! Hope you are doing
> well. Shall we have a google hangout tomorrow 26/04/2016 to discuss how to
> proceed with the project ? What time would suit you ?
>
> Regards,
> TharinduE
>
> On Thu, Mar 24, 2016 at 9:18 AM, Asantha Thilina  > wrote:
>
>> Hi all,
>>
>> Thanks a lot for your valuable comments and feedback i done all the
>> changes as you suggested in feedback and submitted the final document to
>> google ,modified google doc is in here[1]
>>
>> [1]
>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>
>> Thanks,
>> Asantha
>>
>> On Wed, Mar 23, 2016 at 8:08 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> thanks for the comment, sure i  do the modifications as suggested,
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Wed, Mar 23, 2016 at 6:54 PM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> I've done some minor modifications to the doc. For the methods exposed
>>>> through the API, can you add them in a table to improve the readability.
>>>> (Chamila has suggested this already as a comment in the doc). You can have
>>>> some columns for Method Name, Return type, parameters, description.
>>>>
>>>> Once you do this, submit it to google because the deadline is tomorrow
>>>> for proposal submission.
>>>>
>>>> Thanks,
>>>> TharinduE
>>>>
>>>> On Wed, Mar 23, 2016 at 9:08 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> I modified my project proposal[1] in google doc, as you suggested i
>>>>> added function list which i am going to exposed to apis after modified the
>>>>> content  i shared the doc to summer of code.
>>>>> waiting for your feedback
>>>>> [1]
>>>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Tue, Mar 22, 2016 at 8:16 PM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Tharindu,
>>>>>>
>>>>>> thanks a lot for the feedbacks, sure i will modify the content of the
>>>>>> proposal as suggested  and submit to google within today
>>>>>>
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>>
>>>>>> On Wed, Mar 23, 2016 at 7:45 AM, Tharindu Edirisinghe <
>>>>>> tharin...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Asantha,
>>>>>>>
>>>>>>> I've added the latest proposal you've sent to google docs in [1]. As
>>>>>>> Chamila suggested, can you list down the methods that you expose in the 
>>>>>>> API
>>>>>>> (public methods in the userstore manager) in the proposal so that it is
>>>>>>> easy to understand the functionality of the userstore manager. Also it 
>>>>>>> is
>>>>>>> better to submit the proposal to google now and update later if any
>>>>>>> modification is needed.
>>>>>>>
>>>>>>> [1]
>>>>>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>>>>>
>>>>>>> Thanks,
>>>>>>> TharinduE
>>>>>>>
>>>>>>> On Mon, Mar 21, 2016 at 9:58 PM, Asantha Thilina <
>>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Chamila,
>>>>>>>>
>>>>>>>> Thanks a lot for the feedback, sure i will update my proposal as
>>>&g

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-23 Thread Asantha Thilina
Hi all,

Thanks a lot for your valuable comments and feedback i done all the changes
as you suggested in feedback and submitted the final document to google
,modified google doc is in here[1]

[1]
https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing

Thanks,
Asantha

On Wed, Mar 23, 2016 at 8:08 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> thanks for the comment, sure i  do the modifications as suggested,
>
> Thanks,
> Asantha
>
> On Wed, Mar 23, 2016 at 6:54 PM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> I've done some minor modifications to the doc. For the methods exposed
>> through the API, can you add them in a table to improve the readability.
>> (Chamila has suggested this already as a comment in the doc). You can have
>> some columns for Method Name, Return type, parameters, description.
>>
>> Once you do this, submit it to google because the deadline is tomorrow
>> for proposal submission.
>>
>> Thanks,
>> TharinduE
>>
>> On Wed, Mar 23, 2016 at 9:08 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> I modified my project proposal[1] in google doc, as you suggested i
>>> added function list which i am going to exposed to apis after modified the
>>> content  i shared the doc to summer of code.
>>> waiting for your feedback
>>> [1]
>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Tue, Mar 22, 2016 at 8:16 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> thanks a lot for the feedbacks, sure i will modify the content of the
>>>> proposal as suggested  and submit to google within today
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>>
>>>> On Wed, Mar 23, 2016 at 7:45 AM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> Hi Asantha,
>>>>>
>>>>> I've added the latest proposal you've sent to google docs in [1]. As
>>>>> Chamila suggested, can you list down the methods that you expose in the 
>>>>> API
>>>>> (public methods in the userstore manager) in the proposal so that it is
>>>>> easy to understand the functionality of the userstore manager. Also it is
>>>>> better to submit the proposal to google now and update later if any
>>>>> modification is needed.
>>>>>
>>>>> [1]
>>>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>>>
>>>>> Thanks,
>>>>> TharinduE
>>>>>
>>>>> On Mon, Mar 21, 2016 at 9:58 PM, Asantha Thilina <
>>>>> asanthathil...@gmail.com> wrote:
>>>>>
>>>>>> Hi Chamila,
>>>>>>
>>>>>> Thanks a lot for the feedback, sure i will update my proposal as you
>>>>>> suggested
>>>>>>
>>>>>> Thanks,
>>>>>> Asantha
>>>>>>
>>>>>> On Mon, Mar 21, 2016 at 9:18 AM, Chamila Wijayarathna <
>>>>>> cham...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Asantha,
>>>>>>>
>>>>>>> Looks good, please talk with Tharindu also before submitting the
>>>>>>> proposal. Even you submit your proposal, you can improve it until 25th.
>>>>>>>
>>>>>>> So if time permits, I would like to suggest you to add some details
>>>>>>> about what are the APIs and functions you are going to expose after
>>>>>>> developing this new user store manager, if you have already decided on
>>>>>>> them. Since you may have went through the codes of existing user store
>>>>>>> managers, you may already have an idea about what are the functions you
>>>>>>> need to exposed to outside. So if can add at least few functions you are
>>>>>>> going to expose with some details, it would make your proposal more
>>>>>>> attractive. Also I would like to suggest you to add link of github repo
>>>>>>> where you have started development. Also if you have written any blogs
>>>&

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-23 Thread Asantha Thilina
Hi Tharindu,

thanks for the comment, sure i  do the modifications as suggested,

Thanks,
Asantha

On Wed, Mar 23, 2016 at 6:54 PM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> I've done some minor modifications to the doc. For the methods exposed
> through the API, can you add them in a table to improve the readability.
> (Chamila has suggested this already as a comment in the doc). You can have
> some columns for Method Name, Return type, parameters, description.
>
> Once you do this, submit it to google because the deadline is tomorrow for
> proposal submission.
>
> Thanks,
> TharinduE
>
> On Wed, Mar 23, 2016 at 9:08 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> I modified my project proposal[1] in google doc, as you suggested i added
>> function list which i am going to exposed to apis after modified the
>> content  i shared the doc to summer of code.
>> waiting for your feedback
>> [1]
>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>
>> Thanks,
>> Asantha
>>
>> On Tue, Mar 22, 2016 at 8:16 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> thanks a lot for the feedbacks, sure i will modify the content of the
>>> proposal as suggested  and submit to google within today
>>>
>>> Thanks,
>>> Asantha
>>>
>>>
>>> On Wed, Mar 23, 2016 at 7:45 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> I've added the latest proposal you've sent to google docs in [1]. As
>>>> Chamila suggested, can you list down the methods that you expose in the API
>>>> (public methods in the userstore manager) in the proposal so that it is
>>>> easy to understand the functionality of the userstore manager. Also it is
>>>> better to submit the proposal to google now and update later if any
>>>> modification is needed.
>>>>
>>>> [1]
>>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>>
>>>> Thanks,
>>>> TharinduE
>>>>
>>>> On Mon, Mar 21, 2016 at 9:58 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Chamila,
>>>>>
>>>>> Thanks a lot for the feedback, sure i will update my proposal as you
>>>>> suggested
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Mon, Mar 21, 2016 at 9:18 AM, Chamila Wijayarathna <
>>>>> cham...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> Looks good, please talk with Tharindu also before submitting the
>>>>>> proposal. Even you submit your proposal, you can improve it until 25th.
>>>>>>
>>>>>> So if time permits, I would like to suggest you to add some details
>>>>>> about what are the APIs and functions you are going to expose after
>>>>>> developing this new user store manager, if you have already decided on
>>>>>> them. Since you may have went through the codes of existing user store
>>>>>> managers, you may already have an idea about what are the functions you
>>>>>> need to exposed to outside. So if can add at least few functions you are
>>>>>> going to expose with some details, it would make your proposal more
>>>>>> attractive. Also I would like to suggest you to add link of github repo
>>>>>> where you have started development. Also if you have written any blogs
>>>>>> related to the project, mongoDB, etc. please mention them also in your
>>>>>> proposal.
>>>>>>
>>>>>> Also I see some formatting issues and some dates has got repeated in
>>>>>> your timeline, hope you will correct the when submitting proposal at GSoC
>>>>>> site.
>>>>>>
>>>>>> Cheers!
>>>>>>
>>>>>> On Mon, Mar 21, 2016 at 9:18 PM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Chamila,
>>>>>>>
>>>>>>> Thanks a lot for your valuable feedback as you suggested i corrected
>>>>>&g

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-23 Thread Asantha Thilina
Hi Tharindu,

I modified my project proposal[1] in google doc, as you suggested i added
function list which i am going to exposed to apis after modified the
content  i shared the doc to summer of code.
waiting for your feedback
[1]
https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing

Thanks,
Asantha

On Tue, Mar 22, 2016 at 8:16 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> thanks a lot for the feedbacks, sure i will modify the content of the
> proposal as suggested  and submit to google within today
>
> Thanks,
> Asantha
>
>
> On Wed, Mar 23, 2016 at 7:45 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> I've added the latest proposal you've sent to google docs in [1]. As
>> Chamila suggested, can you list down the methods that you expose in the API
>> (public methods in the userstore manager) in the proposal so that it is
>> easy to understand the functionality of the userstore manager. Also it is
>> better to submit the proposal to google now and update later if any
>> modification is needed.
>>
>> [1]
>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>
>> Thanks,
>> TharinduE
>>
>> On Mon, Mar 21, 2016 at 9:58 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Chamila,
>>>
>>> Thanks a lot for the feedback, sure i will update my proposal as you
>>> suggested
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Mar 21, 2016 at 9:18 AM, Chamila Wijayarathna 
>>> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> Looks good, please talk with Tharindu also before submitting the
>>>> proposal. Even you submit your proposal, you can improve it until 25th.
>>>>
>>>> So if time permits, I would like to suggest you to add some details
>>>> about what are the APIs and functions you are going to expose after
>>>> developing this new user store manager, if you have already decided on
>>>> them. Since you may have went through the codes of existing user store
>>>> managers, you may already have an idea about what are the functions you
>>>> need to exposed to outside. So if can add at least few functions you are
>>>> going to expose with some details, it would make your proposal more
>>>> attractive. Also I would like to suggest you to add link of github repo
>>>> where you have started development. Also if you have written any blogs
>>>> related to the project, mongoDB, etc. please mention them also in your
>>>> proposal.
>>>>
>>>> Also I see some formatting issues and some dates has got repeated in
>>>> your timeline, hope you will correct the when submitting proposal at GSoC
>>>> site.
>>>>
>>>> Cheers!
>>>>
>>>> On Mon, Mar 21, 2016 at 9:18 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Chamila,
>>>>>
>>>>> Thanks a lot for your valuable feedback as you suggested i corrected
>>>>> my project proposal and here i attached my finalize project proposal
>>>>>
>>>>> expecting your feedback
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Mon, Mar 21, 2016 at 5:44 AM, Chamila Wijayarathna <
>>>>> cham...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asantha,
>>>>>>
>>>>>> Thanks for sending your proposal. It seems to be in good shape, but I
>>>>>> would like to suggest few more improvements.
>>>>>>
>>>>>>1.  You have mentioned you are implementing Custom User Store
>>>>>>Manager by extending JDBCUserStoreManager. But actually you have to 
>>>>>> extend
>>>>>>AbstractUserStoreManager. I think you have done this correctly in the 
>>>>>> code
>>>>>>you sent previously. Please correct this.
>>>>>>2. I think by custom user store manager, you have meant mongoDB
>>>>>>user store manager you are planning to implement, in most places. Its
>>>>>>better to mention specifically as MongoDBUserStoreManager than saying
>>>>>>custom user store manager.
>>>>>>3. You have mentioned about "Implement a proper encryption

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-22 Thread Asantha Thilina
Hi Tharindu,

thanks a lot for the feedbacks, sure i will modify the content of the
proposal as suggested  and submit to google within today

Thanks,
Asantha


On Wed, Mar 23, 2016 at 7:45 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> I've added the latest proposal you've sent to google docs in [1]. As
> Chamila suggested, can you list down the methods that you expose in the API
> (public methods in the userstore manager) in the proposal so that it is
> easy to understand the functionality of the userstore manager. Also it is
> better to submit the proposal to google now and update later if any
> modification is needed.
>
> [1]
> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>
> Thanks,
> TharinduE
>
> On Mon, Mar 21, 2016 at 9:58 PM, Asantha Thilina  > wrote:
>
>> Hi Chamila,
>>
>> Thanks a lot for the feedback, sure i will update my proposal as you
>> suggested
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Mar 21, 2016 at 9:18 AM, Chamila Wijayarathna 
>> wrote:
>>
>>> Hi Asantha,
>>>
>>> Looks good, please talk with Tharindu also before submitting the
>>> proposal. Even you submit your proposal, you can improve it until 25th.
>>>
>>> So if time permits, I would like to suggest you to add some details
>>> about what are the APIs and functions you are going to expose after
>>> developing this new user store manager, if you have already decided on
>>> them. Since you may have went through the codes of existing user store
>>> managers, you may already have an idea about what are the functions you
>>> need to exposed to outside. So if can add at least few functions you are
>>> going to expose with some details, it would make your proposal more
>>> attractive. Also I would like to suggest you to add link of github repo
>>> where you have started development. Also if you have written any blogs
>>> related to the project, mongoDB, etc. please mention them also in your
>>> proposal.
>>>
>>> Also I see some formatting issues and some dates has got repeated in
>>> your timeline, hope you will correct the when submitting proposal at GSoC
>>> site.
>>>
>>> Cheers!
>>>
>>> On Mon, Mar 21, 2016 at 9:18 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi Chamila,
>>>>
>>>> Thanks a lot for your valuable feedback as you suggested i corrected my
>>>> project proposal and here i attached my finalize project proposal
>>>>
>>>> expecting your feedback
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>> On Mon, Mar 21, 2016 at 5:44 AM, Chamila Wijayarathna >>> > wrote:
>>>>
>>>>> Hi Asantha,
>>>>>
>>>>> Thanks for sending your proposal. It seems to be in good shape, but I
>>>>> would like to suggest few more improvements.
>>>>>
>>>>>1.  You have mentioned you are implementing Custom User Store
>>>>>Manager by extending JDBCUserStoreManager. But actually you have to 
>>>>> extend
>>>>>AbstractUserStoreManager. I think you have done this correctly in the 
>>>>> code
>>>>>you sent previously. Please correct this.
>>>>>2. I think by custom user store manager, you have meant mongoDB
>>>>>user store manager you are planning to implement, in most places. Its
>>>>>better to mention specifically as MongoDBUserStoreManager than saying
>>>>>custom user store manager.
>>>>>3. You have mentioned about "Implement a proper encryption
>>>>>mechanism to overcome the security hauls in custom User store 
>>>>> Manager.".
>>>>>Can you be more specific on what are the security holes you are talking
>>>>>about. AFAIK encryption mechanisms we are currently using are quite ok 
>>>>> and
>>>>>if there are no any strong reasons, I suggest you to follow the 
>>>>> existing
>>>>>mechanisms.
>>>>>4. It would be great if you can allocate 1-2 weeks for doing a
>>>>>small research on how other NoSQL databases such as CouchDB, Neo4j can 
>>>>> be
>>>>>used to implement an user store in IS. By looking at your time line, I
>>>>>think it would be possible to allocat

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-21 Thread Asantha Thilina
Hi Chamila,

Thanks a lot for the feedback, sure i will update my proposal as you
suggested

Thanks,
Asantha

On Mon, Mar 21, 2016 at 9:18 AM, Chamila Wijayarathna 
wrote:

> Hi Asantha,
>
> Looks good, please talk with Tharindu also before submitting the proposal.
> Even you submit your proposal, you can improve it until 25th.
>
> So if time permits, I would like to suggest you to add some details about
> what are the APIs and functions you are going to expose after developing
> this new user store manager, if you have already decided on them. Since you
> may have went through the codes of existing user store managers, you may
> already have an idea about what are the functions you need to exposed to
> outside. So if can add at least few functions you are going to expose with
> some details, it would make your proposal more attractive. Also I would
> like to suggest you to add link of github repo where you have started
> development. Also if you have written any blogs related to the project,
> mongoDB, etc. please mention them also in your proposal.
>
> Also I see some formatting issues and some dates has got repeated in your
> timeline, hope you will correct the when submitting proposal at GSoC site.
>
> Cheers!
>
> On Mon, Mar 21, 2016 at 9:18 PM, Asantha Thilina  > wrote:
>
>> Hi Chamila,
>>
>> Thanks a lot for your valuable feedback as you suggested i corrected my
>> project proposal and here i attached my finalize project proposal
>>
>> expecting your feedback
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Mar 21, 2016 at 5:44 AM, Chamila Wijayarathna 
>> wrote:
>>
>>> Hi Asantha,
>>>
>>> Thanks for sending your proposal. It seems to be in good shape, but I
>>> would like to suggest few more improvements.
>>>
>>>1.  You have mentioned you are implementing Custom User Store
>>>Manager by extending JDBCUserStoreManager. But actually you have to 
>>> extend
>>>AbstractUserStoreManager. I think you have done this correctly in the 
>>> code
>>>you sent previously. Please correct this.
>>>2. I think by custom user store manager, you have meant mongoDB user
>>>store manager you are planning to implement, in most places. Its better 
>>> to
>>>mention specifically as MongoDBUserStoreManager than saying custom user
>>>store manager.
>>>3. You have mentioned about "Implement a proper encryption mechanism
>>>to overcome the security hauls in custom User store Manager.".  Can you 
>>> be
>>>more specific on what are the security holes you are talking about. AFAIK
>>>encryption mechanisms we are currently using are quite ok and if there 
>>> are
>>>no any strong reasons, I suggest you to follow the existing mechanisms.
>>>4. It would be great if you can allocate 1-2 weeks for doing a small
>>>research on how other NoSQL databases such as CouchDB, Neo4j can be used 
>>> to
>>>implement an user store in IS. By looking at your time line, I think it
>>>would be possible to allocate some time for this in the 2nd half of the
>>>programme. We can do this if time permits, but its better to mention it 
>>> in
>>>your proposal as optional (I believe it would make the project more
>>>complete).
>>>
>>> Looking forward to see your proposal.
>>>
>>> Good Luck!
>>>
>>> On Mon, Mar 21, 2016 at 5:15 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> here  i attached my project proposal for GSOC 2016 Project 21  for your
>>>> kind consideration,
>>>> I kindly request your feedback and thought on it.
>>>>
>>>> Thanks,
>>>> Asantha
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Chamila Dilshan Wijayarathna,*
>>> Software Engineer
>>> Mobile:(+94)788193620
>>> WSO2 Inc., http://wso2.com/
>>>
>>
>>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-21 Thread Asantha Thilina
Hi Chamila,

Thanks a lot for your valuable feedback as you suggested i corrected my
project proposal and here i attached my finalize project proposal

expecting your feedback

Thanks,
Asantha

On Mon, Mar 21, 2016 at 5:44 AM, Chamila Wijayarathna 
wrote:

> Hi Asantha,
>
> Thanks for sending your proposal. It seems to be in good shape, but I
> would like to suggest few more improvements.
>
>1.  You have mentioned you are implementing Custom User Store Manager
>by extending JDBCUserStoreManager. But actually you have to extend
>AbstractUserStoreManager. I think you have done this correctly in the code
>you sent previously. Please correct this.
>2. I think by custom user store manager, you have meant mongoDB user
>store manager you are planning to implement, in most places. Its better to
>mention specifically as MongoDBUserStoreManager than saying custom user
>store manager.
>3. You have mentioned about "Implement a proper encryption mechanism
>to overcome the security hauls in custom User store Manager.".  Can you be
>more specific on what are the security holes you are talking about. AFAIK
>encryption mechanisms we are currently using are quite ok and if there are
>no any strong reasons, I suggest you to follow the existing mechanisms.
>4. It would be great if you can allocate 1-2 weeks for doing a small
>research on how other NoSQL databases such as CouchDB, Neo4j can be used to
>implement an user store in IS. By looking at your time line, I think it
>would be possible to allocate some time for this in the 2nd half of the
>programme. We can do this if time permits, but its better to mention it in
>your proposal as optional (I believe it would make the project more
>complete).
>
> Looking forward to see your proposal.
>
> Good Luck!
>
> On Mon, Mar 21, 2016 at 5:15 PM, Asantha Thilina  > wrote:
>
>> Hi All,
>>
>> here  i attached my project proposal for GSOC 2016 Project 21  for your
>> kind consideration,
>> I kindly request your feedback and thought on it.
>>
>> Thanks,
>> Asantha
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>


Proposal (2) (1).docx
Description: MS-Word 2007 document
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Gsoc Project proposal 21

2016-03-15 Thread Asantha Thilina
-- Forwarded message --
From: Asantha Thilina 
Date: Tue, Mar 15, 2016 at 1:46 PM
Subject: Re: Gsoc Project proposal 21
To: Tharindu Edirisinghe 


Hi Tharindu,

Thanks for the reply look forward for you feedback meanwhile i created a
new blog and posted what i have learn so far in their [1].I will keep
progressing through the project and update my status in blog as well as to
you

[1]. http://asanthamax.blogspot.com/

Thanks,
Regards,
Asantha

On Mon, Mar 14, 2016 at 6:33 PM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Great work ! We will check the source code and provide you feedback soon.
> Regarding implementing the interface rather than extending the
> JDBCUserStoreManager class... yes here we can and have to implement all the
> methods from the scratch because we won't be be able to reuse any code used
> in RDBMSs. As you progress through the project, write your experiences in a
> blog too...
>
> Thanks,
> TharinduE
>
> On Tue, Mar 15, 2016 at 2:48 AM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> with the help of your guidance and reference links you sent i been able
>> to create partially completed working sample of user store for mongodb ,i
>> created the userstore by implementing the UserStoreManager interface is it
>> a better way to implement the user store? here i shared my work in [1].hope
>> for your feedback to continue the user store development,
>> Now i'm in the stage of developing the database architecture for mongodb
>> and i will soon update all my works done so far in my blog
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Regards,
>> Asantha
>>
>> On Sat, Mar 12, 2016 at 1:28 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Asantha,
>>>
>>> Glad to see you are progressing through the project.
>>>
>>> Since you are trying this in Identity Server 5.1.0, you need to update
>>> the dependencies with correct versions as below.
>>>
>>> 
>>> org.wso2.carbon
>>> org.wso2.carbon.user.core
>>> 4.4.3
>>> 
>>> 
>>> org.wso2.carbon
>>> org.wso2.carbon.user.api
>>> 4.4.3
>>> 
>>>
>>>
>>> Also for the OSGI issue, I used the maven-scr-plugin 1.7.2 version and
>>> could get the OSGI bundle created properly.
>>>
>>> org.apache.felix
>>> maven-scr-plugin
>>> 1.7.2
>>>
>>>
>>> I have sent a pull request [1] with these changes to your GIT repo.
>>>
>>> When you extend the AbstractUserStoreManager class, you must implement
>>> the following two methods.
>>>
>>>
>>> public Properties getDefaultUserStoreProperties() {
>>> return null;
>>> }
>>>
>>> public Map getProperties(Tenant tenant) throws
>>> UserStoreException {
>>> return null;
>>> }
>>>
>>> If you have not implemented those two methods, then in the management
>>> console UI, userstores dropdown, your userstore manager will not appear.
>>>
>>> You can find a working sample in [2]. However it is done for IS 5.0.0
>>> version, but you can modify the dependencies in POM file as above and get
>>> it working on IS 5.1.0.
>>>
>>> Once you get it to working, you can refactor the code and add your own
>>> implementation for the MongoDB userstore manager so that you won't face any
>>> OSGI related issues.
>>>
>>> [1] https://github.com/asanthamax/mongodbuserstoremanager/pull/1/files
>>>
>>> [2]
>>> https://svn.wso2.org/repos/wso2/people/tharindue/customuserstore/mystore/
>>>
>>> Thanks,
>>> TharinduE
>>>
>>> On Sat, Mar 12, 2016 at 1:33 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Hi tharindu,
>>>>
>>>> currently i'm in the development stage of mongodb user store manager
>>>> and i implemented some modules to communicate with mongodb and i shared
>>>> what i have done so far in github[1]. can you review my code and give me a
>>>> feedback whether my approach is correct or has to be improve,  I had some
>>>> questions while i developing user store,how can i make carbon core module?
>>>>  and also how can i package osgi bundles inside jar folder i added
>>>> packaging as bundle in pom file but it's still not adding it to jar file
>>>> any idea or suggestion would be grateful.
>>>>
>>>> [1].  https://github.com/asanthamax/mongodbuserstoremanager
>>>>
>>>> thanks,
>>>> Best Regards,
>>>> Asantha
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Tharindu Edirisinghe
>>> Software Engineer | WSO2 Inc
>>> Platform Security Team
>>> Blog : tharindue.blogspot.com
>>> mobile : +94 775181586
>>>
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Gsoc Project proposal 21

2016-03-14 Thread Asantha Thilina
Hi Tharindu,

with the help of your guidance and reference links you sent i been able to
create partially completed working sample of user store for mongodb ,i
created the userstore by implementing the UserStoreManager interface is it
a better way to implement the user store? here i shared my work in [1].hope
for your feedback to continue the user store development,
Now i'm in the stage of developing the database architecture for mongodb
and i will soon update all my works done so far in my blog

[1] https://github.com/asanthamax/mongodbuserstore

Thanks,
Regards,
Asantha

On Sat, Mar 12, 2016 at 1:28 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Glad to see you are progressing through the project.
>
> Since you are trying this in Identity Server 5.1.0, you need to update the
> dependencies with correct versions as below.
>
> 
> org.wso2.carbon
> org.wso2.carbon.user.core
> 4.4.3
> 
> 
> org.wso2.carbon
> org.wso2.carbon.user.api
> 4.4.3
> 
>
>
> Also for the OSGI issue, I used the maven-scr-plugin 1.7.2 version and
> could get the OSGI bundle created properly.
>
> org.apache.felix
> maven-scr-plugin
> 1.7.2
>
>
> I have sent a pull request [1] with these changes to your GIT repo.
>
> When you extend the AbstractUserStoreManager class, you must implement the
> following two methods.
>
>
> public Properties getDefaultUserStoreProperties() {
> return null;
> }
>
> public Map getProperties(Tenant tenant) throws
> UserStoreException {
> return null;
> }
>
> If you have not implemented those two methods, then in the management
> console UI, userstores dropdown, your userstore manager will not appear.
>
> You can find a working sample in [2]. However it is done for IS 5.0.0
> version, but you can modify the dependencies in POM file as above and get
> it working on IS 5.1.0.
>
> Once you get it to working, you can refactor the code and add your own
> implementation for the MongoDB userstore manager so that you won't face any
> OSGI related issues.
>
> [1] https://github.com/asanthamax/mongodbuserstoremanager/pull/1/files
>
> [2]
> https://svn.wso2.org/repos/wso2/people/tharindue/customuserstore/mystore/
>
> Thanks,
> TharinduE
>
> On Sat, Mar 12, 2016 at 1:33 AM, Asantha Thilina  > wrote:
>
>> Hi tharindu,
>>
>> currently i'm in the development stage of mongodb user store manager and
>> i implemented some modules to communicate with mongodb and i shared what i
>> have done so far in github[1]. can you review my code and give me a
>> feedback whether my approach is correct or has to be improve,  I had some
>> questions while i developing user store,how can i make carbon core module?
>>  and also how can i package osgi bundles inside jar folder i added
>> packaging as bundle in pom file but it's still not adding it to jar file
>> any idea or suggestion would be grateful.
>>
>> [1].  https://github.com/asanthamax/mongodbuserstoremanager
>>
>> thanks,
>> Best Regards,
>> Asantha
>>
>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Gsoc Project proposal 21

2016-03-11 Thread Asantha Thilina
Hi tharindu,

currently i'm in the development stage of mongodb user store manager and i
implemented some modules to communicate with mongodb and i shared what i
have done so far in github[1]. can you review my code and give me a
feedback whether my approach is correct or has to be improve,  I had some
questions while i developing user store,how can i make carbon core module?
 and also how can i package osgi bundles inside jar folder i added
packaging as bundle in pom file but it's still not adding it to jar file
any idea or suggestion would be grateful.

[1].  https://github.com/asanthamax/mongodbuserstoremanager

thanks,
Best Regards,
Asantha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding GSOC 2016 project 21

2016-03-09 Thread Asantha Thilina
hi tharindu,
 i'm working on implementation of user store for mongodb i have a small
problem regarding build the user store project packaging as jar  instead of
 bundle when i build the jar file and add to lib folder in identity server
it's not throwing any error but it not showing my user store when i going
to create new user store in admin panel ,when i view the structure of jar
it not contain osgi service component package i think that because it is
packaging as jar  i'm using eclipse mars as development environment any
suggestion would be grateful.

thanks,
Regards,
Asantha

On Tue, Mar 8, 2016 at 7:09 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Great ! We'll review the work and share our feedback soon. Meanwhile you
> can start a blog and write your experiences too. Since you have got the
> understanding of userstore managers, now you can directly jump into the
> implementation of the project as well.
>
> Regards,
> TharinduE
>
> On Sun, Mar 6, 2016 at 1:07 AM, Asantha Thilina 
> wrote:
>
>> Hi,
>>
>> I done the practice tasks 1 - 5 and i shared  what i have been done so
>> far  in github, below i put the link to my repository
>> waiting for feedback...
>>
>> https://github.com/asanthamax/customuserstoremanager
>>
>> Thanks,
>> Regards,
>> Asantha
>>
>>
>>
>> On Mon, Feb 29, 2016 at 7:41 PM, Tharindu Edirisinghe > > wrote:
>>
>>> [Adding Dev mailing list]
>>>
>>> Hi Asantha,
>>>
>>> In order to make you familiar with this project with regard to WSO2
>>> platform, we would like you to complete the following task which would
>>> provide an understanding on how the userstore managers are used in WSO2
>>> products.
>>>
>>>
>>> 1. Refer [1] and understand how a userstore manager can be written and
>>> used in a product like WSO2 Identity Server [2].
>>>
>>> 2. Refer [3] and understand more about Claims and Claim Management.
>>>
>>> 3. Referring [1], extend the
>>> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager class and write your
>>> own JDBC userstore manaager. (MySQL is preferred).
>>>
>>> 4. Introduce a new claim called lastPasswordResetTimestamp which tracks
>>> the timestamp of each user's last successful password reset attempt. (in
>>> WSO2 Identity Server). For this you can refer [1] and override the
>>> doUpdateCredential, doUpdateCredentialByAdmin methods in the custom
>>> userstore manager you wrote in previous step. Inside these methods after
>>> successful password reset, set the current timestemp as a user claim. For
>>> this you can refer [4].
>>>
>>> 5. In the JDBC userstore manager you have written in above step,
>>> override the doAuthenticate method. Inside the method, after performing
>>> authentication, compare the timestamp of the last time the user updated the
>>> credentials with current timestamp. If it is greater than 60 days (you can
>>> hardcode this value for the moment) return an exception with a message
>>> saying the user has to reset the password as it is expired. (For the users
>>> where the claim for password reset timestamp is empty, you can let the
>>> users successfully authenticate)
>>>
>>> When performing above tasks, if you face any difficulty, you can ask for
>>> help from this mail thread. You can use GitHub to share your source code
>>> and after completing a deliverable from above steps, you can share your
>>> progress with us.
>>>
>>> If you need further clarifications, please get back.
>>>
>>> [1]
>>> https://docs.wso2.com/display/IS510/Writing+a+Custom+User+Store+Manager
>>> [2] http://wso2.com/products/identity-server/
>>> [3]
>>> http://tharindue.blogspot.com/2015/08/claim-management-operations-in-wso2.html
>>> [4]
>>> http://tharindue.blogspot.com/2015/12/tracking-last-successful-login-attempt.html
>>> [5]
>>> http://tharindue.blogspot.com/2015/05/a-workaround-for-renaming-username-of.html
>>>
>>> Regards,
>>> TharinduE
>>>
>>>
>>>
>>> On Mon, Feb 29, 2016 at 9:35 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
>>>> Dear Sir,
>>>> first of all thanks a lot for the quick response and references ,I
>>>> studying the references that you sent  and that are really helpful for me
>>>> to understand the procedure and prepare a proposal. i am really interest in
>>>> take part of this project in GSoC.
>>>> I understand the circumstances and willing to take part it in
>>>> individually.
>>>> As you mentioned I would be really grateful on behalf of my team if you
>>>> can support us to find a project which will suits for our research also and
>>>> it would be really helpful if we can extend this same project for suits to
>>>> our research as well.
>>>> Thanks,
>>>> Regards,
>>>> Asantha
>>>>
>>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding GSOC 2016 project 21

2016-03-05 Thread Asantha Thilina
Hi,

I done the practice tasks 1 - 5 and i shared  what i have been done so
far  in github, below i put the link to my repository
waiting for feedback...

https://github.com/asanthamax/customuserstoremanager

Thanks,
Regards,
Asantha



On Mon, Feb 29, 2016 at 7:41 PM, Tharindu Edirisinghe 
wrote:

> [Adding Dev mailing list]
>
> Hi Asantha,
>
> In order to make you familiar with this project with regard to WSO2
> platform, we would like you to complete the following task which would
> provide an understanding on how the userstore managers are used in WSO2
> products.
>
>
> 1. Refer [1] and understand how a userstore manager can be written and
> used in a product like WSO2 Identity Server [2].
>
> 2. Refer [3] and understand more about Claims and Claim Management.
>
> 3. Referring [1], extend the
> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager class and write your
> own JDBC userstore manaager. (MySQL is preferred).
>
> 4. Introduce a new claim called lastPasswordResetTimestamp which tracks
> the timestamp of each user's last successful password reset attempt. (in
> WSO2 Identity Server). For this you can refer [1] and override the
> doUpdateCredential, doUpdateCredentialByAdmin methods in the custom
> userstore manager you wrote in previous step. Inside these methods after
> successful password reset, set the current timestemp as a user claim. For
> this you can refer [4].
>
> 5. In the JDBC userstore manager you have written in above step, override
> the doAuthenticate method. Inside the method, after performing
> authentication, compare the timestamp of the last time the user updated the
> credentials with current timestamp. If it is greater than 60 days (you can
> hardcode this value for the moment) return an exception with a message
> saying the user has to reset the password as it is expired. (For the users
> where the claim for password reset timestamp is empty, you can let the
> users successfully authenticate)
>
> When performing above tasks, if you face any difficulty, you can ask for
> help from this mail thread. You can use GitHub to share your source code
> and after completing a deliverable from above steps, you can share your
> progress with us.
>
> If you need further clarifications, please get back.
>
> [1]
> https://docs.wso2.com/display/IS510/Writing+a+Custom+User+Store+Manager
> [2] http://wso2.com/products/identity-server/
> [3]
> http://tharindue.blogspot.com/2015/08/claim-management-operations-in-wso2.html
> [4]
> http://tharindue.blogspot.com/2015/12/tracking-last-successful-login-attempt.html
> [5]
> http://tharindue.blogspot.com/2015/05/a-workaround-for-renaming-username-of.html
>
> Regards,
> TharinduE
>
>
>
> On Mon, Feb 29, 2016 at 9:35 PM, Asantha Thilina  > wrote:
>
>> Dear Sir,
>> first of all thanks a lot for the quick response and references ,I
>> studying the references that you sent  and that are really helpful for me
>> to understand the procedure and prepare a proposal. i am really interest in
>> take part of this project in GSoC.
>> I understand the circumstances and willing to take part it in
>> individually.
>> As you mentioned I would be really grateful on behalf of my team if you
>> can support us to find a project which will suits for our research also and
>> it would be really helpful if we can extend this same project for suits to
>> our research as well.
>> Thanks,
>> Regards,
>> Asantha
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev