Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
scoped_key = Keen::ScopedKey.new('KEEN_MASTER_KEY', allowed_operations: ["read"], filters: [{ # master_key should be a variable that contains your Keen master key
'property_name' => 'company.id',
'operator' => 'eq',
'property_value' => current_company.id # current_user.id should be a variable that contains the customer ID
}]).encrypt!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment