-
-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PLEX Oauth Doesn't Seem To Work? #2485
Comments
Check if your browser blocked the popup
…On Thu, 30 Aug 2018, 2:39 am Steve Lambe, ***@***.***> wrote:
Ombi build Version:
V 3.0.3587
Update Branch:
master
Media Sever:
Plex
Media Server Version:
Latest
Operating System:
Unraid (Linux)
Ombi Applicable Logs (from /logs/ directory or the Admin page):
Nothing seems to be captured? I see no logs for anything recent, only an issue I had months ago.
Problem Description:
When I enable Plex Oauth the button appears as expected, but when it's
pressed nothing happens other than a delayed notification that says
"Authenticating Loading... Please Wait". Once I log in using the Imported
Plex users via the normal Ombi login that notificaiton will keep appearing.
If I don't try to auth with PLEX that notification never appears.
I have left the login trying to "load" for over an hour now with no
obvious progress or error logged.
Reproduction Steps:
See above. Otherwise I just installed using the linuxserver.io Docker
image.
Any help in troubleshooting is greatly appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2485>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGVaLKyDegBs3MNGZ0P80qxLAobAp1RVks5uV0JKgaJpZM4WSoTa>
.
|
This is an issue in both Chrome and Safari for me as both browsers’ default behaviour is to block popups that aren’t a direct result of a user action. In this case, the window.open in the login component is called in a callback nested two deep, so browsers don’t see it as being a direct result of user actions. The workaround is to either open the popup first and then change the location of that window after you have the Plex OAuth URL, or to open the window to an endpoint that will run the whole flow there. |
Interesting, I will double check this out this weekend. I don't remember the pop-up block thing showing up, but I also didn't look for it specifically. |
Browsers may have different rules for localhost as well, which is why you may not have seen it if you’re not checking on an external instance. On Chrome, the location bar at least shows the “popup blocked” icon that you can click on to whitelist the site, but in Safari, the popup is silently blocked with no notification, so I was initially very confused about what was supposed to happen when first trying to use OAuth. |
Can confirm that I'm also experiencing this behaviour on chrome on windows and safari on MacOS. Chrome at least shows the pop-up was blocked but I don't believe safari does. |
Chiming in to say that I'm also experiencing this with Chrome on macOS. Seems to be a recent regression, as this was working in the last couple of weeks. Note that if I disable popup blocking on the ombi site through chrome, the popup comes on fine and my device is able to easily connect. |
@tidusjar Modern browsers will block a window.open call that isn't a direct synchronous result of a user interaction. More details here: https://javascript.info/popup-windows#popup-blocking In short, the window.open call from the login component needs to happen immediately in the |
Fixed in develop, please can someone confirm. Thanks for the advice @dotsam |
Tested and working in Chrome and Safari for me |
Ombi build Version:
V 3.0.3587
Update Branch:
master
Media Sever:
Plex
Media Server Version:
Latest
Operating System:
Unraid (Linux)
Ombi Applicable Logs (from
/logs/
directory or the Admin page):Problem Description:
When I enable Plex Oauth the button appears as expected, but when it's pressed nothing happens other than a delayed notification that says "Authenticating Loading... Please Wait". Once I log in using the Imported Plex users via the normal Ombi login that notificaiton will keep appearing. If I don't try to auth with PLEX that notification never appears.
I have left the login trying to "load" for over an hour now with no obvious progress or error logged.
Reproduction Steps:
See above. Otherwise I just installed using the linuxserver.io Docker image.
Any help in troubleshooting is greatly appreciated.
The text was updated successfully, but these errors were encountered: