Screen Not Locking with authenticate in Screensaver

I modified the system.login.screensaver rule in the authorization database to use "authenticate" instead of "use-login-window-ui" to display a custom authentication plugin view when the screensaver starts or the screen locks.

However, I noticed an issue when the "Require Password after Display is Turned Off" setting is set to 5 minutes in lock screen settings:

If I close my Mac’s lid and reopen it within 5 minutes, my authentication plugin view is displayed as expected.

However, the screen is not in a locked state—the desktop remains accessible, and the black background that typically appears behind the lock screen is missing.

This behavior differs from the default lock screen behavior, where the screen remains fully locked, and the desktop is hidden.

Has anyone encountered this issue before? Is there a way to ensure the screen properly locks when using authenticate in the screensaver rule?

Can you reproduce this with the QAuthPlugins > LoginUIAuthPlugin code?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Screen Not Locking with authenticate in Screensaver
 
 
Q