P2 OAuth2 by p2

OAuth2 framework for macOS and iOS, written in Swift.

oauth2oauth2-flowoauth2-clientiosmacostvos
Verdict 67/100 health $4.13/mo cheapest, hetzner 3/5 setup difficulty Last release 6.2 years ago

Self-host P2 OAuth2 on hetzner CAX11 for $4.13/mo.

Health score
67 /100
6-dim composite
Self-hosts from
$4.13 /mo
hetzner · CAX11
Difficulty
3 /5
External DB / setup
GitHub stars
1.2k
281 forks

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.

activity
80
maturity
86
community
81
security
70
sustainability
53
adoption
29

Adoption signals

Real-world usage data, pulled from each registry. The bigger the numbers, the more battle-tested the project.

SignalValueSource
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 age11.9 yearssince Jun 2014
Last commit2.0 years agoMay 16, 2024
Releases shipped13last: 6.2 years ago

Self-hosting cost across providers

Detected requirements: 4GB RAM, 40GB disk minimum. Cheapest plan per provider that meets the requirement.

ProviderPlanSpecsMonthly
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

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.

Frequently asked questions

Last verified . Data refreshes every 30 minutes.