-
Notifications
You must be signed in to change notification settings - Fork 31
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
Two factor refactoring. #86
base: 7.next-cake4
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## 7.next-cake4 #86 +/- ##
==================================================
- Coverage 90.32% 89.98% -0.34%
- Complexity 318 344 +26
==================================================
Files 47 52 +5
Lines 775 949 +174
==================================================
+ Hits 700 854 +154
- Misses 75 95 +20 ☔ View full report in Codecov by Sentry. |
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.
Also, please add some docs to cover the changes in configuration and usage
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: ['7.2', '7.3', '7.4', '8.0', '8.1'] | ||
php-version: ['7.4', '8.0', '8.1'] |
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.
add 8.2 and 8.3
* | ||
* @return bool | ||
*/ | ||
public function enabled(): bool; |
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.
would it be better to use isEnabled to match with the other methods
*/ | ||
public function build() | ||
{ | ||
$className = Configure::read('Webauthn2fa.checker'); | ||
$interfaces = class_implements($className); | ||
$required = Webauthn2FAuthenticationCheckerInterface::class; | ||
$required = Webauthn2fAuthenticationCheckerInterface::class; |
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.
why this change?
Extract two factor logic into separate classes processing each type of 2fa.