Login with Twitter on iOS and securely login user on my own server

ios
oauth

#1

With a Twitter OAuth web flow, it prompts the user to ok your twitter app, then redirects them back to your callback url. Since this is a secure way to authenticate the user, you can look them up by their twitter ID in your DB and either register them or log them in.

I can’t figure out how this works with an iOS app because “logging in with Twitter” never hits your server. I have to make a separate request, but there’s no way to verify that request is coming from that user.

How can I have the user login with Twitter on iOS and securely log them in on my own server?


#2

Hey @inorganik,

I believe this is [what you’re looking for][1], but let me know if I misunderstood.

-Mike
[1]: https://docs.fabric.io/ios/twitter/oauth-echo.html#use-oauth-echo


#3

Thanks! I was just coming to the same conclusion.


#4

Awesome and happy coding :slight_smile:


#5