Permalink
Browse files

[Issue #17] Setting accessToken to requestToken in -acquireOAuthAcces…

…sTokenWithPath:requestToken:accessMethod:success:failure:
  • Loading branch information...
mattt committed Mar 5, 2013
1 parent ed28a38 commit f285886dccb152cee529c539bcf59b5f01a8323a
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 f285886

Please sign in to comment.