P2 OAuth2 by p2
OAuth2 framework for macOS and iOS, written in Swift.
About P2 OAuth2
From the project's README at github.com/p2/OAuth2. Lightly cleaned for readability; for the full source see the upstream repo.
OAuth2 frameworks for macOS, iOS and tvOS written in Swift 5. ⤵ Installation Usage [ Sample macOS app][sample] (with data loader examples) Technical Documentation
OAuth2 requires Xcode 12.4, the built framework can be used on OS X 10.15 or iOS 12 and later. Happy to accept pull requests, please see CONTRIBUTING.md Swift Version
Since the Swift language is constantly evolving I have adopted a versioning scheme mirroring Swift versions: the framework version's first two digits are always the Swift version the library is compatible with, see releases. Code compatible with brand new Swift versions are to be found on a separate feature branch named appropriately.
To use OAuth2 in your own code, start with in your source files.
Health score breakdown
6-dimension composite. See methodology for formula and weights.
Adoption signals
Real-world usage data, pulled from each registry. The bigger the numbers, the more battle-tested the project.
| Signal | Value | Source |
|---|---|---|
| GitHub stars | 1.2k | github.com/p2/OAuth2 |
| GitHub forks | 281 | github.com/p2/OAuth2 |
Release & maintenance
Is this project actively maintained, or about to die? Check the recency of last commit and last release.
| Project age | 11.9 years | since Jun 2014 |
| Last commit | 2.0 years ago | May 16, 2024 |
| Releases shipped | 13 | last: 6.2 years ago |
Self-hosting cost across providers
Detected requirements: 4GB RAM, 40GB disk minimum. Cheapest plan per provider that meets the requirement.
| Provider | Plan | Specs | Monthly | |
|---|---|---|---|---|
| hetzner | CAX11 | 2c · 4GB · 40GB | $4.13 USD | Deploy → |
| vultr | VC2 | 1c · 1GB · 25GB | $5 USD | Deploy → |
| linode | Nanode 1GB | 1c · 1GB · 25GB | $5.12 USD | Deploy → |
| digitalocean | Basic Regular 1GB | 1c · 1GB · 25GB | $6 USD | Deploy → |
What people say on Hacker News
- As a community we need to understand that MCP is not needed
- Show HN: Mach Triage – A local-first desktop client for your ticket queue
- Linear's MCP server accepts HTTP:// redirect URIs for confidential OAuth clients
- ConsentFix v3 attacks target Azure with automated OAuth abuse
- Ask HN: GitHub flagged my org two weeks ago. No reason given, no appeal response
Ready to self-host P2 OAuth2?
Spin up a hetzner CAX11 (4GB RAM, 40GB disk) for $4.13/mo and follow the project's official install docs.
Data last refreshed May 7, 2026.
Similar open-source projects
Projects in our directory that replace the same SaaS or share topics with P2 OAuth2.