Custom MFA Authorization Plugin XIB Window Lacks Focus during reboot on macOS

I have enabled FileVault on macOS having a custom authorisation plugin , which will load our multi-factor authentication (MFA) window . This third-party custom authorisation plugin replaced loginwindow:login mechanism from authorisation db (system.login.console) .After these changes, during reboot, we observed that the focus isnt on our custom Xib window.We noticed that the custom Xib window is rendered on a completely black background . End user has to use mouse to click on the custom Xib window, so that the textbox gains its focus.

The possible solutions we have tried,

  1. Simulating mouse click
  2. Making Window to gain focus using makeKeyAndOrderFront

Steps to reproduce:

  1. Enable Filevault on the machine
  2. Remove loginwindow:login and add your custom authorisation plugin in its place with a textbox to capture password

3.Perform reboot of the machine 4.The custom xib window is rendered on a black window but the window doesnt gain focus. The user has to perform a mouse click on the window to gain its focus

Any help would be greatly appreciated on the above mentioned issue

You created two threads for very similar issues, this one and SF Authorization Plugin View Not Receiving Focus on macOS Tahoe 26.4.1. My question is: Is this issue also a 26.4 regression? That is, if you run the same test on, for example, macOS 26.2, do you see the same problem?

Share and Enjoy

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

No this is a separate issue and not linked to the thread https://developer.apple.com/forums/thread/825491. This was observed during reboot of the machine when File Vault is enabled and not in SFAuthorization flow.This has been observed since macOS 13.x and we continue to see the same until macOS 26.4.1.

Custom MFA Authorization Plugin XIB Window Lacks Focus during reboot on macOS
 
 
Q