Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Simple user log in

$
0
0
ezraza wrote:
I have used that to allow my applications to be registered with twitter, I just must be missing some obvious when it comes to using it for user log in.

I want users to be able to just enter their username and password to log in.
Having literally just written the code for this for a web application, here is some information..

The user will need to authenticate with Twitter using oAuth 1.0a - the process is something like:
  1. User presses "Sign in with Twitter" button
  2. User is taken to Twitter authentication page where they sign in
  3. User is returned to the callback URL specified on the app's settings page
  4. Application receives user's credentials which can be used to perform various actions (i.e. get the user's profile details, perform actions as that user etc)
MVC example: http://tweetinvi.codeplex.com/workitem/2334

WebForms example: https://tweetinvi.codeplex.com/discussions/536895

If you do not want to use the standard Twitter web interface in your app, I am sure there is some way you can code your own login page, but the request flow will have to involve some of the steps above. Hopefully the examples above will give you some idea of what's involved.

See http://oauth.net/core/1.0/#anchor9 for more info.

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>