macOS ScreenSaver SFAuthorizationPluginView

Hi Team,

Thank you for your Response and Shared example AuthorizationPlugins.

As Stated in README file of LoginUIAuthPlugin. The changes are Reflected in LoginScreen only , Not effected at Screen Saver , I followed This Steps to Configure the LoginUIAuthPlugin.bundle file .

Steps -1: Open /Library/Security/SecurityAgentPlugins here i configured The .bundle file.

Step -2: security authorizationdb read system.login.console > ~/Desktop/auth.plist

Step-3: vim /Users/rahul/Desktop/auth.plist

After Editing the auth.plist. it looks like Below.

?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>class</key> <string>evaluate-mechanisms</string> <key>comment</key> <string>Login mechanism based rule. Not for general use, yet.</string> <key>created</key> <real>747297008.28959298</real> <key>mechanisms</key> <array> <string>builtin:prelogin</string> <string>builtin:policy-banner</string> <string>LoginUIAuthPlugin:login</string> <string>builtin:login-begin</string> <string>builtin:reset-password,privileged</string> <string>loginwindow:FDESupport,privileged</string> <string>builtin:forward-login,privileged</string> <string>builtin:auto-login,privileged</string> <string>builtin:authenticate,privileged</string> <string>PKINITMechanism:auth,privileged</string> <string>builtin:login-success</string> <string>loginwindow:success</string> <string>HomeDirMechanism:login,privileged</string> <string>HomeDirMechanism:status</string> <string>MCXMechanism:login</string> <string>CryptoTokenKit:login</string>

Step -4 : security authorizationdb write system.login.console < ~/Desktop/auth.plist

Up to Here The Changes are Effected in LoginScreen.

**For Screen Saver **

Step-1: security authorizationdb read system.login.screensaver > ~/Desktop/screen.plist

**step-2:vim /Users/rahul/Desktop/screen.plist **

After Editing Plist file looks like below.

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>class</key> <string>rule</string> <key>comment</key> <string>The owner or any administrator can unlock the screensaver, set rule to "authenticate-session-owner-or-admin" to enable SecurityAgent.</string> <key>created</key> <real>747297008.28959298</real> <key>modified</key> <real>747297008.28959298</real> <key>rule</key> <array> <string>authenticate-session-owner-or-admin</string> </array> <key>version</key> <integer>1</integer> </dict> </plist>

Step-3. security authorizationdb write system.login.screensaver < ~/Desktop/screen.plist

Step-4.: sudo defaults write /Library/Preferences/com.apple.loginwindow screenUnlockMode -int 2

Changes Are Not effected same as loginscreen. it is showing small window as alert . , I want same as loginscreen, Please support to implement this . Thanks in Advance.

Please Find The Attached Screen shots of screensaver , Terminal ScreenShot and Login Screen,

and Shared AuthPlugins.

macOS ScreenSaver SFAuthorizationPluginView
 
 
Q