Saturday, April 27, 2013

oauth2 ios http://stackoverflow.com/questions/5374570/whats-the-best-ios-oauth2-framework

http://stackoverflow.com/questions/5374570/whats-the-best-ios-oauth2-framework

oauth2 ios 

Can't seem to find a good, easy to use OAuth 2 framework anywhere. I'm looking for something easy like ASIHTTPRequest. Anyone have experience?

Take a look at this GitHub project: https://github.com/nxtbgthng/OAuth2Client

If you're using the AFNetworking library, you could consider the AFOAuth2Client extension.

I've used google's oauth framework and it works very well. It's pretty complete and was easy enough for me to make a couple minor updates to (ui mostly).

http://code.google.com/p/gtm-oauth/

I don't like sharing the secret either, but I guess I disagree with your statement. It's typical for apps to have the key and secret defined (say in a constants file). I think even Amazons AWS SDK requires the app to know secret...it's part of the app authentication process...when the app is installed (unless there is some jailbroken thing I don't now about), the users should only ever be able to see your apps binary and any image files. – Nathan Jones Jun 30 '11 at 3:06
1  
One thing to take into account is that gtm-oauth follows the spec very closely. It doesn't work with OAuth2 services that return the token in form-format (it only works with JSON format). While the spec does specify JSON, some OAuth2 implementations (for example github's) still return the token in form values. – Ivo Jansch Sep 3 '11 at 16:37
2  
gtm-oauth2 does now support legacy implementations that return the tokens in form-style responses, though those implementations should update to the spec. – grobbins Sep 24 '11 at 16:25
Thanks for the pointer to gtm-oauth2 @grobbins. For reference the documentation is atcode.google.com/p/gtm-oauth2 – Domenic D. Oct 24 '12 at 17:59

LROAuth2Client seems to be another solid implementation.

MixioAuthFramework appears to be another OAuth2 library.

FROAuth2Request is OAuth2 Support for the well known ASIHTTPRequest Lib.

No comments:

Post a Comment