Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for 'app passwd' #5053

Open
257 opened this issue Feb 24, 2015 · 10 comments
Open

add support for 'app passwd' #5053

257 opened this issue Feb 24, 2015 · 10 comments
Labels

Comments

@257
Copy link

@257 257 commented Feb 24, 2015

my understanding is that 2-step authentication is not supported. but i couldn't find anything about app specific passwd here. this should work with netrc just like regular passwd but i doesn't.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 24, 2015

I don't use it myself, so I don't know how well it works, but you should look to the --twofactor option. You can add it to your config file

@257
Copy link
Author

@257 257 commented Feb 25, 2015

twofactor uses, well, two factor authentication. that's different than 'app-specifit passwds' which you can use for 1 step authentication. these passwd(s) are different from your main passwd for google/youtube.

fyi:
right now i use netrc (isync uses it on my system as well) but in i'm thinking of moving to pass: http://www.passwordstore.org/

@257
Copy link
Author

@257 257 commented Feb 25, 2015

this is what i get:
ERROR: Please use your account password and a two-factor code instead of an application-specific password.

coming from here:
https://github.com/rg3/youtube-dl/blob/99209c2916753799e9c68e8d466c5253113f25bc/youtube_dl/extractor/youtube.py#L114

@jaimeMF jaimeMF added the request label Feb 25, 2015
@AngryAnt
Copy link

@AngryAnt AngryAnt commented Dec 6, 2015

Is this request under consideration? The flexibility and compartmentalisation of app-specific passwords would be quite a nice addition.

@257 257 mentioned this issue Mar 1, 2016
@MaximKraev
Copy link

@MaximKraev MaximKraev commented Apr 4, 2016

👍 it is quite not practical to open an app and enter a code to watch a video every time.

@Forever-Young
Copy link
Contributor

@Forever-Young Forever-Young commented Sep 11, 2016

Works well if you specify --cookies param, and input 2-factor code one time, next time it won't ask

@Craquehead
Copy link

@Craquehead Craquehead commented Jan 7, 2017

I'd also like to see this. I use google prompt instead of/in addition to google authenticator.

When I log in using my main google password, I get a prompt on my phone asking to authorize. Accepting the request does not work, nor does inputting the google authenticator code.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 7, 2017

Just tried it:

  1. Using an App password to login in to www.youtube.com on Firefox does not work. It says "wrong password".
  2. Using the original password and two factor codes works. I use TOTP.

youtube-dl mimics browsers. If App passwords do not work on browsers, it's unlikely they'll be supported in youtube-dl. Can anyone try (1) and check whether it's still working or not?

@Craquehead A possible cause for authentication failures might be wrong time settings. Either the time on the device running youtube-dl is inaccurate, or the time on your phone is inaccurate. AFAIK authentication won't work if time difference is more than a few seconds.

@yan12125 yan12125 mentioned this issue Jan 9, 2017
3 of 3 tasks complete
@257
Copy link
Author

@257 257 commented May 16, 2017

@Forever-Young cookies go bad ;)
what's really blocking this? the main reason for this is automation. i have a playlist imported from bbc; it gets updates per week and i pull the hole thing into my backup machine every month (more or less)...

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 16, 2017

what's really blocking this?

When the last time I checked it, app passwords doesn't work in browsers. Does that work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.