AFOAuth1Client / AFOAuth2Client Web Service Authenication View Controller within the App.
Objective-C Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AFOAuthSignInViewController.xcodeproj
AFOAuthSignInViewController
AFOAuthSignInViewControllerTests
AFOAuthSignInViewController.podspec
README.md

README.md

Intro

AFOAuthSignInViewController is an easy way to create ViewController for Web Services which need to sign in without switching to Mobile Safari.

Usage

  1. Install with CocoaPods or clone
  2. #import "AFOAuthSignInViewController.h".
  3. Create the ViewController by using [AFOAuthSignInViewController alloc]initWithOAuthClientType:<#(AFOAuthClientType)#> baseURL:<#(NSURL *)#> key:<#(NSString *)#> secret:<#(NSString *)#> verifyParameter:<#(NSString *)#> requestTokenPath:<#(NSString *)#> userAuthorizationPath:<#(NSString *)#> callbackURL:<#(NSURL *)#> accessTokenPath:<#(NSString *)#> accessMethod:<#(NSString *)#> scope:<#(NSString *)#>];
  4. set Delegate to appropriate Class.
  5. use - (void)signInViewController:(AFOAuthSignInViewController *)viewController didGetAccessPermissionWithClient:(id)client attributes:(NSDictionary *)attributes to retrieves the AFOAuthClient and attributes of the User.