...
Code Block |
---|
language | javascript |
---|
theme | Confluence |
---|
|
pre{
my_key = keys:twitter("consumer_secret");
} |
Key Modules
KRL provides a mechanism for storing keys in modules that can only be accessed by named rulesets. A key module uses
...
the pragma provide keys (or )to specify which previously defined keys should be made available. For example, is rulesets a16x175 and b16x77 require the use of a set of Dropbox keys, the following module could provide those keys specifically to the named rulesets:
Code Block |
---|
language | javascript |
---|
theme | Confluence |
---|
|
ruleset b16x5 {
meta {
name "Dropbox keys"
description <<
These are the keys for testing. This file should not be on a publicly available URL
>>
key dropbox {
"app_key" : "<app key here>",
"app_secret" : "<app secret here>"
}
provide keys dropbox to a16x175, b16x77
}
} |
...