Simple OAuth 2.0
Currently URL's are set for Google API (Gmail, Google+ etc.) but should work for other OAuth 2.0 services.
-
Register and app here: https://code.google.com/apis/console/ (or other OAuth 2.0 service)
-
For Google API be sure to register the Platform as "Other" and NOT "iOS" otherwise you'll get "invalid_client" error when authenticating.
-
Insert your Client ID and Client Secret in ViewController.m (and optionally change the authentication-url and token-url if you're not using Google API)
-
Run the app. The sign method is called in viewDidLoad in ViewController.m
-
When the user has successfully authenticated your viewController:finishedWithAuth:error: will be called (it's also in ViewController.m), here you can also retrieve the access_token for later authentication.