validate_auth_descriptor_rules

Analyze the rules before assigning them to an auth descriptor, to check that they haven't already expired and that the values are sensible.

Can only be called from an operation.

Throws "INVALID RULES" when there are more than the max_rules configured in the chromia.yml file.

Throws "EXPIRED" when the rule set has expired.

Throws when rules is not the valid GTV representation of a rule.

Parameters

rules

the rules to analyze

See also

rule_expression

for a definition of active and expired rules.

validate_rule

for a definition of sensible values.

account_auth_descriptor.rules

for the list of valid GTV representations of rules.