Function

AuthorizationCopyInfo(_:_:_:)

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

Declaration

func AuthorizationCopyInfo(_ authorization: AuthorizationRef, _ tag: AuthorizationString?, _ info: UnsafeMutablePointer<UnsafeMutablePointer<AuthorizationItemSet>?>) -> OSStatus

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