simonrob / email-oauth2-proxy

An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method.
Apache License 2.0
785 stars 84 forks source link

Can't athenticate -window doesn't appear #248

Closed matthewgeier closed 3 months ago

matthewgeier commented 3 months ago

Client connects to proxy - _ get the popup requesting to authorise. I assume I should get a window to interact with Oauth, but no window appears and the following appears on the console -

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pystray/_base.py", line 324, in inner callback(self) File "/usr/lib/python3/dist-packages/pystray/_base.py", line 449, in call return self._action(icon, self) ^^^^^^^^^^^^^^^^^^^^^^^^ File "//email-oauth2-proxy/emailproxy.py", line 2812, in authorise_account self.create_authorisation_window(request) File "//email-oauth2-proxy/emailproxy.py", line 2842, in create_authorisation_window authorisation_window.loaded += self.authorisation_window_loaded ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Window' object has no attribute 'loaded'

I assume this error is preventing a 'browser' window from appearing to do the interactive part of the login.

Ubuntu 24.04. I MAY be missing a python dependency.

simonrob commented 3 months ago

Thanks for reporting, but please take a look at existing issues before opening a new one. This is a duplicate of #242.