-
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
two factor auth #24559
two factor auth #24559
Conversation
By analyzing the blame information on this pull request, we identified @bantu, @DeepDiver1975 and @icewind1991 to be potential reviewers |
</two-factor-providers> | ||
|
||
<dependencies> | ||
<owncloud min-version="9.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.
max-version is required as well
f3bde39
to
092ffaf
Compare
* This file is licensed under the Affero General Public License version 3 or | ||
* later. See the COPYING file. | ||
* | ||
* @author Christoph Wurst <[email protected]> |
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.
- TODO: change license header email address 🙈
@@ -0,0 +1,23 @@ | |||
<?xml version="1.0"?> | |||
<info> | |||
<id>twofactoremail</id> |
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.
id needs to be twofactor_email otherwise installation will fail 😉
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.
installation via occ works 😉
Easily bypassed using the following URL:
Needs some more state checks 😄 |
1ce7d72
to
4e1d677
Compare
|
eecd262
to
288730f
Compare
2FA can be disabled/enabled via OCC:
Note that 2FA is enforced for all users by default if at least one 2FA provider app is enabled. |
About the CI error not sure, maybe something went wrong with all the recent merges. So not sure, did you try running the sqlite tests locally ? |
Reproducible on your branch:
|
Cannot reproduce on master. Weird. |
opened an issue for canceling 2fa: #24745 |
Reproducible locally
I have no idea where that comes from… |
@ChristophWurst it is likely that some of your code is running very early, even before the database tables are created. The code is question is likely the part that reads the two factor auth flags ? |
There might also be some config code that runs whenever you call |
238464a
to
1801123
Compare
sqlite error fixed. @LukasReschke @PVince81 @rullzer @nickvergessen @BernhardPosselt review please :) |
👍 |
Unit tests fail… |
Unrelated?
|
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. |
This PR adds two factor authorization to all requests using the app framework. Unless at least one 2FA app is enabled (install this https://github.com/owncloud/twofactor_email app for testing), nothing changes with respect to authentication. The dummy app included prompts the user for a token sent by email, which is the hard-coded value 'passme'. This 2FA system architecture allows app developers to write own 2FA providers which can be plugged in as apps.
fixes #12102
TODO - basic
TODO - email 2FA app
TODO - enhanced (done in separate PRs if possible)
Other ideas