# OAuthSwift/OAuthSwift

Swift based OAuth library for iOS

Repository: https://github.com/OAuthSwift/OAuthSwift
Canonical: https://ross.abutalabs.com/products/oauthswift
Language: Swift
License: MIT
License Family: permissive
Topics: oauthswift, oauth, oauth2-client, oauth-client, oauth1, oauth2, oauth2-authentication
Last push: 2024-05-15T16:46:29+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4449, "days_push": 840, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3331, forks 589 (observed 2026-08-28T04:07:56.599568+00:00)

## What it is
OAuthSwift is a Swift framework implementing OAuth 1.0 and OAuth 2.0 client authentication for iOS and macOS apps. It provides URL-scheme-based callback handling and works with many providers like Twitter, GitHub, Google, Facebook, and Slack.

## Use cases
- add oauth login to an ios app
- authenticate with twitter from swift
- oauth2 client library for ios
- handle oauth callback url in uikit app
- sign in with github on macos
- oauth1 and oauth2 support in swift

## When to choose
- building an iOS or macOS app in Swift that needs OAuth 1.0 or 2.0 sign-in
- you want a mature, MIT-licensed Swift OAuth client installable via CocoaPods, Carthage, or SPM
- you need callback handling for both AppDelegate and UISceneDelegate flows

## When to avoid
- building for Android, web, or non-Apple platforms
- you need OpenID Connect or full identity-provider features beyond OAuth token flows
- starting a brand-new project where Apple's built-in AuthenticationServices (Sign in with Apple, ASWebAuthenticationSession) may suffice

## Facets
- artifact type: library
- maturity: maintenance
- function: auth, http-client, sdk
- domain: security, mobile-development, web-development, developer-tools
- platform: -
- tags: oauth1, oauth2, authentication, swift-framework, cocoapods, carthage, spm, ios, macos, swift

## Member repositories
- OAuthSwift/OAuthSwift (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.599568+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:41:42.496730+00:00, confidence not recorded.
  - readme: https://github.com/OAuthSwift/OAuthSwift (fetched 2026-08-28T04:07:56.599568+00:00, sha 185298171168)
- Data as of 2026-08-30T08:39:29.467469+00:00.
