-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved authenticator system #218
Merged
pepoluan
merged 44 commits into
aio-libs:master
from
pepoluan:authenticator_see_session
Jan 31, 2021
Merged
Changes from 40 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
b247b2f
Implement authenticator system
pepoluan 0afce67
Add test cases
pepoluan be0ffd9
Update documentation
pepoluan c6defe9
Update NEWS
pepoluan 33445d7
Handle symlink creation error on Windows
pepoluan 22418ee
Silence some PyCharm warnings
pepoluan 9a2c046
Increase loop.stop delay to 1.5
pepoluan 413f46f
Merge branch 'master' into authenticator_see_session
pepoluan c1b8b70
Update comment on the GA yml file
pepoluan 91c1287
Allow user to customize AUTH LOGIN challenges
pepoluan 0ec5fd6
Merge branch 'master' into authenticator_see_session
pepoluan 5684d0a
Silence code inspection warning
pepoluan a4f17b2
Remove unused import
pepoluan 8096431
Add boxed_sess to also record contents of session
pepoluan 653526c
Resplit signature line to reduce diff with master
pepoluan dd5627e
Remove special handling for "=" during AUTH
pepoluan e489f87
Adapt Test Cases to removal of "=" special handling
pepoluan be7cc3b
Rewrite assert_auth_* helper funcs
pepoluan f3872d1
Remove handling for login is None
pepoluan a802e4f
Update NEWS.rst
pepoluan bc1b7be
Update handler.rst
pepoluan e34b350
Restructure to silence coverage protests
pepoluan dcad667
Exclude from coverage because it's being deprecated
pepoluan 43397bf
Merge branch 'bugfix_rfc4954' into authenticator_see_session
pepoluan 501b1ef
Fix bugs introduced when merging earlier
pepoluan 589b2c0
Use 'attrs' to enforce usage of kwargs
pepoluan aa2bb0a
Promote _LoginPassword to LoginPassword ...
pepoluan a85468e
Implement "AUTH LOGIN <username>" support
pepoluan e13650e
Rename "authenticator" func to "auth_callback"
pepoluan 46f04ae
Tidy up imports
pepoluan 98437d2
Fix: Prevent kwarg collision
pepoluan f4ccdbd
Fix too-long line
pepoluan e06145b
Fix wrong thing being tested
pepoluan 63fbda6
Fix wrong test
pepoluan 45bb9d3
Fix authenticator
pepoluan 099a4da
Change piecemeal assertEqual to direct assert ==
pepoluan b81c560
Remove leftover misunderstanding
pepoluan 87b153c
Encode challenge as utf8
pepoluan 7e4d75d
Add logging (DEBUG) of challenge sent
pepoluan c35b6bd
Merge branch 'master' into authenticator_see_session
pepoluan 9975f43
Merge branch 'master' into authenticator_see_session
pepoluan 28c2459
Merge branch 'master' into authenticator_see_session
pepoluan c122842
Merge branch 'master' into authenticator_see_session
pepoluan 2918c25
Merge branch 'master' into authenticator_see_session
pepoluan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,7 +183,7 @@ those methods of the handler instance will override the built-in methods. | |
|
||
:boldital:`server` is the instance of the ``SMTP`` class invoking the AUTH hook. | ||
This allows the AUTH hook implementation to invoke facilities such as the | ||
``push()`` and ``_auth_interact()`` methods. | ||
``push()`` and ``challenge_auth()`` methods. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Renamed the function so it doesn't start with "_" Had to be creative here because "auth_*" prefix has its own meaning... |
||
|
||
:boldital:`args` is a list of string split from the string after the ``AUTH`` command. | ||
``args[0]`` is always equal to ``MECHANISM``. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A looong explanation on why we use 3.7 on Windows ... and a self-made term "frozen" because Ned thinks "stable" == "still receiving bugfixes".
(I personally think "stable" == "no possible (official) behavior change", but whatevs.)