Plex SSO
Plex Single Sign On

Summary

If you are using Plex as the main driving factor for your Organizr instance, you will want to enable Plex as backend choice to login via Plex credentials.
Settings / System Settings / Main / Authentication
Change the Authentication type to Organizr DB + Backend. Choose Plex as the Authentication Backend. Use the Retrieve button to fill in the Plex Token and Plex Machine.
The other two toggles are optional:
Type
Purpose
Enable Plex oAuth
This will bring up a Plex login screen that will flow credentials through plex.tv
Strict Plex Friends
Enabling this option will only allow people from your friends list that have access to the server that you selected for Plex Machine
Now that Plex is setup to be the backend for Organizr, you can head over to the SSO section for Plex
Settings / System Settings / Single Sign-On / Plex
If Plex account was made using Facebook/Google - YOU HAVE TO USE OAUTH to sign in
Plex SSO will only work with Plex reverse proxied as a subdirectory and not as a subdomain. Fill out the Plex Token and Plex Machine (They should already be filled in if you did the above step). You can use the retrieve buttons to fill these out. Toggle the enabled switch to turn it on.
Type
Purpose
Plex Token
Token to authenticate with Plex Servers
Plex Machine
Plex Machine ID for your specific server
Admin Username
Username or Email for Organizr and Plex Admin account
Enable
Enable Plex SSO
If not using Plex OAuth - For Admin Account - Make sure passwords match in Organizr and Plex
Plex SSO doesn't work if Plex Reverse Proxy is a subdomain - It must be on the same domain as Organizr

Plex Reverse Proxy (Sub-Directory)

1
location /plex/ {
2
proxy_pass http://ip-of-plex:32400/;
3
include /path/to/proxy.conf;
4
}
5
if ($http_referer ~ /plex/) {
6
rewrite ^/web/(.*) /plex/web/$1? redirect;
7
}
Copied!

Contents of Proxy.conf

1
client_max_body_size 10m;
2
client_body_buffer_size 128k;
3
proxy_bind $server_addr;
4
proxy_buffers 32 4k;
5
#Timeout if the real server is dead
6
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
7
# Advanced Proxy Config
8
send_timeout 5m;
9
proxy_read_timeout 240;
10
proxy_send_timeout 240;
11
proxy_connect_timeout 240;
12
proxy_hide_header X-Frame-Options;
13
# Basic Proxy Config
14
proxy_set_header Host $host:$server_port;
15
proxy_set_header X-Real-IP $remote_addr;
16
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
17
proxy_set_header X-Forwarded-Proto https;
18
proxy_redirect http:// $scheme://;
19
proxy_http_version 1.1;
20
proxy_set_header Connection "";
21
proxy_no_cache $cookie_session;
22
proxy_set_header Upgrade $http_upgrade;
23
proxy_set_header Connection "upgrade";
Copied!
Export as PDF
Copy link