Search code examples
macosmonomonomacloginviewsfauthorizationpluginview

Customize Login Screen Mac OSX (SFAuthorizationPluginView)


I'm trying to extend the login screen in MacOSX 10.9.1 (Mavericks). As I found out, this is possible by implementing a new authentication plugin and install it in to the authorization database.

I've downloaded the NameAndPassword example which shows how to implement the interface and overwrite / extend the SFAuthorizationPluginView. But the problem is that I can't build it under Mavericks. So I decided to download the second example which is called NullAuthPlugin. This one compiles but I didn't find out how to install it.

So my question one is, if there is a good and updated tutorial for this (TechNotes are form 2008-09-16)?

And question number two is, if this could be developed with C# (Xamarin.Mac / MonoMac) because I'm not very good in developing Objective-C / C / C++.

Thank you!


Solution

  • Well, the bugs have been reported to Apple multiple times but they didn't do anything about it so far. The simplest answer is: you need a patched version of the NameAndPassword plugin - the official one is broken. I put my fixed plugin on GitHub: https://github.com/skycocker/NameAndPassword

    It is important that you replace the

    <string>loginwindow:login</string>
    

    line in the authorization policy database with

    <string>NameAndPassword:invoke</string>
    

    Otherwise it won't log you in. I wouldn't figure this out without Merlin69 help.