Commit Graph
17 Commits
Author SHA1 Message Date
Athanasius cc2395ca04 Add similar extra logging for localhost handler
* This also adjusts the logging in Session.auth_callback() because it
  can be called from either protocol.  Saying 'edmc://' there is
  misleading.
2021-03-15 12:13:28 +00:00
Athanasius 4f524a0a35 Add extra logging for Frontier Auth, especially via edmc:// 2021-03-15 12:07:39 +00:00
Athanasius e1757a3a99 protocol: Don't use win32-specific edmc://auth if --force-localserver-for-auth
Tested with a build/install and run with:

	"c:\Program Files (x86)\EDMarketConnector\EDMarketConnector.exe" --force-localserver-for-auth --trace

2021-01-22 12:57:11.020 - TRACE - protocol.ProtocolHandler.__init__:222: Web ser
ver listening on http://localhost:53657/auth
2021-01-22 13:11:42 +00:00
Athanasius bf7e21a94f protocol.py: Reinstate 'from config import appname' 2021-01-18 21:42:04 +00:00
Athanasius 7e0c141547 This version of protocol.py doesn't yet need EDMCLogging 2021-01-18 14:53:44 +00:00
Athanasius c3663d8be8 Move the 'duplicate' constants into a new constants.py
1. So now they're only defined in one place.
2. config.py does an import of them, and `from config import ...` then
   chains through, so no need to update other users.
3. No need to ' # noqa E402' the killswitch/config imports now.
2021-01-18 14:43:45 +00:00
Athanasius 3d515ba919 protocol.py: Need from config import config 2021-01-11 18:20:58 +00:00
Athanasius 462cd25312 config: Make config.shutting_down() a property, and change 'callers' 2021-01-11 16:54:09 +00:00
Athanasius 92d5657e21 protocol: Avoid Tk event_generate() calls during shutdown 2021-01-11 16:43:53 +00:00
Athanasius 6aeb22d670 protocol.py: De-future 2019-09-26 11:40:42 +01:00
Athanasius 3117f7ca3e Fixes do_GET()'s use of .write() 2019-09-26 11:40:41 +01:00
Athanasius 218c068ee5 Running EDMarketConnector.py 'works'.
First pass utilising 'futurize' to do most of the work.

  There's an issue with ur'\"' in l10n.py which I'm not sure how to
properly fix.

  This now has errors when hitting the 'Update' button.
2019-09-26 11:40:38 +01:00
Jonathan Harris a6ce9edc1d Fix running under Wine 2019-06-19 12:09:26 +01:00
Jonathan Harris d8b2cb361b Don't start handlers before main window created 2019-01-15 00:00:46 +00:00
Jonathan Harris fd492cdf94 Support authentication when running from source
Fixes #395
2019-01-14 21:33:41 +00:00
Jonathan Harris a32be8098a Raise app window to display results of authorization callback 2018-12-28 18:50:33 +00:00
Jonathan Harris f17f5d3f25 PKCE OAuth2 access to cAPI 2018-12-28 03:32:26 +00:00