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

HTML5/D3 & steward: changes for cloud authentication #175

Open mrose17 opened 10 years ago

mrose17 commented 10 years ago

if a /device/gateway device has a non-empty 'authorizeURL', then on the settings page, there should be a table under the "Add Cloud Services" table

One row for each non-empty authorizeURL, three columns for each row:

column 1: the name of the cloud service (i.e., deviceName) column 2: the text associated with the cloud service, e.g., bootable.automatic.authorizeText column 3: a button labeled "Authorize" to opens up a new window to the authorizeURL

if it's better to organize this as something other than a table, that's fine.

ae9f commented 10 years ago

@mrose17 -- the 'bootable' table in login.js is now named 'clouds'.

mrose17 commented 10 years ago

the code you have works, but i botched the request. i'll circle back later tonight with an updated request. sorry!

mrose17 commented 10 years ago

the authorizeURL is a property for a device under /device/gateway, not a static value in login.js -- i gave you bad information earlier… sorry!