Could I use Plex authentication?

Hello,
I am building a private website (PHP) which shows some information about my Plex server.
It grabs the data via an API (jc21/plex-api).
Now I wanna restrict the access on this website so only plex users which also have access to my plex server can access this website.
Are there any ideas how to realize that? Or is it impossible?

That level of authentication is buried inside Plex and surrounded by the encryption keys.
While technically doable, I don’t think / see where Plex management would hand over the keys to anyone.

You can always ask via the contact link at plex.tv. It’s beyond my scope to address further, sorry.

You could take a look at how PlexPy and Ombi do it…
They use Plex Authentication for user access

https://jonnywong16.github.io/plexpy/
http://www.ombi.io/

The “secret” is already in the API. Use the user-credentials you get on your website to log in to your PLEX server. If this login succeeds, the user is logged in. If it fails, the user gets an error message.

@sica @hthighway Thank you guys! I didn’t think of PlexPy.

@sica said:
The “secret” is already in the API. Use the user-credentials you get on your website to log in to your PLEX server. If this login succeeds, the user is logged in. If it fails, the user gets an error message.

Ahhhh yeah… thank you very much! This should work… Shame on me, it’s so simple :dizzy:
I’ll try that.