This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
Tumblr
Caleb Davenport edited this page Jan 22, 2014
·
3 revisions
The Tumblr provider authenticates the user via a web view. It requires consumer_key
and consumer_secret
to be present. Install by adding pod 'SimpleAuth/Tumblr
to your Podfile
. Its provider type is tumblr
.
This provider shows a web view controller by passing it to the block specified by SimpleAuthPresentInterfaceBlockKey
. By default, this block wraps the given view controller in a UINavigationController
and presents that controller on the topmost presented view controller. Likewise, the controller is dismissed by passing it to the block specified by SimpleAuthDismissInterfaceBlockKey
. You can read more about this in Customizing Interface Elements.
SimpleAuth.configuration[@"tumblr"] = @{
@"consumer_key" : @"CONSUMER_KEY",
@"consumer_secret" : @"CONSUMER_SECRET",
};
[SimpleAuth authorize:@"tumblr" completion:^(id responseObject, NSError *error) {}];