addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgoogleimageimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Re: [NYC-rb] 3rd Part Auth through native OS X app backed by webservice

From: Kliment M.
Sent on: Monday, February 6, 2012 1:56 PM
One approach may be:
Your OSX app opens up a UIWebView (without address bar), and loads
https://yourapp/au...­ (assuming your app uses OmniAuth).
OmniAuth does its authentication dance and in the callback you
validate/lookup the user, and if everything is good, redirect to
something like
https://yourapp/au...­ you generated to
identify this user's session>
The OSX app should listen to address change events, and check if you
are on the "success" page, and get the access_token from the url.
Obviously use SSL.
Pass access_token to all API calls.

Disclaimer: I have built a prototype with this approach for a mobile
iOS app, but nothing in production. There is also a lot of discussion
on this approach in phonegap forums.
Kliment


On Mon, Feb 6, 2012 at 1:07 PM, Jake Howerton <[address removed]> wrote:
> Hey Avi,
>
> The best approach in my opinion is to let the web service control the
> auth to the third party services (and store the tokens). Your OSX app
> can then just display a web view for the auth flow between your
> service and the third party.
>
> -Jake
>
>
> On Mon, Feb 6, 2012 at 12:54 PM, Avi Flombaum <[address removed]> wrote:
>> Hi NYC.rb,
>>
>> I'm working on an OSX application that is powered by a webservice I built. I
>> need the OSX app to provide Twitter/Facebook auth but I' unsure as how to
>> integrate the OSX App -> Facebook/Twitter -> WebService. Any ideas /
>> examples? I get how to do OS X -> Facebook/Twitter and Web ->
>> Facebook/Twitter but bridging them is eluding me. Thanks for any help!
>>
>> Avi Flombaum
>> --------------------­------------------
>> Designer Pages, co-founder
>>
>> 21 Penn Plaza | 360 W. 31st St.
>> Suite 1000 | Manhattan | NY 10001
>>
>> office ph. [masked] | mobile ph. [masked]
>>
>> designerpages.com | ­showrooms.com | prod­uctwars.com
>>
>> facebook.com/designe­rpagesonline | twitt­er.com/designerpages­
>>
>>
>>
>>
>>
>> --
>> Please Note: If you hit "REPLY", your message will be sent to everyone on
>> this mailing list ([address removed])
>> This message was sent by Avi Flombaum ([address removed]) from NYC.rb.
>> To learn more about Avi Flombaum, visit his/her member profile
>> Set my mailing list to email me As they are sent | In one daily email |
>> Don't send me mailing list messages
>>
>> Meetup, PO Box 4668 #37895 New York, New York[masked] |
>> [address removed]
>
>
>
>
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
> http://www.meetup...­
> This message was sent by Jake Howerton ([address removed]) from NYC.rb.
> To learn more about Jake Howerton, visit his/her member profile: http://www.meetup...­
> Set my mailing list to email me
>
> As they are sent
> http://www.meetup...­
>
> In one daily email
> http://www.meetup...­
>
> Don't send me mailing list messages
> http://www.meetup...­
> Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]
>

Our Sponsors

  • Pivotal Labs

    Provides the awesome event space we use every month!

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy