OAuth2AuthConfig

public struct OAuth2AuthConfig

Simple struct to hold settings describing how authorization appears to the user.

  • UI

    Sub-stuct holding configuration relevant to UI presentation.

    See more

    Declaration

    Swift

    public struct UI
  • Whether to use an embedded web view for authorization (true) or the OS browser (false, the default).

    Declaration

    Swift

    @available(*, deprecated, message: "This will be removed in v6.")
    public var authorizeEmbedded: Bool
  • Whether to automatically dismiss the auto-presented authorization screen.

    Declaration

    Swift

    public var authorizeEmbeddedAutoDismiss: Bool
  • Context information for the authorization flow:

    • iOS: The parent view controller to present from
    • macOS: An NSWindow from which to present a modal sheet or nil to present in a new window

    Declaration

    Swift

    public weak var authorizeContext: AnyObject?
  • ui

    UI-specific configuration.

    Declaration

    Swift

    public var ui: OAuth2AuthConfig.UI