Skip to main content

DateTimeContext

The DateTimeContext context specifies an allowed or disallowed date or time range. Only a date range or a time range can be specified. Risk is applied to the authentication if the current time is outside an allowed range or inside a disallowed range. A date range specifies a start and end date. For example 2019/01/01 to 2019/03/01. A time range species a start and end time and days of the week. For example Monday to Friday, 8am to 5pm.

Properties

NameTypeDescriptionNotes
allowed_date_timeboolIf true, the startDateTime and endDateTime define the allowed range. If false, the startDateTime and endDateTime define the denied range.[optional]
allowed_timeboolIf true, the startTime and endTime define the allowed time range. If false, the startTime and endTime define the denied time range.[optional]
deny_accessboolIf true, the resource rule evaluating the context will return Access Denied.
end_date_timedatetimeIf specifying a date range, the end date of the range.[optional]
end_timestrIf specifying a time range, the end time of the range. The value should be of the form hh:mm:ss[optional]
risk_pointintThe number of risk points that apply if this context applies.
start_date_timedatetimeIf specifying a date range, the start date of the range.[optional]
start_timestrIf specifying a time range, the start time of the range. The value should be of the form hh:mm:ss[optional]
week_daysList[str]If specifying a time range, the days of the week to which the time range will apply.[optional]
zone_idstrThe time zone or fixed offset in which dates and times are interpreted. For example, a value like -05:00 to specify a fixed offset of 5 hours behind UTC, or a time zone ID like America/New_York to account for regional time zone rules, including daylight saving time. Set this value if you want to interpret times (e.g., 8 AM to 5 PM) in the customer's local time zone rather than the timezone of the service. If not specified, the default is Z (UTC).[optional]

Example