keycloak-scim/topics/policy/time-policy.adoc

54 lines
2.4 KiB
Text
Raw Normal View History

2016-06-05 22:17:31 +00:00
== Time-Based Policy
This type of policy allows you to define time conditions for your permissions.
To create a new Time-based policy, select the option *Time* in the dropdown located in the right upper corner of the permission listing.
.Add Time Policy
image:../../images/policy/create-time.png[alt="Add Time Policy"]
=== Configuration
2016-06-05 22:17:31 +00:00
* *Name*
+
A human-readable and unique string describing the policy. We strongly suggest that you use names that are closely related with your business and security requirements, so you
can identify them more easily and also know what they actually mean.
2016-06-05 22:17:31 +00:00
+
* *Description*
+
A string with more details about this policy.
2016-06-05 22:17:31 +00:00
+
* *Not Before*
+
Defines the time before which the policy MUST NOT be granted. Permission is granted only if the current date/time is after or equal to this value.
2016-06-05 22:17:31 +00:00
+
+
* *Not On or After*
+
Defines the time after which the policy MUST NOT be granted. Permission is granted only if the current date/time is before or equal to this value.
2016-06-05 22:17:31 +00:00
+
2016-09-08 22:58:55 +00:00
* *Day of Month*
+
Defines the day of month which the policy MUST be granted. You can also provide a range by filling the second field. In this case, permission is granted only if current day of month is between or equal to the two values you provided.
2016-09-08 22:58:55 +00:00
+
* *Month*
+
Defines the month which the policy MUST be granted. You can also provide a range by filling the second field. In this case, permission is granted only if current month is between or equal to the two values you provided.
2016-09-08 22:58:55 +00:00
+
* *Year*
+
Defines the year which the policy MUST be granted. You can also provide a range by filling the second field. In this case, permission is granted only if current year is between or equal to the two values you provided.
2016-09-08 22:58:55 +00:00
+
* *Hour*
+
Defines the hour which the policy MUST be granted. You can also provide a range by filling the second field. In this case, permission is granted only if current hour is between or equal to the two values you provided.
2016-09-08 22:58:55 +00:00
+
* *Minute*
+
Defines the minute which the policy MUST be granted. You can also provide a range by filling the second field. In this case, permission is granted only if current minute is between or equal to the two values you provided.
2016-09-08 22:58:55 +00:00
+
2016-06-05 22:17:31 +00:00
* *Logic*
+
The link:logic.html[Logic] of this policy to apply after the other conditions have been evaluated.
2016-09-08 22:58:55 +00:00
Permissions are only granted if all conditions are satisfied. {{book.project.name}} will perform an _AND_ based on the outcome of each condition.