---
title: useExtendedAuthentication
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnprotocolipsec/useextendedauthentication
---

# useExtendedAuthentication

A flag indicating if extended authentication will be negotiated.

## Declaration

```swift
var useExtendedAuthentication: Bool { get set }
```

## Discussion

Discussion This authentication is in addition to the IKE authentication used to authenticate the endpoints of the IKE session. For IKE version 1, when this flag is set X-Auth authentication will be negotiated as part of the IKE session, using the username and passwordReference properties as the credential. For IKE version 2, when this flag is set EAP authentication will be negotiated as part of the IKE session, using the username, passwordReference, and/or identityReference properties as the credential depending on which EAP method the server requires.

## See Also

### Accessing IPSec properties

- [authenticationMethod](networkextension/nevpnprotocolipsec/authenticationmethod.md)
- [NEVPNIKEAuthenticationMethod](networkextension/nevpnikeauthenticationmethod.md)
- [sharedSecretReference](networkextension/nevpnprotocolipsec/sharedsecretreference.md)
- [localIdentifier](networkextension/nevpnprotocolipsec/localidentifier.md)
- [remoteIdentifier](networkextension/nevpnprotocolipsec/remoteidentifier.md)
