Slide 81
Slide 81 text
URLSession
21
func urlSession(
_ session: URLSession,
didReceive challenge: URLAuthenticationChallenge,
completionHandler: @escaping
(URLSession.AuthChallengeDisposition,URLCredential?) -> Void) {
let serverTrust: SecTrust = challenge.protectionSpace.serverTrust
...
completionHandler(.cancelAuthenticationChallenge, nil)
}