Open birchlore opened 8 years ago
Turns out I had to go into my google profile settings to allow less secure apps to have access (I guess apps that don't use Oauth?)
To confirm, @birchlore, this issue can be closed?
Hey @pickhardt yep, thanks! A note could be added to the readme if anyone else mentions it.
I'm getting a 'AuthenticationError' when accessing current_user. So the code looks like:
client = YouTubeIt::Client.new(:username => params['user'],:password => params['pass'], :dev_key => dev_key) begin if client.current_user # 'AuthenticationError' here at runtime end session['user'] = params['user'] session['pass'] = params['pass'] redirect_to :controller => "mainpage", :action => "search" rescue session['user'] = nil session['pass'] = nil redirect_to :controller => "login", :action => "index" end
I'm getting the error:
I just want to confirm my authentication details:
@client = YouTubeIt::Client.new(:username => "my_youtube_acount@gmail.com", :password => "password_to_gmail", :dev_key => "youtube_api_credentials_key")
So,
Does that all look right? Why would I be getting an authentication error? I've verified the credentials manually several times.