URLSessionTaskDelegate authentication challenge function not being called
I’m trying to connect to a smart switch using URLSession. The switch uses http Digest Authentication which should trigger a call to delegate function urlSession(_: URLSession, task: URLSessionTask, didReceive: URLAuthenticationChallenge ...
, but that function is never called.