Okta Desktop MFA Does Not Prompt When Unlocking a Computer
Last Updated:
Overview
When the MFA grace period registry key, MFAGracePeriodInMinutes, is set too high, users are not prompted for Desktop MFA as frequently as expected when unlocking a Windows computer.
By default, the grace period is set to 60 minutes, meaning users who unlock their computer within that window are not prompted again. Modifying the MFAGracePeriodInMinutes registry key to a lower value or zero resolves the issue.
Applies To
- Okta Identity Engine (OIE)
- Desktop Multi-Factor Authentication (MFA)
- Windows Operating System (OS)
Cause
The MFAGracePeriodInMinutes registry key defines the length of a grace period, in minutes, during which a user is not required to complete an MFA prompt after locking the computer. When the default value is 60 minutes, users who unlock their computer within 60 minutes of locking it are not prompted for MFA again, producing fewer prompts than expected.
Solution
How is the Desktop MFA prompt frequency configured?
The MFAGracePeriodInMinutes registry key is located in HKLM\Software\Policies\Okta\Okta Device Access. Modify this key using PowerShell, regedit, a Group Policy Object (GPO), or a Mobile Device Management (MDM) solution to control how frequently users are prompted for Desktop MFA.
- To prompt users more frequently, set
MFAGracePeriodInMinutesto a value smaller than60. - To prompt users every time they unlock the computer with no grace period, set
MFAGracePeriodInMinutesto0.
NOTE: The grace period applies only when locking the computer. Switching user accounts or restarting the computer prompts users to verify their identity using MFA regardless of the grace period value.
How can the registry key be updated using PowerShell?
Review the following example PowerShell command that updates the registry key to require MFA on every unlock attempt. To run the command, PowerShell will need to be ran as Administrator.
reg add "hklm\software\Policies\Okta\Okta Device Access" /f /v MFAGracePeriodInMinutes /t REG_DWORD /d 0
NOTE: Running the Okta Verify installer a second time with command-line parameters does not change the registry key parameters. To change Okta Verify parameters, use PowerShell, regedit, GPO, or an MDM to update key values.
