# Could I use Plex authentication?

**URL:** <https://forums.plex.tv/t/could-i-use-plex-authentication/195269>\
**Category:** General Discussions\
**Created:** [June 10, 2017, 3:38pm UTC](https://forums.plex.tv/t/could-i-use-plex-authentication/195269 "2017-06-10T15:38:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabi-Media](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/fabi-media/32/99031_2.png) [@Fabi-Media](https://forums.plex.tv/u/Fabi-Media)\
**Post date:** [June 10, 2017, 3:38pm UTC](https://forums.plex.tv/t/could-i-use-plex-authentication/195269/1 "2017-06-10T15:38:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [June 10, 2017, 4:02pm UTC](https://forums.plex.tv/t/could-i-use-plex-authentication/195269/2 "2017-06-10T16:02:31Z")

</div>

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](http://plex.tv). It’s beyond my scope to address further, sorry.

---

<div class="post-metadata">

**Author:** ![hthighway](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hthighway/32/82003_2.png) [@hthighway](https://forums.plex.tv/u/hthighway)\
**Post date:** [June 10, 2017, 4:12pm UTC](https://forums.plex.tv/t/could-i-use-plex-authentication/195269/3 "2017-06-10T16:12:18Z")

</div>

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

[https://jonnywong16.github.io/plexpy/](https://jonnywong16.github.io/plexpy/)  
[http://www.ombi.io/](http://www.ombi.io/)

---

<div class="post-metadata">

**Author:** ![sica](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sica/32/1199_2.png) [@sica](https://forums.plex.tv/u/sica)\
**Post date:** [June 10, 2017, 4:15pm UTC](https://forums.plex.tv/t/could-i-use-plex-authentication/195269/4 "2017-06-10T16:15:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [June 10, 2017, 4:35pm UTC](https://forums.plex.tv/t/could-i-use-plex-authentication/195269/5 "2017-06-10T16:35:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Fabi-Media](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/fabi-media/32/99031_2.png) [@Fabi-Media](https://forums.plex.tv/u/Fabi-Media)\
**Post date:** [June 10, 2017, 5:37pm UTC](https://forums.plex.tv/t/could-i-use-plex-authentication/195269/6 "2017-06-10T17:37:49Z")

</div>

> @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 💫  
I’ll try that.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 7, 2020, 11:23pm UTC](https://forums.plex.tv/t/could-i-use-plex-authentication/195269/7 "2020-01-07T23:23:55Z")

</div>

Closed on January 7, 2020, 11:23pm UTC


