-
Notifications
You must be signed in to change notification settings - Fork 12
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
Possible to trigger TOTP activation and login using TOTP #259
Conversation
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.
Seems to be a bug somewhere. The one-time code is never accepted.
root@a119c8420857:/code# dds auth twofactor
︵
︵ ( ) ︵
( ) ) ( ( ) SciLifeLab Data Delivery System
︶ ( ) ) ( http://dds_backend:5000/
︶ ( ) Version 1.0.3
︶
INFO Starting configuration of one-time authentication code method.
? Which method would you like to use? Authenticator App
INFO No saved token found, or token has expired, proceeding with authentication
DDS username: unituser_1
DDS password:
INFO Please enter the one-time authentication code sent to your email address (leave empty to exit):
Authentication one-time code: 14367889
Authentication one-time code: 14367889
Authentication one-time code:
Yes, the bug seems to be due to an indentation misstake in the merge with dev. Should be easy to fix. |
Codecov Report
@@ Coverage Diff @@
## dev #259 +/- ##
========================================
- Coverage 7.17% 7.15% -0.02%
========================================
Files 29 29
Lines 2440 2487 +47
========================================
+ Hits 175 178 +3
- Misses 2265 2309 +44
Continue to review full report at Codecov.
|
@zishanmirza commented the following in the Slack
|
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.
Works well! If you could add a couple of tests though, that would be great! You don't have to add heaps, but look at the existing tests regarding perform_request
and a couple new ones for this.
Also: Changelog
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.
Looks great here too!
Before submitting a pr:
dev
branch