-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
do not allow client password logins if token auth is enforced or 2FA … #24811
Conversation
*/ | ||
public function __construct(IUserManager $manager, ISession $session, ITimeFactory $timeFacory, $tokenProvider) { | ||
public function __construct(IUserManager $manager, ISession $session, ITimeFactory $timeFacory, $tokenProvider, IConfig $config) { |
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.
$tokenProvider has no type hint, intended?
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.
yes, because null
in injected during setup
b871c05
to
d52585a
Compare
@PVince81 @nickvergessen @schiesbn @rullzer @LukasReschke test & review please :-) Tested also with LDAP, seems to work 🙊 |
1fd8191
to
4939f35
Compare
@@ -362,6 +362,9 @@ public function install($options) { | |||
$config->setAppValue('core', 'installedat', microtime(true)); | |||
$config->setAppValue('core', 'lastupdatedat', microtime(true)); | |||
|
|||
// Disable strict token auth by default | |||
$config->setSystemValue('token_auth_enforced', false); |
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.
I'd remove that, let it rely on the default value being false anyway
4939f35
to
91f4708
Compare
Looks good 👍 |
Second review ? @rullzer @nickvergessen |
91f4708
to
a922957
Compare
Awesome! 👍 |
Failing test looks unrelated
|
@ChristophWurst likely due to this PR: #24346 Will rerun the tests on master and make tickets so we can fix these today. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
…is enabled
fixes #24779
fixes #24768
TODO
Tested with DAV and OCS, works as expected.