TheThingSystem / steward

The Thing System is a set of software components and network protocols that aims to fix the Internet of Things. Our steward software is written in node.js making it both portable and easily extensible. It can run on your laptop, or fit onto a small single board computer like the Raspberry Pi.
http://thethingsystem.com
Other
346 stars 81 forks source link

Inconsistent thing's name from steward #297

Open wcchh opened 8 years ago

wcchh commented 8 years ago

When the steward receives the pair message, it sends a simple result containing information for future authentication:

recv: {"requestID":"1","result":{"params":{"algorithm":"sha1","length":40,"name":".things@steward","issuer":"steward","step":30,"base32":"GVEFOUBTIFNHCZZQIIYHIZCSMRCDKZCYIRZTO3RXKBDEGVLRIZUTG42UNN2TMVDT","protocol":"totp"},"success":true,"thingID":"1"},"timestamp":1462345153}

And you can see the "name" is ".thing@steward", but it should be the word of what I send for pairing, which is 'TESTUUID000' as below

send: {"path":"/api/v1/thing/pair/TESTUUID000","name":"TESTUUID000","requestID":1}

This will occur only after db files be clean, then the first time steward running up.