Logging & Debugging
-
A simple protocol for loggers used in OAuth2.
The
See moreOAuth2DebugLogger
is a simple implementation that logs to stdout. If you need more sophisticated logging, just adapt this protocol and set your logger on theOAuth2
instance you’re using.Declaration
Swift
public protocol OAuth2Logger
-
Basic logger that just prints to stdout.
See moreDeclaration
Swift
open class OAuth2DebugLogger : OAuth2Logger
-
Logging levels
See moreDeclaration
Swift
public enum OAuth2LogLevel : Int, CustomStringConvertible
extension OAuth2LogLevel: Comparable
-
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!
See moreDeclaration
Swift
open class OAuth2DebugURLSessionDelegate : NSObject, URLSessionDelegate