OAuth2 frameworks for macOS, iOS, and tvOS written in Swift 5.0. OAuth2 requires Xcode 10.2, the built framework can be used on OS X 10.11 or iOS 8 and later. Happy to accept pull requests, please see CONTRIBUTING.md. 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 should be found on a separate feature branch named appropriately. In OAuth2 there are different kinds of flows. This library supports all of them, make sure you're using the correct one for your use-case and authorization server. A typical code grant flow is used for demo purposes below. The steps for other flows are mostly the same short of instantiating a different subclass and using different client settings.

Features

  • Instantiate OAuth2 with a Settings Dictionary
  • Let the Data Loader or Alamofire Take Over
  • Make Sure You Intercept the Callback
  • Manually Authorize the User
  • Manually Performing Authorization
  • Advanced Settings

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow OAuth2

OAuth2 Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OAuth2!

Additional Project Details

Programming Language

Swift

Related Categories

Swift Frameworks

Registered

2023-06-30