Repository navigation
0.1.0
First release of PassportKit, an OAuth 2.0 client library for Apple platforms (macOS 14, iOS 17, tvOS 17, watchOS 10, visionOS 1).
Highlights
- Grants: authorization code with PKCE (RFC 7636, RFC 9207
iss), device authorization (RFC 8628), refresh, client credentials, token exchange (RFC 8693) with resource indicators (RFC 8707), revocation (RFC 7009), metadata discovery (RFC 8414). TokenManager: one session per app with refresh-token rotation handled safely (single refresh lane, persist before use, coalesced requests), token targets for resource-bound tokens, and an acceptance policy that turns "200 with narrowed scope" into.resourceDeniedwithout signing the user out.RequestAuthorizer: bearer signing with one 401 retry.- Keychain storage,
ASWebAuthenticationSessionand loopback redirect user agents. PassportKitTesting: a fake authorization server and manual clocks for your own tests.- Logging through swift-log; secrets are redacted everywhere.
The API may change in 0.x releases. See CHANGELOG.md for details and known limitations (docs/security-model.md, "Known limits").