Or

This section describes features that are coming in 4.0

The or condition lets you perform a logical OR operation across multiple sub-conditions.

Configuration

{
    "type": "or",
    "config": {
        "conditions": [
            ... subconditions
        ]
    }
}

Sample #1

This policy document allows a principal to read content from the /products and /images folders.

{
    "title": "My Sample Policy",
    "statements": [{
        "action": "grant",
        "roles": ["consumer"],
        "conditions": [{
            "type": "or",
            "config": {
                "conditions": [{
                    "type": "path",
                    "config": {
                        "path": "^/products/.*"
                    }
                }, {
                    "type": "path",
                    "config": {
                        "path": "^/images/.*"
                    }
                }]
            }
        }]
    }]
}