I was checking out the Tweet# API, and notice that there are 2 ways to authenticate.
.AuthenticateAs(TWITTER_USERNAME, TWITTER_PASSWORD)
and
.AuthenticateWith(OAUTH_CONSUMER_KEY,
OAUTH_CONSUMER_SECRET,
OAUTH_TOKEN,
OAUTH_TOKEN_SECRET)
if I just want to post as message on a user’s behalf, whats the difference?
Thanks
Basic Auth is not secure and going to be deprecated soon. Its sends the user password as plain text (base64 encoded)
OAuth is a (relative?) new method for authentication where no password is needed.
In a few, quick and rough words:
Keep in mind that OAuth auth is a server-to-server communication.
EDIT:
Official link:
http://oauth.net/documentation/getting-started/
OAuth is way more complex and painful than Basic, but in the end you have a more secure app. Your users will thank you.