Enumeration

AuthorizationFlags

The flags used to specify authorization options.

Declaration

typedef enum AuthorizationFlags : UInt32 {
    ...
} AuthorizationFlags;

Overview

These flags instruct the Security Server how to proceed with the function in which you pass them. You bitwise OR them together to specify more than one at a time. Set all unused bits to 0 to allow for future expansion.

Use these flags in calls to the AuthorizationCreate, AuthorizationFree, AuthorizationCopyRights, and AuthorizationCopyRightsAsync functions.

Topics

Type Properties

kAuthorizationFlagDefaults

An empty flag set that you use as a placeholder when you don't want any of the other flags.

kAuthorizationFlagInteractionAllowed

A flag that permits user interaction as needed.

kAuthorizationFlagExtendRights

A flag that permits the Security Server to attempt to grant the rights requested.

kAuthorizationFlagPartialRights

A flag that permits the Security Server to grant rights on an individual basis.

kAuthorizationFlagDestroyRights

A flag that instructs the Security Server to revoke authorization.

kAuthorizationFlagPreAuthorize

A flag that instructs the Security Server to preauthorize the rights requested.

kAuthorizationFlagNoData

Private flag. Do not use.

See Also

Authorization References

AuthorizationCreate

Creates a new authorization reference and provides an option to authorize or preauthorize rights.

AuthorizationFree

Frees the memory associated with an authorization reference.

AuthorizationRef

A pointer to an opaque authorization reference structure.

kAuthorizationEmptyEnvironment

A constant you use in functions with an environment parameter if you have no environment data to provide.