Fair Research Login v0.2.0
Release for version v0.2.0. Changes for this release are better general default behavior when calling login(). Two specific examples are not using the LocalServerLoginHandler when in an SSH session, and at most opening a user's browser once to avoid spamming them. Backwards incompatibilities are limited to anyone who has previously modified code handlers, all other users should be unaffected.
Specific changes are below:
local_server_code_handlerandsecondary_code_handlerreplaced bycode_handlerslistset_app_name()removed on code_handlers, replaced byset_context()LocalServerLoginHandlernow automatically skips and defaults toInputCodeHandler
if it detects it is running on a remote server- Added class level set_browser_enabled(True/False) to set global
setting for enabling/disabling auto-opening the browser. This can
be done via:from fair_research_login import CodeHandlerand
CodeHandler.set_browser_enabled(False) - Browser is automatically disabled if user enters ^C, to avoid taking control away from them more than once.
- User Keyboard interrupt no longer results in calling sys.exit()
- Keyboard interrupt now causes the current code handler to be 'skipped', and the next one in line used.
By default, this meansInputCodeHandlerwill be used if the user enters a KeyboardInterrupt for
LocalServerCodeHandler - fair_research_login.exc.AuthFailure raised if no code was retrieved and no
code_handlersremain