Authorizes and preauthorizes rights asynchronously.
- macOS 10.7+
An authorization reference referring to the authorization session.
A pointer to a set of authorization rights you create. Pass NULL if the application requires no rights at this time.
Data used when authorizing or preauthorizing rights. Not used in OS X v10.2 and earlier. In macOS 10.3 and later, you can pass icon or prompt data to be used in the authentication dialog box. In macOS 10.4 and later, you can also pass a user name and password in order to authorize a user without displaying the authentication dialog box. Possible values for this parameter are listed in Security.framework/Headers/AuthorizationTags.h. The data passed in this parameter is not stored in the authorization reference; it is used only during authorization. If you are not passing any data in this parameter, pass the constant
Authorization Empty Environment
A bit mask for specifying authorization options. Use one of the options sets defined for the flags parameter in the
Copy Rights(_: _: _: _: _:)
A callback that you provide for the function to call when it finishes asynchronously. Use a function with the signature defined by
See the discussion for
Authorization. This function behaves similarly, except that it performs its operations asynchronously and calls back to you upon completion.