<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKNavigationDelegate/webView(_:authenticationChallenge:shouldAllowDeprecatedTLS:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WKNavigationDelegate(im)webView:authenticationChallenge:shouldAllowDeprecatedTLS:"
  },
  "title" : "webView(_:authenticationChallenge:shouldAllowDeprecatedTLS:)"
}
-->

# webView(_:authenticationChallenge:shouldAllowDeprecatedTLS:)

Asks the delegate whether to continue with a connection that uses a deprecated version of TLS.

```
optional func webView(_ webView: WKWebView, authenticationChallenge challenge: URLAuthenticationChallenge, shouldAllowDeprecatedTLS decisionHandler: @escaping @MainActor @Sendable (Bool) -> Void)
```

## Parameters

`webView`

The web view that receives the authentication challenge.

`challenge`

The authentication challenge.

`decisionHandler`

The completion handler block to execute with the decision. This handler has no return value and takes the following parameter:

- decision: A Boolean value that indicates whether to continue to use a deprecated version of TLS. Specify <doc://com.apple.documentation/documentation/Swift/true> to continue, or <doc://com.apple.documentation/documentation/Swift/false> to reject the connection.

## Discussion

If you don’t implement this method, the web view uses system settings to determine whether to allow the use of deprecated versions of TLS.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)