Contents

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 nil 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(_:).

Mentioned in

Return Value

A result code. See Authorization Services Result Codes.

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.