Skip to content

Add 2SA login#29

Merged
Quentame merged 13 commits intoProtoThis:masterfrom
Quentame:login/2SA
Apr 12, 2020
Merged

Add 2SA login#29
Quentame merged 13 commits intoProtoThis:masterfrom
Quentame:login/2SA

Conversation

@Quentame
Copy link
Copy Markdown
Collaborator

@Quentame Quentame commented Apr 11, 2020

  • add login exceptions
  • add Black params
  • add official references creation-update dates
  • add login 2SA tests
  • remove useless "_sid" url prepend
  • remove _execute_get_url append_sid param

Fixes #11

+ add login exceptions
+ add Black params
+ add official references creation-update dates
+ remove useless "_sid" url prepend
@Quentame Quentame added this to the 0.6.0 milestone Apr 11, 2020
@Quentame Quentame changed the title Add 2SA login WIP: Add 2SA login Apr 11, 2020
+ remove _execute_get_url append_sid param
+ access error data & code
+ auto log after 2SA once ==> skip OTP checking
+ add device_token property to save connected device
@Quentame Quentame changed the title WIP: Add 2SA login Add 2SA login Apr 12, 2020
Comment thread tests/const.py Outdated
Comment thread tests/__init__.py
Comment thread tests/__init__.py Outdated
Comment thread synology_dsm/synology_dsm.py Outdated
Comment thread pyproject.toml Outdated
@Quentame Quentame mentioned this pull request Apr 12, 2020
Comment thread synology_dsm/synology_dsm.py Outdated
self._session_error = True
else:
self._debuglog("Failed: " + resp.text)
if json_data["error"]["code"] in {106, 107, 119}:
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we raise exceptions for common API error codes ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Later on, but sure

Copy link
Copy Markdown
Collaborator Author

@Quentame Quentame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good 🎉

@Quentame Quentame merged commit 3e28d20 into ProtoThis:master Apr 12, 2020
@Quentame Quentame deleted the login/2SA branch April 12, 2020 22:26
Quentame pushed a commit to Quentame/python-synology that referenced this pull request Aug 12, 2021
Bumps [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/readthedocs/sphinx_rtd_theme/releases)
- [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst)
- [Commits](readthedocs/sphinx_rtd_theme@0.5.0...0.5.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SynologyDSM doesn't handle 2-step authentication

1 participant