fdescollonges / wwsNodes

Set of useful nodes for Watson Work Services for Node-RED
https://workspace.ibm.com/developer/docs
Other
4 stars 2 forks source link

Configurable application node #1

Open bgewehr opened 6 years ago

bgewehr commented 6 years ago

Now the apps can be configurable - will you be willing to add that to your node collection?

https://developer.watsonwork.ibm.com/docs/apps/make-your-app-configurable

I'd like to see a switch ( ) configurable and then some attributes configured in the node to handle space specific settings of your app, say which twitter search to follow or whch connections community with which user credentials or things like that.

BerndGewehr commented 6 years ago

Now after having played around a little with configuration of WWS apps, I can tell what would be the best solution imho:

The configuration node delivers a URL ("/flow-name/config")that can be registered with the service and a url that the service posts the form data to ("/flow-name/configpost"). In between it checks for valid access by using the https://api.watsonwork.ibm.com/v1/apps/<appID>/configurationData/<configurationToken> API call from which it also gets the spaceID and the userID.

What I would like to see the most is a combined experience for the user, allowing him to add an app to a space, then connect third party services via oauth2 like "login with twitter/LinkedIn/Microsoft/IBMID/IBMConnections and all that stuff so we can build flows that consume these informations for posting into the streams of the selected workspace.

We have to store the authentication pairs (oauth token for third party solution (twitter/LinkedIn/...) and the spaceID where that config was made in. Then we can build simple flows that can be reused by multiple users and personally configured in each single space. Just like ittt but with much more possibilities on what to do with the content...

What do you think?

BerndGewehr commented 6 years ago

... at least we would need a generic API node to make any other API calls like the security checking for configurable apps.