qmetrics.net

AppAuth for iOS

OAuth 2.0 and OpenID Connect client SDK for Apple platforms

AppAuth for iOS screenshot

AppAuth implements native OAuth 2.0 and OpenID Connect flows for iOS, macOS, and tvOS with PKCE, token refresh helpers, and RFC 8252-oriented browser agents.

Overview

AppAuth for iOS and macOS is a client library for talking to OAuth 2.0 and OpenID Connect providers. It maps protocol requests and responses closely while following familiar patterns for Objective-C and Swift callers, and adds convenience APIs for tasks such as calling backends with up-to-date access tokens.

On iOS it follows native-app guidance from RFC 8252, using system browser flows such as ASWebAuthenticationSession rather than embedded web views called out as unsupported for security reasons. PKCE is applied when exchanging authorization codes in public clients. Additional protocol parameters can be carried through standard and custom extensions.

macOS builds support custom URI schemes and loopback HTTP redirects managed by a small embedded redirect handler. tvOS support centers on the device authorization grant so users can sign in on TV by completing authorization on another device.

Developers integrate via Swift Package Manager, Carthage, or static linking, choosing full AppAuth, core-only AppAuthCore for extensions, or AppAuthTV for TV flows. OIDAuthState tracks tokens and refresh state so sessions can be persisted across app launches.

Key features

  • OAuth 2.0 and OpenID Connect client flows
  • PKCE for public native clients
  • OIDAuthState token and refresh tracking
  • ASWebAuthenticationSession on iOS
  • Loopback HTTP redirects on macOS
  • tvOS device authorization grant
  • Swift Package Manager and Carthage distribution
  • Custom external user-agent hooks

Use cases

  • Native iOS app login with OpenID Connect
  • macOS desktop OAuth with loopback redirect
  • tvOS sign-in via secondary device approval
  • Extension-friendly core-only integration

Tags

Similar software

Auth.js

Web authentication libraries for JavaScript frameworks

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

★ 28.4k⟳ 4 months agoISC

Devise

Modular authentication engine for Ruby on Rails

Devise adds sign-in, registration, and related account flows to Rails apps through a Warden-backed engine. Teams enable only the authentication modules they need for each user model.

★ 24.3k⟳ 1 month agoMIT

jsonwebtoken

Node.js library for signing and verifying JSON Web Tokens

jsonwebtoken implements JWT creation and verification for Node.js using HMAC, RSA, ECDSA, and related algorithms. It exposes sign, verify, and decode helpers built on node-jws.

★ 18.2k⟳ 5 months agoMIT

JustAuth

Java library for third-party OAuth login

JustAuth is a Java component that wires social and enterprise OAuth providers into applications without vendor-specific SDKs. It exposes a small API with builder-style configuration.

★ 17.6k⟳ 1 year agoMIT
Identity & Access Management (IAM)No commits in 18+ monthsDesktop/CLI app

laravel-permission

Database-backed roles and permissions for Laravel applications

Laravel Permission stores roles and permissions in the database and wires them to users, guards, and Laravel’s authorization gate.

★ 13k⟳ 2 days agoMIT

CASL

Isomorphic TypeScript authorization for apps and APIs

CASL limits which resources a user may access using declarative rules shared across frontend, backend, and database layers.

★ 7.1k⟳ 4 days agoMIT