feat: entropy of user password is now checked by attributes passed from authsource
Compare changes
Files
4+ 30
− 0
@@ -60,6 +60,12 @@ class SwitchAuth extends \SimpleSAML\Auth\ProcessingFilter
@@ -87,6 +93,9 @@ class SwitchAuth extends \SimpleSAML\Auth\ProcessingFilter
@@ -117,6 +126,7 @@ class SwitchAuth extends \SimpleSAML\Auth\ProcessingFilter
@@ -174,6 +184,26 @@ class SwitchAuth extends \SimpleSAML\Auth\ProcessingFilter
Created by: melanger
This would mean a breaking change, because the original behavior is that anything satisfies SFA.
Please change the code - if
sfa_len_attr
orsfa_alphabet_attr
is not set, log a message with level INFO, that authswitcher could not check REFEDS SFA, so it assumes it was fulfiled. When the attribute config options are set, do the new behavior andreturn false
here.Also update README - mention that if those 2 new options are not set, it is assumed that all passwords satisfy REFEDS SFA, and explain how to use them.
Created by: xpavlic
For this case I added $check_entropy config option with false as default value. But this solution is probably better.