The proposed architecture is to generate the access and refresh tokens
based on to how APIM generate the tokens. Validation will occur on the same
way. There is an initial token used for enrollment with EMM - this is a
random token generated from javascript [1]. This is used to associate a
user to a device for bootstrapping purpose.

[1] - var token =  Math.random().toString(36).substr(2);

On Wed, Oct 1, 2014 at 3:45 PM, Manoj Gunawardena <[email protected]> wrote:

> Hi Chan,
>
> Clarification, How the device manager generating the token? And what is
> the logic for validating the token?
>
>
> Thanks
>
> On Tue, Sep 30, 2014 at 8:19 PM, Chan <[email protected]> wrote:
>
>> Hi guys,
>> Once the devices are enrolled to the Platform - Devices will be
>> publishing data. For the initial implementation - this will be based on
>> HTTP. We brainstormed sometime back and found there are 2 types of data -
>> management data, sensor data,  I am proposing the below architecture to
>> publish data from devices to the platform.
>>
>>
>> ​
>>
>> The Device is first enrolled to the Device Manager and it will be given a
>> token. The  device publishes the data to the Event Receiver. I think we
>> have to override the Http Event Receiver to perform this token check. After
>> the token check is done- we need to add the deviceId and tenantId
>> parameters to the data payload. The Device communication to the Event
>> Receiver has to be protect through SSL. (Small point here would be about
>> the long lived access tokens on the device.
>> ​
>> ​Cheers~​
>>
>> --
>> Chan (Dulitha Wijewantha)
>> Software Engineer - Mobile Development
>> WSO2 Inc
>> Lean.Enterprise.Mobileware
>>  * ~Email       [email protected] <[email protected]>*
>> *  ~Mobile     +94712112165 <%2B94712112165>*
>> *  ~Website   dulitha.me <http://dulitha.me>*
>> *  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
>>   *~Github     @dulichan <https://github.com/dulichan>*
>>   *~SO     @chan <http://stackoverflow.com/users/813471/chan>*
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Manoj Gunawardena
> Tech Lead
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 2291643
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Mobileware
 * ~Email       [email protected] <[email protected]>*
*  ~Mobile     +94712112165*
*  ~Website   dulitha.me <http://dulitha.me>*
*  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
  *~Github     @dulichan <https://github.com/dulichan>*
  *~SO     @chan <http://stackoverflow.com/users/813471/chan>*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to