Cant configure oauth for plex subdomain | PlexGuide.com

Cant configure oauth for plex subdomain

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

skorpionemm

Citizen
Original poster
Jul 23, 2019
4
0
I tried all but i dont know how protect plex subdomain plex.mydomain.tld with oauth, always goes directly to plex, no oauth verificactiom screen in the middle.

Any ideas?

Thanks
 

DrgnFyre

Experienced
Dec 25, 2018
65
8
check under your PGShield options.
Go into pg shield / disable pgshield for a single app and make sure plex isn't listed there. if it is you'll want to remove it and then re-deploy pgshield
(For example, my only exception is ombi)
Type a Number | Press [ENTER]: 2
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
?️ PG Shield ~ Enable Shield for an app | http://pgshield.pgblitz.com
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
? Apps NOT currently protected by PGShield:
ombi
 

Dexter.

Active
Donor
Jan 25, 2020
43
9
I have this same issue. plex.mydomain.com will let me go directly to the plex login screen. Is this correct or should before come the google oauth? I checked PGShield, no apps are exempt.
 

Xployt

Administrator
Project Manager
Donor
Donor
Sep 26, 2018
210
91
Have you tried re-deploying traefik?

Then give it roughly 10-15 mins.
 

Dexter.

Active
Donor
Jan 25, 2020
43
9
I just tried it., but it did not help (before I also reinstalled plex). If i type plex.mydomain.com i get directly redirected to https://app.plex.tv/auth/.... no google auth.

For other apps the google oauth login is shown. Is it supposed to work for Plex too or is it correct that plex.mydomain.com don't show the google oauth screen?
 

Daxble

Citizen
Mar 11, 2019
10
9
The plex install doesn't have OAuth enabled by default, to enable it go to portainer -> containers -> plex, then click duplicate/edit. Under advanced container settings select labels, then add a label. The label name is traefik.frontend.auth.forward.address and the value should be http://oauth:4181. You can check the value from other containers if that value doesn't work.

edit: Make sure to deploy the container after making the changes, also make sure to backup plex before.
 
Last edited:
  • Like
Reactions: 1 users

Edrock200

MVP
Staff
Nov 17, 2019
543
195
It's worth noting if you do this, no Plex client will be able to connect if you've changed your published name to https://plex.yourdomain.com.:443. It also doesn't prevent https://plex.yourdomain.com:32400/web from bypassing oauth. You can prevent the latter by changing the Plex container from publishing from 0.0.0.0:32400 to 127.0.0.1:32400. However, again, not recommended since it will break all clients (Roku/APPLETV/Android, etc) if you published custom url. If you didn't it's pretty useless to do this.
 
  • Like
Reactions: 1 users

Dexter.

Active
Donor
Jan 25, 2020
43
9
thank you very much for the explanation and the confirmation. Had thought something like that, but I wasn't sure. So I just let it be ;-)
 
  • Like
Reactions: 1 user

Edrock200

MVP
Staff
Nov 17, 2019
543
195
No problem. Of the core apps (at least that I know of) Plex, emby, jellyfin and ombi don't apply oauth since they are designed to be accessed externally by multiple people and/or proprietary clients, and have their own auth mechanisms (although many apps have the option to enable auth.) Some community apps don't have oauth integrated, but you can enable via the method above.

But daxble is 100% right on how to enable. Is a nice trick to enable for apps that don't have it on by default or even new containers you add manually that aren't part of pg. It's also a much faster way to enable/disable oauth w/o needing to rebuild every container, although I don't know if it persists through a subsequent oauth deployment.
 
Last edited:

Recommend NewsGroups

      Up To a 58% Discount!

Trending