Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def generate_keenio_read_key(self):
return scoped_keys.encrypt(settings.KEEN['public']['master_key'], options={
'filters': [{
'property_name': 'node.id',
'operator': 'eq',
'property_value': str(self._id)
}],
'allowed_operations': ['read']
})
def generate_keenio_read_key(self):
return scoped_keys.encrypt(settings.KEEN['public']['master_key'], options={
'filters': [{
'property_name': 'node.id',
'operator': 'eq',
'property_value': str(self._id)
}],
'allowed_operations': ['read']
})