unifiedremote / Docs

Official API documentation.
149 stars 33 forks source link

storing secrets? #43

Closed YAMLcase closed 1 year ago

YAMLcase commented 1 year ago

What's the best way to store secrets locally? I needs to build http REST requests with a Bearer token, but don't want to store it in my remote control files. I was thinking FS read file, but then how would I parse if I have it kept in YAML, JSON or such?

pqvst commented 1 year ago

You can create a settings.prop file for your remote. Here's an example for the VLC Web remote: https://github.com/unifiedremote/Remotes/tree/master/Main/VLC%20Web

You can access these values from the remote, like this: https://github.com/unifiedremote/Remotes/blob/master/Main/VLC%20Web/remote.lua#L11

You can edit the settings.prop file manually, or you can edit the values in the Server Manager (Remotes > Configure)

image