-
Notifications
You must be signed in to change notification settings - Fork 131
Update AFOAuth1Client to use ARC and latest AFNetworking #10
Conversation
I'm seeing an error with the nonce creation - it's just returning the same string. It doesn't seem to be a problem with the Twitter client, but Tumblr immediately complains if the nonce is re-used. |
I toyed around with this for a little while and found where @mattt explained to another that he doesn't want to expose AFBase64EncodedStringFromString externally, so I created an NSString category copy of that method (different name): https://gist.github.com/4351190 So, in
|
I also want to add that this implementation is incomplete -
needs to be completed (currently commented out). I tried it with the Tumblr api, and I can't get the auth to complete, though I don't know if it's due to an error in this method or somewhere else; more investigation is needed. I'm probably done working on this problem for now, but I'll check back in when more progress is made. |
Please take a look at the mattt-joergsimon-merge branch. That is the most updated version and you should contribute to it. Most of the issues you reported are already solved there, what it's still needed is:
that prevents us from calculating the correct signature, for example with Tumblr (with Twitter it works because they're really permissive...)
I had some free time today and fixed all these points apart from the last one since I need to open an issue and discuss with @mattt what I don't like about the current design. |
Awesome, thanks for looking into it. Please post a link to the pull request when you have a chance. I don't know if I'll have an opportunity soon to take a look at the last issue, but I'll let you know if I do so we aren't duplicating any work. |
Good news! Thanks to all of your contributions, the project overhaul is now complete (as of 57e8897). A stable release (0.1.0) was just added to CocoaPods. I know a lot of y'all had been waiting a long time in the dark for this, and I'm truly sorry about that. I'm happy to be able to say that this project is finally up to the standards of AFNetworking. |
I've updated AFOAuth1Client to use ARC and use the latest version of AFNetworking (via a submodule).
Both the iOS and OSX example apps have also been updated.
There are two issues:
AFPercentEscapedQueryStringPairMemberFromStringWithEncoding
from AFHTTPClient.m into AFOAuth1Client.m as you cannot access it any other way.UIApplicationDidFinishLaunchingNotification
notification does not get called when relaunching the app from the background (which always happens when we authenticate with OAuth). I'm not sure how else we can get the URL.Let me know your thoughts.