Skip to content

ASIOARequest - ASI + OAuth 1.0 Support #261

wants to merge 2 commits into from

1 participant


Via ASIOARequest (a derived class of ASIFormDataRequest), GET and POST requests against endpoints that support OAuth 1.0a can now be sent easily by initializing a dictionary of OAuth parameter values and assigning it to the request. The request will then construct the OAuth Authorization header and put it into the request. Usage:

NSMutableDictionary *oauthParams = [NSMutableDictionary dictionary];
[oauthParams setObject: forKey:kASIOAuthConsumerKey];
[oauthParams setObject: forKey:kASIOAuthConsumerSecret];
[oauthParams setObject: forKey:kASIOAuthTokenKey];
[oauthParams setObject:kASIOAuthSignatureMethodHMAC_SHA1 forKey:kASIOAuthSignatureMethodKey];
[oauthParams setObject:@"1.0" forKey:kASIOAuthVersionKey];
[oauthParams setObject: forKey:kASIOAuthTokenSecretKey];

request.oauthParams = oauth_params;

Christopher ... added some commits Sep 14, 2011
Christopher White initial commit for ASIOARequest and ASIOAParameter classes to support…
… putting OAuth1 in Authorization header
Christopher White fix warning 7a18a13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.