RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Table of Contents |
---|
...
...
Thunder is the default broker for Ripple, it also supports other brokers. WS and HTTP Brokers would be supported based on their access and availability. If the Web-based broker is available internally within the device then tokens are not mandatory. All external endpoints would necessitate authentication mechanism preferably using tokens here are the list of supported tokens
Token Type | Context Definition to be used in Rules |
---|---|
Account | $context.accountToken" |
Platform | $context.platformToken |
Device | $context.deviceToken |
Distributor | $context.distributorToken |
Root | $context.rootToken |
Code Block |
---|
"endpoints": { "secureService": { "protocol": "http", "url": "https://secureservice.firebolt.com", "webContext": { "headers": { "Authetication": "Bearer $context.accountToken", "OtherHeader": "Some Service specific headers" } } }, "someOtherService": { "protocol": "http", "url": "https://secureservice.firebolt.com?token=$context.deviceToken" }, }, "rules { "securestorage.set": { "endpoint": "secureService", "alias": "/get", "transform": { "request": "{ namespace: \"$context.appId\", scope: .scope, key: .key, value: .value }", "response": "if .success then \"null\" else { code: -32100, message: \"couldnt set timezone\" } end" } } } |
...