Logging & Debugging

  • A simple protocol for loggers used in OAuth2.

    The OAuth2DebugLogger is a simple implementation that logs to stdout. If you need more sophisticated logging, just adapt this protocol and set your logger on the OAuth2 instance you’re using.

    See more

    Declaration

    Swift

    public protocol OAuth2Logger
  • Basic logger that just prints to stdout.

    See more

    Declaration

    Swift

    open class OAuth2DebugLogger : OAuth2Logger
  • Logging levels

    See more

    Declaration

    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 more

    Declaration

    Swift

    open class OAuth2DebugURLSessionDelegate : NSObject, URLSessionDelegate