iOS OAuth Client Library Recomendations

Hi,

I’m at the early stages of porting my desktop FreeAgent client over to an
iOS app and wondered if anyone with more iOS experience might have
any recommendations for an OAuth library?

I was thinking https://github.com/nxtbgthng/OAuth2Client looks good but
what’s your experience? I’d be tied in to making all HTTP requests using
the library, is it just as straight forward working with NSURLConnection
directly?

I’m wondering how difficult it is to register a handler for the OAuth URI
callback… can I do that “in app” (register some custom scheme) or do I
really need a web page somewhere?

Thanks for any pointers,
Toby

I am using the Google OAuth library and it works fine with the FreeAgent
API v2On Thursday, 27 September 2012 11:51:17 UTC+1, Toby wrote:

Great, thanks

On Thursday, 27 September 2012 10:08:29 UTC+1, Nic Wise wrote:

I’m not sure on the oauth library, as I use MonoTouch for my stuff, so
if you are using ObjC, thats not going to work :slight_smile:

However, you register a scheme (eg your-app://) with the app (it’s in
the settings) then you can send the user to that using the FA api
console.

Mine, in the FA dashboard, is ma://localhost/oauth/ (for mobileAgent),
and that works (tho I ended up not using the iOS
“FinishedLoadingWithUrl / HandleUrl” thing - I just do it in-app, and
use a UIWebView and catch each URL click, which is also handy for
disabling the T&C and signup pages…)

On Thu, Sep 27, 2012 at 8:34 AM, Toby toby....@gmail.com wrote:

Hi,

I’m at the early stages of porting my desktop FreeAgent client over to
an
iOS app and wondered if anyone with more iOS experience might have any
recommendations for an OAuth library?

I was thinking https://github.com/nxtbgthng/OAuth2Client looks good
but
what’s your experience? I’d be tied in to making all HTTP requests
using the
library, is it just as straight forward working with NSURLConnection
directly?

I’m wondering how difficult it is to register a handler for the OAuth
URI
callback… can I do that “in app” (register some custom scheme) or do
I
really need a web page somewhere?

Thanks for any pointers,
Toby


You received this message because you are subscribed to the Google
Groups
“FreeAgent API” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/freeagent_api/-/VtxoX4XmEUsJ.
To post to this group, send email to freeag...@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_ap...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.


Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop.
http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding!
http://goo.gl/Icp2

I’m not sure on the oauth library, as I use MonoTouch for my stuff, so
if you are using ObjC, thats not going to work :slight_smile:

However, you register a scheme (eg your-app://) with the app (it’s in
the settings) then you can send the user to that using the FA api
console.

Mine, in the FA dashboard, is ma://localhost/oauth/ (for mobileAgent),
and that works (tho I ended up not using the iOS
“FinishedLoadingWithUrl / HandleUrl” thing - I just do it in-app, and
use a UIWebView and catch each URL click, which is also handy for
disabling the T&C and signup pages…)On Thu, Sep 27, 2012 at 8:34 AM, Toby toby.weston@gmail.com wrote:

Hi,

I’m at the early stages of porting my desktop FreeAgent client over to an
iOS app and wondered if anyone with more iOS experience might have any
recommendations for an OAuth library?

I was thinking https://github.com/nxtbgthng/OAuth2Client looks good but
what’s your experience? I’d be tied in to making all HTTP requests using the
library, is it just as straight forward working with NSURLConnection
directly?

I’m wondering how difficult it is to register a handler for the OAuth URI
callback… can I do that “in app” (register some custom scheme) or do I
really need a web page somewhere?

Thanks for any pointers,
Toby


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/freeagent_api/-/VtxoX4XmEUsJ.
To post to this group, send email to freeagent_api@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.

Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2

Great, thanksOn Thursday, 27 September 2012 10:08:29 UTC+1, Nic Wise wrote:

I’m not sure on the oauth library, as I use MonoTouch for my stuff, so
if you are using ObjC, thats not going to work :slight_smile:

However, you register a scheme (eg your-app://) with the app (it’s in
the settings) then you can send the user to that using the FA api
console.

Mine, in the FA dashboard, is ma://localhost/oauth/ (for mobileAgent),
and that works (tho I ended up not using the iOS
“FinishedLoadingWithUrl / HandleUrl” thing - I just do it in-app, and
use a UIWebView and catch each URL click, which is also handy for
disabling the T&C and signup pages…)

On Thu, Sep 27, 2012 at 8:34 AM, Toby <toby....@gmail.com <javascript:>> wrote:

Hi,

I’m at the early stages of porting my desktop FreeAgent client over to
an
iOS app and wondered if anyone with more iOS experience might have any
recommendations for an OAuth library?

I was thinking https://github.com/nxtbgthng/OAuth2Client looks good but
what’s your experience? I’d be tied in to making all HTTP requests using
the
library, is it just as straight forward working with NSURLConnection
directly?

I’m wondering how difficult it is to register a handler for the OAuth
URI
callback… can I do that “in app” (register some custom scheme) or do I
really need a web page somewhere?

Thanks for any pointers,
Toby


You received this message because you are subscribed to the Google
Groups
“FreeAgent API” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/freeagent_api/-/VtxoX4XmEUsJ.
To post to this group, send email to freeag...@googlegroups.com<javascript:>.

To unsubscribe from this group, send email to
freeagent_ap...@googlegroups.com <javascript:>.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.


Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop.
http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding!
http://goo.gl/Icp2