Jump to content

REST API Invocation without login or with special login


sperok

Recommended Posts

It would be really helpful if certain REST functions could be authorized for access either without login or with non-admin credentials. For example.

 

- default is to disallow all REST API calls to non-admin authenticated users

- users could be granted access with a directive such as: allow

 

Examples:

 

allow * http://myisy.xx.yy/REST/programs/0034 * Allows anyone to run program ID 34 using any command

allow * http://myisy.xx.yy/REST/programs/0034 runIf Allows anyone to run program ID 34 using the runIf command

allow fred http://myisy.xx.yy/REST/programs/fred/* * Allows user fred to run all programs in the "fred" sub-directory with any command

 

My particular use case is to provide very streamlined access for users of a rental property. I'd like to embed a few links in an e-mail that they could invoke from their phone or wherever they are. That way they can "poke" the house when they are on the way up and the hot tub will be ready when they arrive, the gate will be open and the lights will come on. All without building a web site ...

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...