RIM has open upon up and released the code for OAuth! What is OAuth you say, is an open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications. OAuth is an open standard for authorization used by tons of popular services, foursquare, Twitter, and Tumblr, to name a few. It allows applications to connect their users to these services without having to handle their username and password.
RIM has release Twitter, Facebook, and the foursquare OAuth source code in Github:
The first sample app shows how to integrate Twitter into your application by using the OAuth 1 protocol. You’ll learn how to quickly and painlessly authenticate with Twitter, and post a Tweet to a user’s timeline by taking advantage of the jsOAuth library.
The second sample shows integration with foursquare, and uses OAuth 2. It’ll show you how your application can authenticate a user with the service, search for near-by venues, and then check-in to a venue.
The third sample shows how to integrate Facebook and OAuth 2 into your application. You’ll learn how to authenticate a user with Facebook, and interact with their feed by posting, and reading content.