Monday 15 August 2011

node.js - Oauth 2.0 between own server and mobile client -


I am developing an application with mobile client using the node.js platform with the passport module. I was thinking of implementing OAuth 2.0 for authentication from mobile to server. I could not understand what the app ID can give to the mobile-client. I also want to make sure that I am able to differentiate if the user first logged in using another mobile. The application ID will depend on the passport service you are using.

The app ID will depend on the passport service you are using. If you are using Facebook or Twitter, then you developer Forbbook You must prepare an app by going to com or developer.twitter.com. This ID will be required. More specifically, for Twitter, you need a Twitter-consumer-key twitter-consumer-secret twitter-callback

and Facebook

facebook- Client-id facebook-client-secret facebook-callback

You will then authenticate the user after authentication You can call your server to track the mobile device or any other information. No need to store keys on mobile devices, mobile devices will need to call a closing point on your server just to handle authentication.

No comments:

Post a Comment