Releases: fair-research/native-login
Releases · fair-research/native-login
v0.3.1
v0.3.0
What's Changed
- feat!: Remove save-revocation feature by @NickolausDS in #75
- Drop support for old versions by @NickolausDS in #76
Full Changelog: v0.2.6...v0.3.0
v0.2.6
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
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
Fair Research Login v0.1.5
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
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
Bumped version
Fair Research Login v0.1.1
v0.1.1 Release v0.1.1 Release
Fair Research Login v0.1.0
Provides basic login functionality, with built-in token storage and local server auth code handling.