youtube_it_rails_app_example icon indicating copy to clipboard operation
youtube_it_rails_app_example copied to clipboard

AuthenticationError in VideosController#upload

Open ghost opened this issue 11 years ago • 4 comments

I get this error, done everything as it is stated in the page, but in step 2 I get this error, please help me, I really don't know what to do. BadAuthentication

app/models/video.rb:36:in token_form' app/controllers/videos_controller.rb:6:inupload'

Request

Parameters:

{"utf8"=>"✓", "authenticity_token"=>"w+aQ2YG9t5Gg+XIlU/B10VCRJfSuvwCHFuvX2J0lzRY=", "video"=>{"title"=>"", "description"=>""}}

ghost avatar Nov 18 '14 23:11 ghost

For all people wondering, I think I've solved the problem. By the way I am new to Ruby and Ruby on Rails, this is my first web app. These are the steps to solve the problem : First : Configure your google account with the 2-step verification. Second : Create an "App password", and use this password along with your normal username and dev_key in the youtube_it.yml file. Third : It should be working right now, but in case it doesn't you haven't configure your youtube account. Just create a channel in your youtube account. That's it, now it works !!! Hopefully this will help other people.

ghost avatar Nov 19 '14 02:11 ghost

Same problem, help pls.

About "Step two" - what does it mean? Where I can create "App password"?

stifferhorn avatar Mar 16 '15 05:03 stifferhorn

Look at these links :

https://support.google.com/accounts/answer/185833 https://support.google.com/mail/answer/1173270?hl=en

From there it should be easy for you to create an App password :)

ghost avatar Apr 23 '15 16:04 ghost

Fine, thanks! That was really root of the problem.

stifferhorn avatar Apr 27 '15 16:04 stifferhorn