---
title: "verifyExtended(withAuthenticationType:authenticationItems:continueItems:context:)"
framework: opendirectory
role: symbol
role_heading: Instance Method
path: "opendirectory/odrecord/verifyextended(withauthenticationtype:authenticationitems:continueitems:context:)"
---

# verifyExtended(withAuthenticationType:authenticationItems:continueItems:context:)

Verifies the credentials for interaction with the record’s node using other types of authentication available to Open Directory.

## Declaration

```swift
func verifyExtended(withAuthenticationType inType: String!, authenticationItems inItems: [Any]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>!, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>!) throws
```

## Parameters

- `inType`: The authentication type.
- `inItems`: An array of NSString or NSData objects to be used in the authentication process.
- `outItems`: An array of NSData objects returned from the authentication process, if any are returned; nil otherwise.
- `outContext`: The proper context if the authentication attempt requires a context; nil otherwise. If not nil, then more calls must be made with the Context to continue the authentication.

## Discussion

Discussion note: In Swift, this method returns Void and is marked with the throws keyword to indicate that it throws an error in cases of failure. You call this method in a try expression and handle any errors in the catch clauses of a do statement, as described in Error Handling in The Swift Programming Language and About Imported Cocoa Error Parameters.

## See Also

### Managing Authentication

- [changePassword(_:toPassword:)](opendirectory/odrecord/changepassword(_:topassword:).md)
- [setNodeCredentials(_:password:)](opendirectory/odrecord/setnodecredentials(_:password:).md)
- [setNodeCredentialsWithRecordType(_:authenticationType:authenticationItems:continueItems:context:)](opendirectory/odrecord/setnodecredentialswithrecordtype(_:authenticationtype:authenticationitems:continueitems:context:).md)
- [verifyPassword(_:)](opendirectory/odrecord/verifypassword(_:).md)
