Skip to content

Conversation

@claudep
Copy link
Contributor

@claudep claudep commented Jan 3, 2020

This is a tentative patch to add some plugin architecture to allow for modular auth method implementations, following comments on PR #215. It's rather minimal and definitely not totally modular yet, but at least I have a proof of concept patch on my local system to add the U2F functionality (which I hope to integrate to this package).

I'm totally open to improve it following your comments.

@codecov
Copy link

codecov bot commented Jan 3, 2020

Codecov Report

Merging #328 into master will increase coverage by 0.07%.
The diff coverage is 95.3%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #328      +/-   ##
==========================================
+ Coverage   96.64%   96.72%   +0.07%     
==========================================
  Files          39       43       +4     
  Lines        1641     1739      +98     
  Branches      114      126      +12     
==========================================
+ Hits         1586     1682      +96     
- Misses         34       36       +2     
  Partials       21       21
Impacted Files Coverage Δ
two_factor/views/profile.py 100% <100%> (ø) ⬆️
two_factor/forms.py 100% <100%> (ø) ⬆️
two_factor/methods/__init__.py 100% <100%> (ø)
two_factor/methods/phone.py 100% <100%> (ø)
two_factor/apps.py 90.9% <100%> (+24.24%) ⬆️
two_factor/methods/yubikey.py 80.76% <80.76%> (ø)
two_factor/views/core.py 94.91% <96%> (+1.04%) ⬆️
two_factor/methods/base.py 97.43% <97.43%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec7dcb5...7fe01f3. Read the comment docs.

@moggers87
Copy link
Collaborator

I've not had a chance to do a proper review, but how does this compare to #280 ?

@claudep
Copy link
Contributor Author

claudep commented Jan 4, 2020

Crap, didn't see that one. However, I'm sure we can go somewhere by uniting ideas. What I called methods, @Bouke called it plugins. Do you think plugins is somewhat more standard as extension conceptual name?

@claudep
Copy link
Contributor Author

claudep commented Mar 5, 2022

This is obsolete now we have a plugin architecture in place.

@claudep claudep closed this Mar 5, 2022
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.

2 participants