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_idZoneId[optional]

Example