Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
AFOAuth1Client / AFOAuth2Client Web Service Authenication View Controller within the App.
Objective-C Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.
Something went wrong with that request. Please try again.