[Dev] [SP] Geocoordinate Function for Siddhi-execustion-geo extension

2018-11-11 Thread Gangani Ariyarathne
Hi all,

This is about the new function that I've implemented for
Siddhi-execution-geo extension. This new function of GeoCoordinate is
capable of retrieving longitude and latitude values of a location for a
given any IPV4 or IPV6 address. By this function, we can get the accurate
location data by an updated database. Moreover, users can extend the
"GeoCoordinateResolver" interface and do their own implementation as well.

The implemented function can be found here[2]. Please review and merge.

[1] https://github.com/wso2-extensions/siddhi-execution-geo/pull/49

Best regards,
-- 

*Gangani Chamika*

*Intern - Software Engineering*
*WSO2*

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


Re: [Dev] [Siddhi] "Over Query Limit" error in geocode(stream function) in Siddhi

2018-10-17 Thread Gangani Ariyarathne
I've obtained a billing account through Infra team. I've used the
constructor of the Geocoder which uses the client id and the client key.
But I'm not sure what the geocoder constructer expects for the client key.
I generated the client key by following the guide[1].  The changed code can
be found here [2].

[1]
https://developers.google.com/maps/documentation/geocoding/get-api-key#digital-signature-premium
[2]
https://github.com/GANGANI/Siddhi-geo/blob/master/src/main/java/org/wso2/extension/siddhi/execution/geo/GeocodeStreamFunctionProcessor.java

On Wed, Oct 17, 2018 at 9:40 PM Ramindu De Silva  wrote:

> [+] Anusha
>
> On Wed, Oct 17, 2018 at 9:38 PM Ramindu De Silva 
> wrote:
>
>> Hi Gagani,
>>
>> Did you go through the steps mentioned in created a billing account for
>> the cloud platform?
>> Could you please send the changed code? Did you do the code change to the
>> constructor of the Geocoder[2]?
>>
>> 1.
>> https://cloud.google.com/maps-platform/?__utma=102347093.1933502197.1539791031.1539792263.1539792263.1&__utmb=102347093.0.10.1539792263&__utmc=102347093&__utmx=-&__utmz=102347093.1539792263.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=132343310&_ga=2.9930102.252852657.1539791031-1933502197.1539791031#get-started
>> 2.
>> https://github.com/wso2-extensions/siddhi-execution-geo/blob/46408097bdf421e15765b339f7dba5d6fe5323b8/component/src/main/java/org/wso2/extension/siddhi/execution/geo/ReverseGeocodeStreamFunctionProcessor.java#L90
>>
>> Best regards,
>> Ramindu.
>>
>>
>> On Tue, Oct 16, 2018 at 1:40 PM Gangani Ariyarathne 
>> wrote:
>>
>>> Hi all,
>>>
>>> I've used geocode(stream function) of Geo-extension of Siddhi to find
>>> the latitude and longitude values by giving the location. That stream
>>> function doesn't work as expected and gives "OVER QUERY LIMIT" error after
>>> running my siddhi application a few times. I did a background search on
>>> this error and below are the results:
>>>
>>>- As I found Siddhi uses Google Map API for this and they use this
>>>without a developer's account.
>>>- This error normally happens due to exceeding the Google Maps
>>>Platform web services usage limits by sending too many requests per day,
>>>sending requests too fast, sending requests too fast for too long or
>>>otherwise abusing the web service [2]. But without these reasons also I'm
>>>receiving the same error message.
>>>- That Google's geocode provides another way to use that by
>>>configuring a paid developer's account for the Google Map API[3]. I tried
>>>that one also by fixing the siddhi function at the code level. But the
>>>error still remains the same.
>>>
>>> Below is the error that I encountered while executing the siddhi
>>> application which uses geocode function.
>>> [image: Screenshot from 2018-10-16 09-46-03.png]
>>>  I've posted a Git Issue[1] related to this error.
>>>
>>> Any help would be highly appreciated.
>>>
>>> [1] https://github.com/wso2-extensions/siddhi-execution-geo/issues/47
>>> [2]
>>> https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits
>>> [3]
>>> https://developers.google.com/maps/documentation/maps-static/get-api-key
>>>
>>> Best regards,
>>> --
>>>
>>> *Gangani Chamika*
>>>
>>> *Intern - Software Engineering*
>>> *WSO2*
>>> <https://wso2.com/signature>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>> --
>> *Ramindu De Silva*
>> Senior Software Engineer
>> WSO2 Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94 719678895
>>
>
>
> --
> *Ramindu De Silva*
> Senior Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94 719678895
>


-- 

*Gangani Chamika*

*Intern - Software Engineering*
*WSO2*
<https://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Siddhi] "Over Query Limit" error in geocode(stream function) in Siddhi

2018-10-16 Thread Gangani Ariyarathne
Hi all,

I've used geocode(stream function) of Geo-extension of Siddhi to find the
latitude and longitude values by giving the location. That stream function
doesn't work as expected and gives "OVER QUERY LIMIT" error after running
my siddhi application a few times. I did a background search on this error
and below are the results:

   - As I found Siddhi uses Google Map API for this and they use this
   without a developer's account.
   - This error normally happens due to exceeding the Google Maps Platform
   web services usage limits by sending too many requests per day, sending
   requests too fast, sending requests too fast for too long or otherwise
   abusing the web service [2]. But without these reasons also I'm receiving
   the same error message.
   - That Google's geocode provides another way to use that by configuring
   a paid developer's account for the Google Map API[3]. I tried that one also
   by fixing the siddhi function at the code level. But the error still
   remains the same.

Below is the error that I encountered while executing the siddhi
application which uses geocode function.
[image: Screenshot from 2018-10-16 09-46-03.png]
 I've posted a Git Issue[1] related to this error.

Any help would be highly appreciated.

[1] https://github.com/wso2-extensions/siddhi-execution-geo/issues/47
[2]
https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits
[3] https://developers.google.com/maps/documentation/maps-static/get-api-key

Best regards,
-- 

*Gangani Chamika*

*Intern - Software Engineering*
*WSO2*

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


Re: [Dev] [VOTE] Release of WSO2 Identity Server Analytics 5.7.0 RC3

2018-09-18 Thread Gangani Ariyarathne
Hi all,

I have tested the following and no issues were found.

   - Successful local login attempts dashboard
   - Failed local login attempts dashboard
   - Suspicious login attempts dashboard

[+] Stable - go ahead and release.

Thanks,
Gangani

On Tue, Sep 18, 2018 at 5:17 PM Thanuja Jayasinghe  wrote:

> Hi All,
>
> I have tested the following and no issues were found.
>
>- Overall login attempts dashboard
>- Suspicious login attempts dashboard
>
> [+] Stable - go ahead and release
>
> Thanks,
> Thanuja
>
> On Tue, Sep 18, 2018 at 5:07 PM Chamath Samarawickrama 
> wrote:
>
>> Hi,
>>
>> I have tested the following on WSO2 Identity Server Analytics 5.7.0 RC3.
>>
>>- Overall login attempts dashboard
>>- Suspicious login attempts dashboard
>>- Login sessions dashboard
>>- Configuring risk-based Adaptive Authentication
>>
>> No blocking issues were found.
>>
>> *[+] Stable - go ahead and release*
>>
>> Thanks,
>> Chamath
>>
>> On Tue, Sep 18, 2018 at 3:42 PM Nuwandi Wickramasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>>
>>> We are pleased to announce the third release candidate of WSO2 Identity
>>> Server Analytics 5.7.0.
>>>
>>>
>>> This release fixes the following issues,
>>>
>>>
>>>
>>>- 5.7.0-RC3 Fixes
>>>
>>>- 5.7.0-RC2 Fixes
>>>
>>>- 5.7.0-RC1 Fixes
>>>
>>>
>>>
>>>
>>> Source and distribution,
>>>
>>>
>>>- https://github.com/wso2/analytics-is/releases/v5.7.0-rc3
>>>
>>>
>>>
>>> Please download, test the product and vote.
>>>
>>>
>>>[+] Stable - go ahead and release
>>>
>>>[-] Broken - do not release (explain why)
>>>
>>>
>>>
>>> Thanks,
>>>
>>> - WSO2 Identity and Access Management Team -
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Nuwandi Wickramasinghe
>>>
>>> Senior Software Engineer
>>>
>>> WSO2 Inc.
>>>
>>> Web : http://wso2.com
>>>
>>> Mobile : 0719214873
>>>
>>
>>
>> --
>> *C**h**amath Samarawickrama*
>> Intern | WSO2, Inc.
>> Mobile : +94772598944
>> Twitter   LinkedIn
>>   GitHub
>> 
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> *Thanuja Lakmal*
> Associate Technical Lead
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94715979891
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 

*Gangani Chamika*

*Intern - Software Engineering*
*WSO2*

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


Re: [Dev] [VOTE] Release WSO2 Identity Server 5.7.0 RC3

2018-09-13 Thread Gangani Ariyarathne
Hi,

I have tested the following in MS-SQL DB and no issues were found.

   - Configuring Role-Based Adaptive Authentication
   - Configuring User Store-Based Adaptive Authentication
   - Configuring New-Device-Based Adaptive Authentication
   - Configuring ACR-Based Adaptive Authentication
   - Configuring Login-Based Adaptive authentication

[+] Stable - Go ahead and release

Thanks,
Gangani


On Thu, Sep 13, 2018 at 8:35 PM, Dinali Dabarera  wrote:

> Hi all,
>
> I have tested the below in H2 DB and no issues were found.
>
>- XACML multi-decision profile (JSON/XML format)
>- Add a policy, update policy, publish policy, publish again by
>updating.
>- Add email templates.
>- Adding consent purposes and Consent management during JIT
>provisioning.
>- Add user, role, update permissions like basic user management
>scenarios.
>
> [+] Stable - Go ahead and release
>
> Thanks,
> Dinali
>
> On Thu, Sep 13, 2018 at 7:09 PM Senthalan Kanagalingam 
> wrote:
>
>> Hi all,
>>
>>
>> We are pleased to announce the third release candidate of WSO2 Identity
>> Server 5.7.0.
>>
>>
>> This release fixes the following issues,
>>
>>-
>>
>>5.7.0-RC2 fixes
>>
>>-
>>
>>5.7.0-RC1 fixes
>>
>>-
>>
>>5.7.0-Beta2 fixes
>>
>>-
>>
>>5.7.0-Beta fixes
>>
>>-
>>
>>5.7.0-Alpha3 fixes
>>
>>-
>>
>>5.7.0-Alpha2 fixes
>>
>>-
>>
>>5.7.0-Alpha fixes
>>
>>-
>>
>>5.7.0-M5 fixes
>>
>>-
>>
>>5.7.0-M4 fixes
>>
>>-
>>
>>5.7.0-M3 fixes
>>
>>-
>>
>>5.7.0-M2 fixes
>>
>>-
>>
>>5.7.0-M1 fixes
>>
>>
>>
>> Source and distribution,
>>
>>
>>Runtime - https://github.com/wso2/product-is/releases/v5.7.0-rc3
>>
>>
>>
>> Please download, test the product and vote.
>>
>>
>>[+] Stable - go ahead and release
>>
>>[-] Broken - do not release (explain why)
>>
>>
>>
>> Thanks,
>>
>> - WSO2 Identity and Access Management Team -
>> --
>>
>> *Senthalan Kanagalingam*
>> *Software Engineer - WSO2 Inc.*
>> *Mobile : +94 (0) 77 18 77 466*
>> 
>>
>
>
> --
> *Dinali Rosemin Dabarera*
> Software Engineer
> WSO2 Lanka (pvt) Ltd.
> Web: http://wso2.com/
> Email : gdrdabar...@gmail.com
> LinkedIn 
> Mobile: +94770198933
>
>
>
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>


-- 

*Gangani Chamika*

*Intern - Software Engineering*
*WSO2*

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


Re: [Dev] [Architecture] [VOTE] Release WSO2 Identity Server 5.7.0 RC2

2018-09-12 Thread Gangani Ariyarathne
Hi,

I have tested the following in MS-SQL DB and no issues were found.

   - Configuring Role-Based Adaptive Authentication
   - Configuring User Store-Based Adaptive Authentication
   - Configuring New-Device-Based Adaptive Authentication
   - Configuring ACR-Based Adaptive Authentication
   - Configuring Login-Based Adaptive authentication

[+] Stable - Go ahead and release

Thanks,
Gangani


On Wed, Sep 12, 2018 at 7:58 PM, Dinali Dabarera  wrote:

> Hi,
>
> I have tested the following in H2 DB and no issues were found.
>
>- XACML multi-decision profile JSON/XML format
>- Add a policy, update policy, publish policy, publish again by
>updating.
>- Add email templates.
>- Adding consent purposes and Consent management during JIT
>provisioning.
>
> [+] Stable - Go ahead and release
>
> Thanks,
> Dinali
>
> On Wed, Sep 12, 2018 at 7:49 PM Maduranga Siriwardena 
> wrote:
>
>> Hi,
>>
>> I have tested following and no issues were found.
>>
>>- Import and export service provider.
>>- Adaptive authentication with,
>>- role based template.
>>   - user age based template.
>>
>> [+] Stable - go ahead and release
>>
>> Thanks,
>> Maduranga.
>>
>> On Wed, Sep 12, 2018 at 4:23 PM Senthalan Kanagalingam <
>> sentha...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>>
>>> We are pleased to announce the second release candidate of WSO2 Identity
>>> Server 5.7.0.
>>>
>>>
>>> This release fixes the following issues,
>>>
>>>-
>>>
>>>5.7.0-RC2 fixes
>>>
>>>-
>>>
>>>5.7.0-RC1 fixes
>>>
>>>-
>>>
>>>5.7.0-Beta2 fixes
>>>
>>>-
>>>
>>>5.7.0-Beta fixes
>>>
>>>-
>>>
>>>5.7.0-Alpha3 fixes
>>>
>>>-
>>>
>>>5.7.0-Alpha2 fixes
>>>
>>>-
>>>
>>>5.7.0-Alpha fixes
>>>
>>>-
>>>
>>>5.7.0-M5 fixes
>>>
>>>-
>>>
>>>5.7.0-M4 fixes
>>>
>>>-
>>>
>>>5.7.0-M3 fixes
>>>
>>>-
>>>
>>>5.7.0-M2 fixes
>>>
>>>-
>>>
>>>5.7.0-M1 fixes
>>>
>>>
>>>
>>> Source and distribution,
>>>
>>>
>>>Runtime - https://github.com/wso2/product-is/releases/v5.7.0-rc2
>>>
>>>
>>>
>>> Please download, test the product and vote.
>>>
>>>
>>>[+] Stable - go ahead and release
>>>
>>>[-] Broken - do not release (explain why)
>>>
>>>
>>>
>>> Thanks,
>>>
>>> - WSO2 Identity and Access Management Team -
>>> --
>>>
>>> *Senthalan Kanagalingam*
>>> *Software Engineer - WSO2 Inc.*
>>> *Mobile : +94 (0) 77 18 77 466*
>>> 
>>>
>>
>>
>> --
>> Maduranga Siriwardena
>> Associated Technical Lead
>> WSO2 Inc; http://wso2.com/
>>
>> Email: madura...@wso2.com
>> Mobile: +94718990591
>> Blog: *https://madurangasiriwardena.wordpress.com/
>> *
>> 
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> *Dinali Rosemin Dabarera*
> Software Engineer
> WSO2 Lanka (pvt) Ltd.
> Web: http://wso2.com/
> Email : gdrdabar...@gmail.com
> LinkedIn 
> Mobile: +94770198933
>
>
>
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 

*Gangani Chamika*

*Intern - Software Engineering*
*WSO2*

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