Skip to content
Browse files

Revert "[Issue #17] Setting accessToken to requestToken in -acquireOA…

…uthAccessTokenWithPath:requestToken:accessMethod:success:failure:"

This reverts commit f285886.
  • Loading branch information...
1 parent f285886 commit 9b2fb310337e27f65a5f4767cfb981bcdc0b2c99 @mattt mattt committed Mar 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 AFOAuth1Client/AFOAuth1Client.m
View
4 AFOAuth1Client/AFOAuth1Client.m
@@ -321,13 +321,13 @@ - (void)acquireOAuthAccessTokenWithPath:(NSString *)path
success:(void (^)(AFOAuth1Token *accessToken))success
failure:(void (^)(NSError *error))failure
{
- self.accessToken = requestToken;
-
NSMutableDictionary *parameters = [[self OAuthParameters] mutableCopy];
[parameters setValue:requestToken.key forKey:@"oauth_token"];
[parameters setValue:requestToken.verifier forKey:@"oauth_verifier"];
+ self.accessToken = requestToken;
NSMutableURLRequest *request = [self requestWithMethod:accessMethod path:path parameters:parameters];
+ self.accessToken = nil;
AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithRequest:request success:^(AFHTTPRequestOperation *operation, id responseObject) {
if (success) {

0 comments on commit 9b2fb31

Please sign in to comment.
Something went wrong with that request. Please try again.