Skip to content
Make authentication with Google Services easier.
Swift Ruby Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GAuth Example
GAuth tvOS Example
GAuth.xcodeproj
GAuth.xcworkspace
GAuthTests
Sources
.gitignore
Cartfile
Cartfile.private
Cartfile.resolved
GAuth.podspec
LICENSE
README.md
makefile

README.md

Twitter Carthage Compatible CocoaPods Compatible Platform

GAuth

GAuth is small framework that makes authentication to Google Services easier by properly implementing the OAuth authentication flow described in Google's Developers website.

GAuth is not about to provide yet another Swift OAuth client but to easily integrate authentication to Google Services for the OAuth client already used in your project.

Cloning the repo

To give GAuth a shot follow this steps:

  1. Clone the repo.
  2. Open the terminal and move to the GAuth folder.
  3. To setup all required dependencies run make setup.
  4. Open the GAuth.xcworkspace, build and run.

Installation

Add via CocoaPods by adding this to your Podfile:

pod 'GAuth'

If using Carthage, add following line into your Cartfile:

github "fabiomassimo/GAuth"

How to use it

Integrate GAuth by making your OAuthClient (OAuthSwift, SwiftyOAuth) conform to GoogleAuthenticatorOAuthClient.

Finally authorize your device via the GoogleAuthenticatorClient by passing the proper OAuth client.

See the example project (using OAuthSwift to see how it works in details.

Support for Limited Input Device Applications

GAuth cares to support all platforms therefore it also implements the Device Authentication Flow for devices that can not support the standard authorization flows (i.e. tvOS which does not include WebKit framework).

Roadmap

  • Include code example
  • Add more Google Service Scope.
  • Add Travis CI/Circle CI to the repo
  • Add support for Swift 3

Credits

GAuth's primary author is Fabio Milano, iOS Engineer at Touchwonders.

GAuth was inspired from the need of having a simple framework that could support all type of platforms and easily integrate with an existing OAuth client.

License

GAuth is available under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.