Does ASAuthorizationPasswordProvider work on macOS? I've watched WWDC 2019 session 516 and I'm using the code that's presented there, but I can't get it to work on macOS. The same code works fine on iOS. It's not clear from the video if this is supported in AppKit apps, or if it's only for Catalyst apps.
This is my code:
let authController = ASAuthorizationController(authorizationRequests: [
ASAuthorizationPasswordProvider().createRequest()
])
authController.delegate = self
authController.presentationContextProvider = self
authController.performRequests()
I get this message when I run it on macOS:
[core] Authorization failed: Error Domain=AKAuthenticationError Code=-7089 "(null)"
The error in the ASAuthorizationControllerDelegate is
Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1000 "(null)"
My bundle id, entitlements and server are configured correctly.
Thanks,
Steven