Closed mmoayyed closed 11 years ago
Now we could revisit this for potential inclusion in 1.9
. Once again, what would it look like? :-)
So, I am thinking that the delegator and the evalator need to be separate and pluggable. As in:
We would then write various impls of the evaluator, one that is IP-based maybe.
So for instance, the use case might be that if the evaluator (that is IP-based) matches a particular pattern out of the http request object, (one that perhaps indicates a public workstation) the evaluator returns true. Then, the delegator would base that request of a plugged in ticket expirationly policy that says, expire tickets immediately.
The evalutor needs to be pluggable with various impls. The inner delegated-to ticket expiration policies also need to be pluggable and wired in.
Explore the possibility of defining a composite expiration policy that acts based on the user's IP address and can delegate to inner policies based on configurable pattern/rule