In a policy set, I setup the 2 following policies (applying on the URL pattern "*://app.example.com:*/*") :
- one that allows the GET to authenticated users
- one that allows the POST to authenticated users during a defined time window
Then I evaluate the policy decicison on that resource :
- during the time window in which the POST is allowed :
The decision states that the authenticated user is allowed to GET and POST and that decicison is valid until Fri 28 Oct 18:00:00 CEST 2016.
- during the time window in which the POST is not allowed :
Even though the authenticated user is not allowed any more to POST on the resource, I can see that he is still allowed to GET the resource.
Then I add a 3rd policy : allow DELETE to authenticated users that have an authentication level greater or equal to 2.
Here is the JSON definition :
I evaluate the policy decision to check what my authenticated user (with authentication level 0) is allowed to do on the resource. Here is the response I get :
No more action is allowed to the user ! Even though he should be allowed to GET (and POST if the evaluation is requested during the correct time window). However I notice that the ttl correspond to the time limit of my policy on "POST".
With this response, we have no choice that force the user to authenticate to an higher level even for GET or POST.