A poor-man's single sign-on for YouTube. Pass the username and password to YouTube's log-in form then parse the results to test for success.
trak3r/youtube_sso
UPDATE: this is pretty much dead since YouTube switched over to Google account authentication.
RubyMIT