Screen Not Locking with authenticate-session-owner-or-admin in Screensaver
I modified the system.login.screensaver rule in the authorization database to use authenticate-session-owner-or-admin 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:
- 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-session-owner-or-admin in the screensaver rule?