OAuth2DebugURLSessionDelegate
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.
Declaration
Swift
let host: String
-
Designated initializer.
Declaration
Swift
public init(host: String)
Parameters
host
The host to which the exception should apply
-
Undocumented
Declaration
Swift
open func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (Foundation.URLSession.AuthChallengeDisposition, URLCredential?) -> Void)