Skip to content

Commit b17bbf7

Browse files
authored
Clarifying how SIF is affected by PRT
1 parent f92da11 commit b17bbf7

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

articles/active-directory/conditional-access/howto-conditional-access-session-lifetime.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,40 @@ Sign-in frequency previously applied to only to the first factor authentication
5858

5959
### User sign-in frequency and device identities
6060

61-
On Azure AD joined, hybrid Azure AD joined, or Azure AD registered devices, unlocking the device or signing in interactively will satisfy the sign-in frequency policy. In the following two examples user sign-in frequency is set to 1 hour:
61+
On Azure AD joined and hybrid Azure AD joined devices, unlocking the device, or signing in interactively will only refresh the Primary Refresh Token (PRT) every 4 hours. The last refresh timestamp recorded for PRT compared with the current timestamp must be within the time allotted in SIF policy for PRT to satisfy SIF and grant access to a PRT that has an existing MFA claim. On [Azure AD registered devices](https://learn.microsoft.com/en-us/azure/active-directory/devices/concept-azure-ad-register), unlock/sign-in would not satisfy the SIF policy because the user is not accessing an Azure AD registered device via an Azure AD account. However, the [Azure AD](https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-desktop-acquire-token-wam) WAM plugin can refresh a PRT during native application authentication using WAM.
6262

63-
Example 1:
63+
Note: The timestamp captured from user log-in is not necessarily the same as the last recorded timestamp of PRT refresh because of the 4-hour refresh cycle. The case when it is the same is when a PRT has expired and a user log-in refreshes it for 4 hours. In the following examples, assume SIF policy is set to 1 hour and PRT is refreshed at 00:00.
64+
65+
Example 1: *when you continue to work on the same doc in SPO for an hour*
6466

6567
- At 00:00, a user signs in to their Windows 10 Azure AD joined device and starts work on a document stored on SharePoint Online.
6668
- The user continues working on the same document on their device for an hour.
6769
- At 01:00, the user is prompted to sign in again based on the sign-in frequency requirement in the Conditional Access policy configured by their administrator.
6870

69-
Example 2:
71+
Example 2: *when pausing work with a background task running in the browser, then interacting again after the SIF policy time has passed*
7072

71-
- At 00:00, a user signs in to their Windows 10 Azure AD joined device and starts work on a document stored on SharePoint Online.
73+
- At 00:00, a user signs in to their Windows 10 Azure AD joined device and starts to upload a document to SharePoint Online.
74+
- At 00:10, the user gets up and takes a break locking their device. The background upload continues to SharePoint Online.
75+
- At 02:45, the user returns from their break and unlocks the device. The background upload shows completion.
76+
- At 02:45, the user is prompted to sign in when they interact again based on the sign-in frequency requirement in the Conditional Access policy configured by their administrator since the last sign-in happened at 00:00.
77+
78+
If the client app (under activity details) is a Browser, we defer sign in frequency enforcement of events/policies on background services until the next user interaction.   
79+
80+
Example 3: *with 4-hour refresh cycle of primary refresh token from unlock*
81+
82+
Scenario 1 - User returns within cycle
83+
84+
- At 00:00, a user signs into their Windows 10 Azure AD joined device and starts work on a document stored on SharePoint Online.
7285
- At 00:30, the user gets up and takes a break locking their device.
7386
- At 00:45, the user returns from their break and unlocks the device.
74-
- At 01:45, the user is prompted to sign in again based on the sign-in frequency requirement in the Conditional Access policy configured by their administrator since the last sign-in happened at 00:45.
87+
- At 01:00, the user is prompted to sign in again based on the sign-in frequency requirement in the Conditional Access policy configured by their administrator, 1 hour after the initial sign-in.
7588

76-
Example 3: If the client app (under activity details) is a Browser, we defer sign in frequency enforcement of events/policies on background services until the next user interaction.
89+
Scenario 2 - User returns outside cycle
7790

78-
- At 00:00, a user signs in to their Windows 10 Azure AD joined device and starts to upload a document to SharePoint Online.
79-
- At 00:10, the user gets up and takes a break locking their device. The background upload continues to SharePoint Online.
80-
- At 02:45, the user returns from their break and unlocks the device. The background upload shows completion.
81-
- At 02:45, the user is prompted to sign in when they interact again based on the sign-in frequency requirement in the Conditional Access policy configured by their administrator since the last sign-in happened at 00:00.
91+
- At 00:00, a user signs into their Windows 10 Azure AD joined device and starts work on a document stored on SharePoint Online.
92+
- At 00:30, the user gets up and takes a break locking their device.
93+
- At 04:45, the user returns from their break and unlocks the device.
94+
- At 05:45, the user is prompted to sign in again based on the sign-in frequency requirement in the Conditional Access policy configured by their administrator, 1 hour after the PRT was refreshed at 04:45 (over 4hrs after the initial sign-in at 00:00).
8295

8396
### Require reauthentication every time
8497

0 commit comments

Comments
 (0)