Sexy Twitter Authorization for KRL

A new KRL library has been released that enables you to build a sexy Twitter authorization. The OAuthModule provides a generic process for making OAuth 1.0A authentication and protected resource requests. This means that you can now make your own authorization request to Twitter, and many other services.
Using oauthmodule:get_auth_url function you get a URL that can be used to start the OAuth authorization dance. While you could simple perform the action within the current browser window, it is so much nicer to pop open a new window. So what we've done is attach a click event to the image that was added to the page.

We the images is clicked a new browser window is opened using the URL that was returned from oauthmodule:get_auth_url. Then we have a setInterval timer which watches for the window to close.

This entry was posted on Aug 29, 2011
, Monday, August 29, 2011 and is filed under kynetx,oauth,twitter. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response.