Skip to content

Releases: fair-research/native-login

v0.3.1

24 Aug 17:50
47d6899

Choose a tag to compare

0.3.1 (2023-08-24)

Bug Fixes

  • Fix outdated version syntax in requirements file

v0.3.0

12 Apr 16:59

Choose a tag to compare

What's Changed

Full Changelog: v0.2.6...v0.3.0

v0.2.6

06 Dec 23:05

Choose a tag to compare

What's Changed

  • fix: Reword the ScopesMismatch exception for more clarity by @NickolausDS in #73

Full Changelog: v0.2.5...v0.2.6

Fair Research Login v0.2.0

01 Dec 22:04

Choose a tag to compare

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_handler and secondary_code_handler replaced by code_handlers list
  • set_app_name() removed on code_handlers, replaced by set_context()
  • LocalServerLoginHandler now automatically skips and defaults to InputCodeHandler
    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 CodeHandler and
    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 means InputCodeHandler will be used if the user enters a KeyboardInterrupt for
    LocalServerCodeHandler
  • fair_research_login.exc.AuthFailure raised if no code was retrieved and no code_handlers remain

Fair Research Login v0.1.5

06 Sep 16:03

Choose a tag to compare

Patch release for version v0.1.3. Changes include the following:

  • Fixed improper expired tokens exception when subset tokens were loaded with refresh

Fair Research Login v0.1.3

13 Aug 23:05

Choose a tag to compare

Patch release for version v0.1.3. Changes include the following:

  • Fixed improper error being raised if user declined consent when using local server
  • Fixed bug where login() would not respect default scopes
  • Fixed load_tokens() raising an error if un-requested previously saved tokens had expired
  • Fixed login() always starting a flow if un-requested previously saved tokens had expired
  • Fixed tokens 'leaking' by revoking old live tokens when a new login is requested before overwrite
  • Fixed token leakage by revoking tokens before overwrite
  • Fixed login raising ScopesMismatch() exception when more tokens existed than were requested
  • Fixed bug if consent was rescinded with refresh tokens

Fair Research Login v0.1.2

24 May 15:33

Choose a tag to compare

Fair Research Login v0.1.1

17 May 18:38
af8bb66

Choose a tag to compare

v0.1.1 Release

v0.1.1 Release

Fair Research Login v0.1.0

13 Feb 22:11

Choose a tag to compare

Provides basic login functionality, with built-in token storage and local server auth code handling.