kylejginavan / youtube_it

An object-oriented Ruby wrapper for the YouTube GData API
http://groups.google.com/group/ruby-youtube-library
595 stars 223 forks source link

AuthenticationError: BadAuthentication when used on server, works fine locally. #176

Closed marbemac closed 11 years ago

marbemac commented 11 years ago

The info returned is WebLoginRequired. How am I supposed to do that from the server? I'm using the normal client. I tried Oauth but that requires the middle step of going to the url and clicking accept in order to get a token. My app is just uploading videos to our own youtube account in background jobs so I can't do that every time. Ideas? Thanks!

marbemac commented 11 years ago

Found a solution. If you need to authorize a server with Google, just go here when you're logged in with the google/youtube account in question:

https://accounts.google.com/b/0/DisplayUnlockCaptcha

That essentially removes security for a small window of time, and any servers that authenticate during that time period will be permanently whitelisted.