open class OAuth2DebugURLSessionDelegate : NSObject, URLSessionDelegate
An URLSession delegate that allows you to use self-signed SSL certificates.
Doing so is a REALLY BAD IDEA, even in development environments where you can use real, free certificates that are valid a few months. Still, sometimes you’ll have to do this so this class is provided, but DO NOT SUBMIT your app using self-signed SSL certs to the App Store. You have been warned!
The host to allow a self-signed SSL certificate for.
let host: String
public init(host: String)
The host to which the exception should apply
open func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (Foundation.URLSession.AuthChallengeDisposition, URLCredential?) -> Void)