Commit Graph

141 Commits

Author SHA1 Message Date
822b78237a Finish implementation of Webauthn! 2022-04-23 20:23:34 +02:00
933c8ff024 Add expiration to webauthn challenges 2022-04-23 20:22:32 +02:00
9e345895ff Managed to authenticate user using Webauthn 2022-04-23 20:17:49 +02:00
05d3bee328 Send authenticate request 2022-04-23 19:20:59 +02:00
1d69ea536f Get auth challenge 2022-04-23 18:56:14 +02:00
f09a62f8df Disable "Start enrollment" button while processing credentials 2022-04-21 19:31:38 +02:00
0f17a8a35c Better sentence meaning 2022-04-21 19:28:54 +02:00
0f2fe87b5d cargo clippy 2022-04-21 19:26:50 +02:00
49716a8bf5 Register user security keys 2022-04-21 19:24:43 +02:00
1f0e6d05c8 Generate & return webauthn registration challenge 2022-04-20 21:06:53 +02:00
10982190e7 Add new test to validate TOTP codes generation 2022-04-20 18:06:04 +02:00
834ba1987e Improve handling of code input in TOTP page 2022-04-20 17:52:32 +02:00
1a1b31e8a0 Add support for numeric pad 2022-04-20 17:47:23 +02:00
68cb630339 Automatically display first factor input form if there is only one 2022-04-20 12:06:56 +02:00
867021e01a Improve TOTP form
Based on https://bbbootstrap.com/snippets/bootstrap-5-verify-otp-validation-form-inputs-78878858
2022-04-20 11:59:16 +02:00
0e02b63d93 Refuse to deliver token if code_verifier is present without code challenge 2022-04-20 09:52:00 +02:00
d7344feb9b Merge pull request 'Two factor authentication : TOTP' (#5) from twofactors into master
Reviewed-on: #5
2022-04-20 09:40:48 +02:00
0260742c01 Finish implementation of Authenticator App 2022-04-20 09:39:28 +02:00
1e401a0b10 Authentication using TOPT code is working 2022-04-20 09:35:57 +02:00
958f6eaabf Request focus on first input on login page 2022-04-20 09:16:21 +02:00
5e9c410e98 Improve TOPT login page 2022-04-19 20:55:42 +02:00
e8b3828f2c cargo clippy 2022-04-19 20:52:59 +02:00
94aeefe450 Replace type UserID with a structure 2022-04-19 19:40:36 +02:00
feb6db09b9 Fix typo 2022-04-19 19:33:16 +02:00
806a085c97 Improve redirect URI management 2022-04-19 19:30:24 +02:00
ce7118ff81 Display form to enter OTP code 2022-04-19 19:24:07 +02:00
c1677071fc Add a page to choose second factor 2022-04-19 18:27:21 +02:00
3add7a5d37 Rename SecondFactor => TwoFactor 2022-04-19 17:57:50 +02:00
9ff4392afb Replace Option<SecondFactor> with SecondFactor 2022-04-19 17:56:53 +02:00
5903ec2e8c Refactor login flow 2022-04-19 17:49:57 +02:00
78d70af510 Administrators can remove two factor authentication 2022-04-19 17:14:05 +02:00
630ebe2ddd Can remove created factors 2022-04-19 16:17:58 +02:00
deb00c572d Prevent crash from occuring 2022-04-19 16:01:16 +02:00
8cdb47a139 Rename route 2022-04-19 11:05:41 +02:00
b5a2f1abcb cargo clippy 2022-04-19 11:03:10 +02:00
65b5c812b1 Can register Authenticator app 2022-04-19 11:01:31 +02:00
18353f0639 Add form to authenticator page 2022-04-19 10:10:05 +02:00
38eddc1cf0 Generate QrCode to enroll Authenticator App 2022-04-19 09:57:08 +02:00
3023771334 Start to work on 2FA 2022-04-18 19:23:43 +02:00
c0d1c41b4c Update README 2022-04-18 17:17:02 +02:00
8c93efd6cd Update copyright notice 2022-04-18 17:15:11 +02:00
5cf1f63674 Fix deprecation warnings 2022-04-18 17:13:41 +02:00
fad92c5930 Deprecate dangerous feature 2022-04-18 17:05:26 +02:00
65b3289900 Update README 2022-04-18 17:02:30 +02:00
bd23d6d454 Add README & LICENSE 2022-04-18 17:00:28 +02:00
6d6161b176 Merge pull request 'Update Rust crate clap to 3.1.9' (#3) from renovate/clap-3.x into master
Reviewed-on: #3
2022-04-18 16:50:36 +02:00
drone
16804ed044 Update Rust crate clap to 3.1.9 2022-04-17 15:18:43 +00:00
bce601c550 Adapt OpenID discovery route to cluster configuration 2022-04-16 09:06:59 +02:00
5952de1c84 Add dockerfile 2022-04-15 22:09:26 +02:00
46f7f175b4 Fix checkbox selection issue 2022-04-15 22:04:06 +02:00