Function

AuthorizationCopyInfo

Retrieves supporting data such as the user name and other information gathered during evaluation of authorization.

Declaration

OSStatus AuthorizationCopyInfo(AuthorizationRef authorization, AuthorizationString tag, AuthorizationItemSet * _Nullable *info);

Parameters

authorization

An authorization reference referring to the authorization session.

tag

An AuthorizationString specifying the type of data the Security Server should return. Pass NULL to retrieve all available information.

info

A pointer to an authorization set the Security Server creates. On return, this set contains side-band authorization data. When this set is no longer needed, free the memory associated with it by calling the function AuthorizationFreeItemSet.

Return Value

Discussion

An authorization plug-in can store the results of an authentication operation by calling the SetContextValue function. You can use the AuthorizationCopyInfo function to retrieve this information.

See Also

Rights and Credentials

AuthorizationCopyRights

Authorizes and preauthorizes rights synchronously.

AuthorizationCopyRightsAsync

Authorizes and preauthorizes rights asynchronously.

AuthorizationAsyncCallback

A block used as a callback for the asynchronous version of copying authorization rights.

AuthorizationString

A zero-terminated string in UTF-8 encoding.

Authorization Rights Flags

Recognize the values the Security Server sets in an authorization item’s flag field.