rsieiro / RSOAuthEngine

ARC based OAuth engine for MKNetworkKit
http://rodrigo.sharpcube.com
150 stars 33 forks source link

added a token type to satisfy section 6.3.1 of OAuth 1.0a spec #17

Closed smazurov closed 11 years ago

smazurov commented 11 years ago

When request token and token secret is exchanged for the access token, it cannot contain oauth_callback parameter, under current implementation that was being included. I added a new type RSOAuthRequestAccessToken. Now when you implement fillTokenWithResponseBody: with that type, it removes the access token from consequent request.

This is all done to satisfy Section 6.3.1 of OAuth 1.0a spec. No userspace code should be affected (as anything that worked before can continue to pass in RSOAuthRequestToken)

rsieiro commented 11 years ago

Thanks! I'll merge your changes now and update the sample apps with this new type later.