Re: [Dev] [IAM] Username and Claims are null in Adaptive authentication script when authenticating again

2019-10-22 Thread Sameera Wickramasekara
Hi Ruwan,

Thanks for the input, however even if I used localClaim it's also a null
value in this scenario. Furthermore, AFAIU the username value becoming null
is an issue here.
Please correct me if I'm wrong.

Thanks,
Sameera

On Tue, Oct 22, 2019 at 11:53 AM Ruwan Abeykoon  wrote:

> Hi Sameera,
> Best practice is to use local claims, which is translated to local dialect
> as much as possible.
>
> Cheers,
> Ruwan A
>
> On Tue, Oct 22, 2019 at 10:45 AM Sameera Wickramasekara 
> wrote:
>
>> Hi Devs,
>>
>> I am using an adaptive authentication script similar to one below in a
>> federated authentication flow.
>>
>>
>>
>> *function onLoginRequest(context) {executeStep(1, {onSuccess:
>> function (context) {*
>> *  var user = context.currentKnownSubject*
>> *  var userClaim =
>> user.remoteClaims["http://wso2.org/claims/email
>> <http://wso2.org/claims/email>"];*
>> *  Log.info("Username"+ user.username);*
>> *  Log.info("Email"+ userClaim);*
>>
>>
>> *}});}*
>>
>> When the user signs in through the federated IDP everything works as
>> expected. The issue happens if somehow the user invokes the* 
>> /oauth2/authorize
>> *endpoint again (without revoking the user session in IS side) to
>> initiate the login flow. Then the user claims and username are printed as
>> *null* values.
>>
>> I am using an updated IS 5.8.0 pack. Appreciate any insight into the
>> issue and a way to solve this.
>>
>> Thanks,
>> Sameera
>> --
>> *Sameera Wickramasekara*
>> Senior Software Engineer
>> WSO2
>> lean . enterprise . middleware
>> Mobile : +94(0) 714652035
>> <https://wso2.com/signature>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
>

-- 
*Sameera Wickramasekara*
Senior Software Engineer
WSO2
lean . enterprise . middleware
Mobile : +94(0) 714652035
<https://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IAM] Username and Claims are null in Adaptive authentication script when authenticating again

2019-10-21 Thread Sameera Wickramasekara
Hi Devs,

I am using an adaptive authentication script similar to one below in a
federated authentication flow.



*function onLoginRequest(context) {executeStep(1, {onSuccess:
function (context) {*
*  var user = context.currentKnownSubject*
*  var userClaim =
user.remoteClaims["http://wso2.org/claims/email
<http://wso2.org/claims/email>"];*
*  Log.info("Username"+ user.username);*
*  Log.info("Email"+ userClaim);*


*}});}*

When the user signs in through the federated IDP everything works as
expected. The issue happens if somehow the user invokes the* /oauth2/authorize
*endpoint again (without revoking the user session in IS side) to initiate
the login flow. Then the user claims and username are printed as *null*
values.

I am using an updated IS 5.8.0 pack. Appreciate any insight into the issue
and a way to solve this.

Thanks,
Sameera
-- 
*Sameera Wickramasekara*
Senior Software Engineer
WSO2
lean . enterprise . middleware
Mobile : +94(0) 714652035
<https://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IAM] User association during Adaptive authentication

2019-10-21 Thread Sameera Wickramasekara
Hi Ashen,

Thanks for the explanation. however, in this case, the user is
already present in the userstore by different user id (uuid is used as the
identifier) and during the adaptive authentication process, it must
identify if the current logging in user is already present in the userstore
.  the email claim acts as the unique identifier in this case. for example
if the email of the current authenticating user is present in another
user's email claim we should identify it as the same user and retrieve that
users roles. I hope I am clear about my requirements. :)

Anyways I was able to retrieve the current user from userstore using
the *getUniqueUserWithClaimValues
*method.[1] and then retrieve the roles of that user successfully. The
issue is solved now.

[1] -
https://github.com/wso2-extensions/identity-conditional-auth-functions/pull/43
<https://www.google.com/url?q=https://github.com/wso2-extensions/identity-conditional-auth-functions/pull/43=D=hangouts=1571738698374000=AFQjCNHvbxARjo1SULca7W06DqXiqBdN6A>

Thanks,
Sameera

On Fri, Oct 18, 2019 at 8:04 PM Ashen Weerathunga  wrote:

> Hi Sameera,
>
> On Thu, Oct 17, 2019 at 8:04 PM Sameera Wickramasekara 
> wrote:
>
>> Hi Devs,
>>
>> I am looking for a way to get the roles of a user in an adaptive
>> authentication script in *IS 5.8.0* in the following special scenario.
>>
>>
>>- The user authenticates through GitHub federated IDP.
>>- The user can be already present in the user store registered from
>>another means.
>>- The email attribute will be used as the unique identifier (common
>>attribute) to associate the user
>>
>>
>> The requirement is to check if the user currently authenticating
>> through GitHub already exists in the userstore with the same email address
>> and if present, retrieve the list of roles for that user.
>> currently we can retrieve the roles of the logging in user but it does
>> not address the above scenario because IFAIU user association happens after
>> the adaptive authentication process.
>>
>
> Yes, the user association happens during the post-authentication process.
> When you have enabled JIT provisioning for the GitHub federated IDP, during
> the 1st login it will create a new user in the local user store with the
> same username (email) and then it will associate the authenticated
> federated user with the local user.
>
> When you try to do a role comparison during the authentication process via
> an adaptive authentication function (eg: hasAnyOfTheRoles()), it will
> retrieve the roles of the local user. Therefore in your case, if the user
> is already created in the local userstore you should be able to check the
> roles of the existing local user during the adaptive authentication
> process. That way you should be able to achieve your requirement AFAIU.
>
> Thanks,
> Ashen
>
>
>>
>> I have gone through resources [1] and skimmed through [2]. Appreciate if
>> you could provide any insight into a solution.
>>
>>
>> [1] -
>> https://docs.wso2.com/display/IS580/Adaptive+Authentication+JS+API+Reference#AdaptiveAuthenticationJSAPIReference-contextObject
>> [2] -
>> https://github.com/wso2-extensions/identity-conditional-auth-functions/tree/master/components/org.wso2.carbon.identity.conditional.auth.functions.user/src/main/java/org/wso2/carbon/identity/conditional/auth/functions/user
>>
>>
>> Thanks,
>> Sameera
>>
>>
>>
>> --
>> *Sameera Wickramasekara*
>> Senior Software Engineer
>> WSO2
>> lean . enterprise . middleware
>> Mobile : +94(0) 714652035
>> <https://wso2.com/signature>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> Ashen Weerathunga | Senior Software Engineer | WSO2 Inc.
> (m) +94716042995 | (w) +94112145345 | Email: as...@wso2.com
> <http://wso2.com/signature>
>
>
>

-- 
*Sameera Wickramasekara*
Senior Software Engineer
WSO2
lean . enterprise . middleware
Mobile : +94(0) 714652035
<https://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IAM] User association during Adaptive authentication

2019-10-17 Thread Sameera Wickramasekara
Hi Devs,

I am looking for a way to get the roles of a user in an adaptive
authentication script in *IS 5.8.0* in the following special scenario.


   - The user authenticates through GitHub federated IDP.
   - The user can be already present in the user store registered from
   another means.
   - The email attribute will be used as the unique identifier (common
   attribute) to associate the user


The requirement is to check if the user currently authenticating
through GitHub already exists in the userstore with the same email address
and if present, retrieve the list of roles for that user.
currently we can retrieve the roles of the logging in user but it does not
address the above scenario because IFAIU user association happens after the
adaptive authentication process.

I have gone through resources [1] and skimmed through [2]. Appreciate if
you could provide any insight into a solution.


[1] -
https://docs.wso2.com/display/IS580/Adaptive+Authentication+JS+API+Reference#AdaptiveAuthenticationJSAPIReference-contextObject
[2] -
https://github.com/wso2-extensions/identity-conditional-auth-functions/tree/master/components/org.wso2.carbon.identity.conditional.auth.functions.user/src/main/java/org/wso2/carbon/identity/conditional/auth/functions/user


Thanks,
Sameera



-- 
*Sameera Wickramasekara*
Senior Software Engineer
WSO2
lean . enterprise . middleware
Mobile : +94(0) 714652035
<https://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IoTS] Maven Archetype based RaspberryPi Plugin Status.

2017-08-16 Thread Sameera Wickramasekara
Hi Devs,

I would like to update rest of the changes I made in order to complete the
task.
in this period the name of the device type was changed from
'raspberrypicodebsed' to 'sampledevice' as per comments in the Code review.
The numbering is continued from the previous mail.

6.Change the secured websocket endpoint url pattern in component > ui >
realtime.analytics-view > analytics-view.js

from
var websocketEndpointForStream1 = websocketEndpoint +
"/secured-websocket/org.wso2.iot.devices.sensor_temp/1.0.0?deviceId="
   + device.deviceIdentifier + "=" + device.type;

to

var websocketEndpointForStream1 = websocketEndpoint +
"/secured-websocket/org.wso2.iot.devices.sensor_temp/1.0.0?deviceId="
   + device.deviceIdentifier + "=" + device.type +
*"="
+ token;*



7.Add a device Id for the mqtt client in mqttHandler.py

 mqttClient = mqtt.Client(client_id='sampledevice-client')

These are the essential changes that i have encountered during the task.
Please find the final code here [1] ,
and the device deployer here [2].
All feedback is welcome.

[1]-
https://github.com/wso2/product-iots/tree/master/modules/distribution/src/core/samples/sampledevice
[2]-
https://github.com/wso2/product-iots/blob/master/modules/distribution/src/core/samples/sampledevice-deployer.xml

*Sameera Wickramasekara*
Software Engineer
WSO2
lean . enterprise . middleware
Mobile : +94(0) 714652035
<https://wso2.com/signature>


On Mon, Jul 31, 2017 at 9:30 AM, Sameera Wickramasekara <samee...@wso2.com>
wrote:

> Hi All,
>
> Sorry for the incomplete report above, it was sent mistakenly. As i have
> mentioned ,I have been working on a Raspberry Pi IoTS plugin based on the
> existing maven archetype[1]. In order to make the plugin compatible with
> the latest IoTS release, I have made following changes.
>
> 1.Updated the versions of following dependencies in pom.xml of the project
>
>4.4.11
>
> * *  
> 3.0.37   
> 4.0.34
> 2.Implemented the new methods from the interface  
> DeviceTypeManagerService.java in
> /component/plugin/src/main/java/org.wso2/[DEVICETYPE]/plugin/impl/DeviceTypeManagerService.java
>
> 3.Updated the p2.inf file the updated p2.inf file is attatched here
> 4.added the following scope  to the downloadSketch method definition in 
> DeviceTypeService.java
>
>  @Path("/device/download")@GET@Produces("application/zip")
> @ApiOperation(consumes = MediaType.*APPLICATION_JSON*,
> httpMethod = "GET",value = "Download client",notes = 
> "",response = Response.class,tags = "raspberrypiled", 
>extensions = {@Extension(properties = {
> @ExtensionProperty(name = *SCOPE*, value = 
> "perm:raspberrypiled:enroll")})})Response 
> downloadSketch(@QueryParam("deviceName") String deviceName, 
> @QueryParam("sketchType") String sketchType);
> 5.Added *device_management* to @Tag scope in DeviceTypeService.java
>
> @SwaggerDefinition(info = @Info(version = "1.0.0",
> title = "",extensions = {
> @Extension(properties = {
> @ExtensionProperty(name = "name", value = "raspberrypiled"),  
>   @ExtensionProperty(name = "context", value = 
> "/raspberrypiled"),})}),  
>   tags = {@Tag(name = "raspberrypiled,*device_management*", 
> description = "")})
> I have been able to deploy the new device and download the agent up to now. 
> The next step is to perform an operation to control an LED bulb.I will update 
> the status when it has been done. Appreciate any feedback.
>
> [1] https://github.com/wso2/carbon-device-mgt-maven-plugin 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fcarbon-device-mgt-maven-plugin=D=1=AFQjCNFFQ8yxwXxMGp3amxUgxXqgdgxs2g>
>
> Regards,  
>
> *Sameera Wickramasekara*
> Software Engineer
> WSO2
> lean . enterprise . middleware
> Mobile : +94(0) 714652035 <+94%2071%20465%202035>
> <https://wso2.com/signature>
>
>
> On Mon, Jul 31, 2017 at 8:53 AM, Sameera Wickramasekara <samee...@wso2.com
> > wrote:
>
>> Hi Devs,
>>
>> I have been working on a Raspberry Pi IoTS plugin based on the existing
>> maven archetype[1]. In order to make the plugin compatible with the latest
>> 

Re: [Dev] [VOTE] Release of WSO2 IoT Server 3.1.0 RC version 4

2017-08-14 Thread Sameera Wickramasekara
Hi All,

I have tested the following with a custom device type created from maven
archetype,

   1. Device type deployment
   2. Device enrolment
   3. Push operation to device (MQTT)
   4. Real time analytics
   5. Batch analytics

No issues were found.
[+] Stable - go ahead and release.

Thanks and Regards,
Sameera

*Sameera Wickramasekara*
Software Engineer
WSO2
lean . enterprise . middleware
Mobile : +94(0) 714652035
<https://wso2.com/signature>


On Mon, Aug 14, 2017 at 5:18 PM, Menaka Jayawardena <men...@wso2.com> wrote:

> Hi All,
>
> I have tested the following functionalities for Android Sense device type.
>
> 1. Enrollment
> 2. Sensor Data publishing and viewing them in device view.
> 3. Removing device and re-enrolling to a new user.
> 4. Geo Fencing features.
>
> +1 Stable - Go ahead and release.
>
> Thanks and Regards,
> Menaka
>
>
> On Mon, Aug 14, 2017 at 5:03 PM, Madawa Soysa <mada...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have tested following functionalities for IOS device type. (v 10.1.1)
>>
>>- Enrolling device with/without ios-agent.
>>- Operation execution (Device lock, Ring, Location, Notification,
>>Enterprise-Wipe)
>>- Changing platform configurations.
>>- Passcode and restriction policies.
>>
>> No issues were found.
>>
>> [+] Stable - go ahead and release.
>>
>> Thanks,
>> Madawa
>>
>> On Fri, Aug 11, 2017 at 7:06 PM, Milan Perera <mi...@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> We are pleased to announce the release candidate version 4 of WSO2 IoT 
>>> Server
>>> 3.1.0.
>>>
>>> Please download, test the product and vote. Vote will be open for 72
>>> hours or as needed.
>>>
>>> Known issues : https://github.com/wso2/product-iots/issues-RC4
>>> <https://github.com/wso2/product-iots/issues?q=is%3Aopen+is%3Aissue+label%3A3.1.0-RC3>
>>>
>>> Source and binary distribution files:
>>> https://github.com/wso2/product-iots/releases/tag/v3.1.0-RC4
>>>
>>> The tag to be voted upon:
>>> https://github.com/wso2/product-iots/tree/v3.1.0-RC4
>>>
>>> Please vote as follows.
>>> [+] Stable - go ahead and release
>>> [-] Broken - do not release (explain why)
>>>
>>> Thank you
>>>
>>> Regards,
>>> --
>>> *Milan Perera *| Senior Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>>> Email: mi...@wso2.com <ar...@wso2.com> | Web: www.wso2.com
>>> <http://lk.linkedin.com/in/milanharinduperera>
>>> <https://wso2.com/signature>
>>>
>>
>>
>>
>> --
>>
>> Madawa Soysa / Software Engineer
>> mada...@wso2.com / +94714616050 <+94%2071%20461%206050>
>>
>> *WSO2 Inc.*
>> lean.enterprise.middleware
>>
>>   <https://wso2.com/signature>
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Menaka Jayawardena*
> *Software Engineer - WSO2 Inc*
> *Tel : 071 350 5470*
> *LinkedIn: https://lk.linkedin.com/in/menakajayawardena
> <https://lk.linkedin.com/in/menakajayawardena>*
> *Blog: https://menakamadushanka.wordpress.com/
> <https://menakamadushanka.wordpress.com/>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IoTS] Maven Archetype based RaspberryPi Plugin Status.

2017-07-30 Thread Sameera Wickramasekara
Hi Devs,

I have been working on a Raspberry Pi IoTS plugin based on the existing
maven archetype[1]. In order to make the plugin compatible with the latest
IoTS release, I have made following
changes.

 Updated the versions of following dependencies in pom.xml

carbon.device.mgt.version

carbon.device.mgt.plugin.version



*Sameera Wickramasekara*
Software Engineer
WSO2
lean . enterprise . middleware
Mobile : +94(0) 714652035 <+94%2071%20465%202035>
<https://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] GSoC 2017 Proposal 15: APIM Design new REST API for Analytics

2017-02-21 Thread Sameera Wickramasekara
Hi All,

I'm Sameera Wickramasekara, a final year undergraduate at University of
Moratuwa . I'm experienced with Java, Android and JavaScript frameworks
.I'm Interested in the Project for designing new REST API for APIM . I have
experience with developing REST APIs with java and Node.js from my academic
projects and my internship experiences.I believe i can contribute to this
project through my skills. as my fist steps i am reading the documentation
of APIM and downloading it to get familiar with the concepts. I highly
appreciate if you could guide me how should i proceed from here.

Thank you & Regards,
Sameera Wickramasekara


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


Re: [Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-25 Thread Sameera Wickramasekara
Dear Mentors

Thank you  for the clarifying things ,and giving me support until the last
moment. I submitted my final proposal and hope to complete this project
successfully within the time period.

Thank you

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


Re: [Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-24 Thread Sameera Wickramasekara
Hi All

This is a Draft proposal
https://docs.google.com/document/d/1GC_NtI5bEFcIRqP7KGSjdMT0P3rYNXflw81AkHyjogs/edit

please comment on the things i should improve
i hope to submit it before the deadline

Thank you

On Thu, Mar 24, 2016 at 10:27 PM, Sameera Wickramasekara <
itssamw...@gmail.com> wrote:

> Hi Kasun,
>
> As i was reading the documentation i understood the following approach to
> the problem, can you please comment if im right or wrong
>
> 1. the EMM monitors the devices for policy violations between given time
> intervals.
> 2.we can use this functionality to receive the location data of each
> device(OR use the rest api to request the location, ?? )
> 3.then we can enforce the location based policies if the device belongs to
> the  area of interest.
>
> Thank you
> Sameera Wickramasekara
>
> On Thu, Mar 24, 2016 at 8:39 AM, Kasun Dananjaya Delgolla <kas...@wso2.com
> > wrote:
>
>> Hi Sameera,
>>
>> Please find the documentation link[1] for policy management. You can
>> carefully study the current behavior of the policy management feature and
>> think of a unique way of solving the problem "Enforcing policies based on
>> users location and a given time frame". Take all the points that I've
>> described in my first mail and start building your proposal. Good luck!
>>
>> [1] - https://docs.wso2.com/display/EMM210/Managing+Policies
>>
>> On Wed, Mar 23, 2016 at 10:37 PM, Sameera Wickramasekara <
>> itssamw...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have successfully built the WSO2 EMM from source. i have understood
>>> that the deliverables are time and location based policy enforcement. how
>>> should i start to implement a custom policy/ change a policy  in the EMM ?
>>> can you point me to a tutorial of some sort.
>>> And i hope i will be able to complete my proposal before the deadline
>>> with your guidence
>>>
>>> Thank you
>>> Sameera Wickramasekara
>>>
>>>
>>> On Mon, Mar 14, 2016 at 2:10 PM, Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
>>>> Hi Sameera,
>>>>
>>>> Thank you for your interest in this project.
>>>>
>>>>
>>>> In order to get a better picture of the project make sure to build WSO2
>>>> EMM[1] including CDMF framework[2] using the git repositories listed.
>>>>
>>>> Enroll a device and a publish a sample policy against the device and
>>>> study the current behavior of the policy.
>>>> You are expected to change the behavior a mentioned below.
>>>>
>>>> Given policy must be activated automatically when the device enters a
>>>> predefined area.
>>>> Given policy must be deactivated when a device leaves a predefined
>>>> area.
>>>> Given policy must be activated automatically in the given time frame.
>>>> Stats of the current policy, whether its active or inactive need to be
>>>> visible in the dashboard.
>>>> Policy compliance monitoring to the given device must be activated
>>>> when a policy is activated.
>>>>
>>>> Project deliverable "Extension point for current EMM policy module
>>>> with location and time based policy publishing capability" includes
>>>> followings,
>>>>
>>>>- Location based policy enforcement component.
>>>>- A component which enables the location base policy monitoring and
>>>>   enforcement including statics.This need to be a extension to
>>>>   thee component which enabled device policies currently
>>>>- Time based location component.
>>>>- A component which enables the time base policy monitoring and
>>>>   enforcement including statics.This need to be a extension to
>>>>   thee component which enabled device policies currently
>>>>- Location and time based policy configuration UI.
>>>>- This is to enable users to configure and maintain the locations
>>>>and time frames.The UI must have the ability to monitor the
>>>>   policies which is active in the device and compliance
>>>>   status.Above features must follow the current pattern used for
>>>>   policy monitoring and Policy Management in WSO2 EMM.
>>>>
>>>>
>>>> While working with WSO2 EMM, if you found any bugs or improvements feel
>>>> free to let us know by using the oxygen tank[3].
>

Re: [Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-24 Thread Sameera Wickramasekara
Hi Kasun,

As i was reading the documentation i understood the following approach to
the problem, can you please comment if im right or wrong

1. the EMM monitors the devices for policy violations between given time
intervals.
2.we can use this functionality to receive the location data of each
device(OR use the rest api to request the location, ?? )
3.then we can enforce the location based policies if the device belongs to
the  area of interest.

Thank you
Sameera Wickramasekara

On Thu, Mar 24, 2016 at 8:39 AM, Kasun Dananjaya Delgolla <kas...@wso2.com>
wrote:

> Hi Sameera,
>
> Please find the documentation link[1] for policy management. You can
> carefully study the current behavior of the policy management feature and
> think of a unique way of solving the problem "Enforcing policies based on
> users location and a given time frame". Take all the points that I've
> described in my first mail and start building your proposal. Good luck!
>
> [1] - https://docs.wso2.com/display/EMM210/Managing+Policies
>
> On Wed, Mar 23, 2016 at 10:37 PM, Sameera Wickramasekara <
> itssamw...@gmail.com> wrote:
>
>> Hi,
>>
>> I have successfully built the WSO2 EMM from source. i have understood
>> that the deliverables are time and location based policy enforcement. how
>> should i start to implement a custom policy/ change a policy  in the EMM ?
>> can you point me to a tutorial of some sort.
>> And i hope i will be able to complete my proposal before the deadline
>> with your guidence
>>
>> Thank you
>> Sameera Wickramasekara
>>
>>
>> On Mon, Mar 14, 2016 at 2:10 PM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> Hi Sameera,
>>>
>>> Thank you for your interest in this project.
>>>
>>>
>>> In order to get a better picture of the project make sure to build WSO2
>>> EMM[1] including CDMF framework[2] using the git repositories listed.
>>>
>>> Enroll a device and a publish a sample policy against the device and
>>> study the current behavior of the policy.
>>> You are expected to change the behavior a mentioned below.
>>>
>>> Given policy must be activated automatically when the device enters a
>>> predefined area.
>>> Given policy must be deactivated when a device leaves a predefined
>>> area.
>>> Given policy must be activated automatically in the given time frame.
>>> Stats of the current policy, whether its active or inactive need to be
>>> visible in the dashboard.
>>> Policy compliance monitoring to the given device must be activated when
>>> a policy is activated.
>>>
>>> Project deliverable "Extension point for current EMM policy module with
>>> location and time based policy publishing capability" includes
>>> followings,
>>>
>>>- Location based policy enforcement component.
>>>- A component which enables the location base policy monitoring and
>>>   enforcement including statics.This need to be a extension to thee
>>>   component which enabled device policies currently
>>>- Time based location component.
>>>- A component which enables the time base policy monitoring and
>>>   enforcement including statics.This need to be a extension to thee
>>>   component which enabled device policies currently
>>>- Location and time based policy configuration UI.
>>>- This is to enable users to configure and maintain the locations
>>>and time frames.The UI must have the ability to monitor the
>>>   policies which is active in the device and compliance
>>>   status.Above features must follow the current pattern used for
>>>   policy monitoring and Policy Management in WSO2 EMM.
>>>
>>>
>>> While working with WSO2 EMM, if you found any bugs or improvements feel
>>> free to let us know by using the oxygen tank[3].
>>>
>>> [1] https://github.com/wso2/carbon-device-mgt
>>> [2] https://github.com/wso2/product-mdm
>>> [3] https://wso2.org/jira/secure/Dashboard.jspa
>>>
>>> Thank you
>>>
>>> On Mon, Mar 14, 2016 at 1:36 PM, Sameera Wickramasekara <
>>> itssamw...@gmail.com> wrote:
>>>
>>>>
>>>>
>>>> Hi ,
>>>> Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
>>>> Moratuwa Faculty of information Technology. Im interested in the Location
>>>> and Time-based Device policy Endorsement Project. I have good experience in
&

[Dev] Fwd: Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-23 Thread Sameera Wickramasekara
Hi,

I have successfully built the WSO2 EMM from source. i have understood that
the deliverables are time and location based policy enforcement. how should
i start to implement a custom policy/ change a policy  in the EMM ? can you
point me to a tutorial of some sort.
And i hope i will be able to complete my proposal before the deadline with
your guidence

Thank you
Sameera Wickramasekara


On Mon, Mar 14, 2016 at 2:10 PM, Kasun Dananjaya Delgolla <kas...@wso2.com>
wrote:

> Hi Sameera,
>
> Thank you for your interest in this project.
>
>
> In order to get a better picture of the project make sure to build WSO2
> EMM[1] including CDMF framework[2] using the git repositories listed.
>
> Enroll a device and a publish a sample policy against the device and
> study the current behavior of the policy.
> You are expected to change the behavior a mentioned below.
>
> Given policy must be activated automatically when the device enters a
> predefined area.
> Given policy must be deactivated when a device leaves a predefined area.
> Given policy must be activated automatically in the given time frame.
> Stats of the current policy, whether its active or inactive need to be
> visible in the dashboard.
> Policy compliance monitoring to the given device must be activated when a
> policy is activated.
>
> Project deliverable "Extension point for current EMM policy module with
> location and time based policy publishing capability" includes followings,
>
>- Location based policy enforcement component.
>- A component which enables the location base policy monitoring and
>   enforcement including statics.This need to be a extension to thee
>   component which enabled device policies currently
>- Time based location component.
>- A component which enables the time base policy monitoring and
>   enforcement including statics.This need to be a extension to thee
>   component which enabled device policies currently
>- Location and time based policy configuration UI.
>- This is to enable users to configure and maintain the locations and
>   time frames.The UI must have the ability to monitor the policies which
>   is active in the device and compliance status.Above features must
>   follow the current pattern used for policy monitoring and Policy 
> Management
>   in WSO2 EMM.
>
>
> While working with WSO2 EMM, if you found any bugs or improvements feel
> free to let us know by using the oxygen tank[3].
>
> [1] https://github.com/wso2/carbon-device-mgt
> [2] https://github.com/wso2/product-mdm
> [3] https://wso2.org/jira/secure/Dashboard.jspa
>
> Thank you
>
> On Mon, Mar 14, 2016 at 1:36 PM, Sameera Wickramasekara <
> itssamw...@gmail.com> wrote:
>
>>
>>
>> Hi ,
>> Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
>> Moratuwa Faculty of information Technology. Im interested in the Location
>> and Time-based Device policy Endorsement Project. I have good experience in
>> Java and Android development. and Im confident i would be able to complete
>> this project with your guidance.please let me know how to proceed from here.
>>
>> thank you
>>
>>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> <http://lk.linkedin.com/in/kasundananjaya>*
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-14 Thread Sameera Wickramasekara
Hi ,
Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
Moratuwa Faculty of information Technology. Im interested in the Location
and Time-based Device policy Endorsement Project. I have good experience in
Java and Android development. and Im confident i would be able to complete
this project with your guidance.please let me know how to proceed from here.

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


[Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-11 Thread Sameera Wickramasekara
Hi ,
Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
Moratuwa Faculty of information Technology. Im interested in the Location
and Time-based Device policy Endorsement Project. I have good experience in
Java and Android development. and Im confident i would be able to complete
this project with your guidance.please let me know how to proceed from here.

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