node-plex-api
node-plex-api copied to clipboard
Authentication variants
Hi there,
out of the documentation I am not sure which authentication is required for what scope.
username: plex.tv username (optional / required for PlexHome)
password: plex.tv password (optional / required for PlexHome)
managedUser: details required to perform operations as a managed PlexHome user
name: managed user name
pin: optional pin code for the managed user
token: plex.tv authentication token (optional)
Let's say I have setups
- Plex Pass using Plex Home WITHOUT using a PIN for the users.
- Plex Pass using Plex Home WITH PIN for (some) of the users.
- What other scenarios do exist?
For which of the above listed setups do I need which authentication method? Or between which ones can I choose?
Thanks, Zefau
So, my first investigation: username
and password
are sufficient for GET requests.
For any other request (PUT, POST, DELETE) either managedUser
credentials OR a token
is required.
Can anybody confirm ?
Can't really confirm since I haven't tried communicating with plex since the introduction of v1.3 (ref https://github.com/phillipj/node-plex-api/issues/75), though I want to reply here anyways so you get some feedback at least.
For what it's worth, I can't remember pre v1.3 had any differences in terms of authentication related to what kinds of HTTP methods was used in a request to the API. This might have changed a lot though, so don't take my word for it.
Maybe there's some hints or valuable discussions in the PR that introduced managed users in the first place https://github.com/phillipj/node-plex-api/pull/70 or other referenced PRs.