ytsm icon indicating copy to clipboard operation
ytsm copied to clipboard

OAuth authentication for YouTube

Open chibicitiberiu opened this issue 7 years ago • 5 comments

To access private playlists and videos, we need to support authentication.

chibicitiberiu avatar Oct 30 '18 20:10 chibicitiberiu

Hey, I'd be happy to take on this challenge, if you're not currently working on it :)

I also recommend adding some people as collaborators, as that means they can help moderate and be assigned to issues, the link I sent shows you the level of access a collaborator has.

J-tt avatar Nov 02 '18 02:11 J-tt

Sure, go ahead

chibicitiberiu avatar Nov 02 '18 06:11 chibicitiberiu

Sorry, closed by accident.

chibicitiberiu avatar Nov 02 '18 08:11 chibicitiberiu

I know @chibicitiberiu doesn't like adding more dependencies, but there's a plugin for handling authentication with other services and django. Maybe that'll work? Or at least give a good push in the right direction? https://github.com/pennersr/django-allauth

bsquidwrd avatar Nov 02 '18 17:11 bsquidwrd

Google has a pretty detailed guide on implementing OAuth in a web server. The python example uses Flask, but I'm pretty sure it can be ported to Django without much difficulty.

Personally, I would try google's guide first, but I'll let @J-tt decide on how to aproach this.

chibicitiberiu avatar Nov 02 '18 20:11 chibicitiberiu