🍦 SwiftServe Get

Menu / network.oauth

Can Swift packages do oauth flows?

also known as: oauth2 · authorization code flow · sign in with

PackageiOSmacOSwatchOStvOSvisionOSLinuxCatalyst
oauthswift as of 2.2.0
Details

serves it · confidence 0.90 · as of 2.2.0

  • OAuth2Swift.authorize
    Sources/OAuth2Swift.swift:97
    View the line on GitHub →
    OAuth2 authorization-code flow entry point; unconditional decl, digest-present on iOS
  • OAuth1Swift.authorize
    Sources/OAuth1Swift.swift:76
    View the line on GitHub →
    OAuth1 three-legged flow entry point; unconditional decl
  • ASWebAuthenticationURLHandler
    #if targetEnvironment(macCatalyst) || os(iOS)
    Sources/Handler/ASWebAuthenticationURLHandler.swift:14
    View the line on GitHub →
    ASWebAuthenticationSession-based login UI handler, digest-present on iOS

serves it · confidence 0.85 · as of 2.2.0

serves it · confidence 0.70 · as of 2.2.0

  • OAuth2Swift.authorize
    Sources/OAuth2Swift.swift:97
    View the line on GitHub →
    Unconditional decl, digest-present on watchOS
  • OAuth1Swift.authorize
    Sources/OAuth1Swift.swift:76
    View the line on GitHub →
    Unconditional decl, digest-present on watchOS
  • OAuthViewController
    #if !(os(iOS) || os(tvOS)) && os(watchOS)
    Sources/Handler/OAuthWebViewController.swift:16
    View the line on GitHub →
    Explicit watchOS branch (OAuthViewController = WKInterfaceController); digest-present on watchOS only

serves it · confidence 0.80 · as of 2.2.0

  • OAuth2Swift.authorize
    Sources/OAuth2Swift.swift:97
    View the line on GitHub →
    Unconditional decl, digest-present on tvOS
  • OAuth1Swift.authorize
    Sources/OAuth1Swift.swift:76
    View the line on GitHub →
    Unconditional decl, digest-present on tvOS
  • OAuthViewController
    #if os(iOS) || os(tvOS)
    Sources/Handler/OAuthWebViewController.swift:13
    View the line on GitHub →
    Explicit tvOS branch of the web view controller layer; digest-present on tvOS
?

not verified yet · confidence 0.40 · as of 2.2.0

  • OAuth2Swift
    Sources/OAuth2Swift.swift:11
    View the line on GitHub →
    Core class is unconditional and digest-present on visionOS
  • OAuthViewController
    #if os(iOS) || os(tvOS)
    Sources/Handler/OAuthWebViewController.swift:13
    View the line on GitHub →
    gaps mark visionOS absent for every OAuthViewController typealias branch (iOS/tvOS, watchOS, OSX); the unconditional OAuthWebViewController subclasses OAuthViewController, so a visionOS build of 2.2.0 is doubtful — conflicting evidence, status left unknown
?

not verified yet · confidence 0.40 · as of 2.2.0

  • OAuth2Swift
    Sources/OAuth2Swift.swift:11
    View the line on GitHub →
    Core class is unconditional and digest-present on linux; Package.swift appends swift-crypto under os(Linux), signalling Linux intent (no platforms block to cite as manifestPlatforms)
  • OAuthViewController
    #if os(iOS) || os(tvOS)
    Sources/Handler/OAuthWebViewController.swift:13
    View the line on GitHub →
    No OAuthViewController typealias branch covers linux while the unconditional OAuthWebViewController subclasses it; Sources also lack a FoundationNetworking import for URLSession — Linux build unverified, status left unknown

serves it · confidence 0.80 · as of 2.2.0

  • OAuth2Swift.authorize
    Sources/OAuth2Swift.swift:97
    View the line on GitHub →
    Unconditional decl, digest-present on macCatalyst
  • ASWebAuthenticationURLHandler
    #if targetEnvironment(macCatalyst) || os(iOS)
    Sources/Handler/ASWebAuthenticationURLHandler.swift:14
    View the line on GitHub →
    Login UI handler explicitly guarded for macCatalyst; digest-present on macCatalyst

✓ serves it · ◐ with conditions · ✕ not served (proven) · ? not verified yet — hover any verdict for the receipt, click to pin it