Re: [xacml] Question on Time Extensions

From
David Brossard <>
Date
2019-10-03T19:53:39+00:00
ID
CABSq=NLGvdQMOJb_D9U_q9nDK3Um=G+ed8y+yd=-
Thread
Re: [xacml] Question on Time Extensions
Hi Hal,

I think there is a need for a function that can take a range of weekdays (Monday, Friday) and compare that to the current date's (or any date) day of the week. Do we have that today? For instance, what if you wanted to write a policy that states:

Permit on Mondays and Fridays

The only way to do so today would be to write a custom function that would extract the day of the week the date is on and then compare to these two.

Steven, is that what you're trying to do?

David

On Thu, Oct 3, 2019 at 2:42 PM Hal Lockhart <> wrote:

Steven,

I have finally taken a careful look at the profile. I understand the need for the timezone attribute to be in multiple categories.

However, I am still stuck on the 
"equality rule for dayOfWeek" issue.

I am not sure what functionality is desired here. Given two datetimes normalized to the same timezone, determining if they are both in the same day of week or not seems straight forward to me. What am I missing?

It also seems like the same procedure would let you compare a normalized datetime to a dayOfWeek and determine if the former falls in the latter.

Help me out here.

Hal

	

        
		Virus-free. www.avg.com
		
	

-- 

David Brossard
VP of Customer Relations

+1Â312 774-9163

+1 502 922 6538

+46(0)760 25 85 75

Axiomatics |Â525 W. Monroe Suite 2310 | Chicago 60661

Support:Âhttps://support.axiomatics.comÂ
Web:Âhttp://www.axiomatics.com

We've recently updated our privacy policy.ÂYou can view it here.

Axiomatics BlogÂ|ÂEventsÂ|ÂResources, Webinars & Whitepapers

Connect with us onÂLinkedInÂ|ÂTwitterÂ|ÂGoogle +Â|ÂFacebookÂ|ÂYouTubeÂ|ÂStackoverflow