Skip to content

avoid 2FA by adding token authentication#2

Open
jhellerstedt wants to merge 2 commits into
mlschmitt:mainfrom
jhellerstedt:circumvent-2FA-with-token
Open

avoid 2FA by adding token authentication#2
jhellerstedt wants to merge 2 commits into
mlschmitt:mainfrom
jhellerstedt:circumvent-2FA-with-token

Conversation

@jhellerstedt
Copy link
Copy Markdown

Plex now has a provision for 2FA.

I added an input into the original authentication flow that prompts the user for a 2FA code.

I added auth inputs for server_url and token (e.g., plex X-Plex-Token) so the script can run without an additional user input. The _setup_server connection function tries a token method first, and falls back to a login requiring 2FA.

My IDE was somehow unhappy with some of the index syntax, which is a bit of changes-that-aren't-changes here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant