Skip to content

Continuation Q&A: Policy Evaluation and Rule Binding #2359

Discussion options

You must be logged in to vote

The problem is that (due to the typo), the constraint type is different from the binding, which means, you are binding to a non-existent constraint, thus I'm pretty sure your evaluation function (PolicyVCAuthorizationFunction) won't get executed.

You are effectively attempting to evaluate a policy with no function to evaluate it, which of course returns true. That is by design, because not every rule of every policy is relevant in every context (otherwise every policy would always have to be evaluated by every function).

Making sure that a policy is formulated correctly, and that it gets properly evaluated etc. should be handled through testing.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@joelweihrauch
Comment options

@paullatzelsperger
Comment options

@paullatzelsperger
Comment options

Answer selected by paullatzelsperger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants