ngovil21 / Plex-Cleaner

A script to clean up movies and episodes in Plex Media Server
238 stars 43 forks source link

2FA support #92

Open niksy opened 2 years ago

niksy commented 2 years ago

Do you plan on adding 2FA support?

randallbruder commented 2 years ago

FYI instead of using the script to generate a Plex token for you (which of course it can't if you have Plex's 2FA turned on) you can just find an authentication token yourself:

https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/

Although that article states

The method explained in this article will get you a token that is valid temporarily. If you’re working on a tool or app that needs more permanent authentication, please instead use the method outlined in our third-party development forum.

So I'm not sure how long that token will last, I only just used this yesterday to get PlexCleaner.py back up and running again. I guess I'll looking into that forum outlined method if the token expires annoyingly quickly.

niksy commented 2 years ago

I decided to scratch my own itch so I’ve packaged already available JS library inside Docker image: https://github.com/niksy/docker-plex-oauth