Commit Graph

199 Commits

Author SHA1 Message Date
07b1ff4bae Merge pull request 'Update Rust crate clap to 3.1.12' (#6) from renovate/clap-3.x into master
Reviewed-on: #6
2022-04-23 20:47:03 +02:00
6f1e00e737 Add Permissions-Policy header 2022-04-23 20:45:34 +02:00
234e77d08a Block pages indexing 2022-04-23 20:41:31 +02:00
48112dfed7 Make usage of FatalErrorPage more convenient 2022-04-23 20:31:09 +02:00
a516f173ad Merge pull request 'Add webauthn' (#8) from webauthn into master
Reviewed-on: #8
2022-04-23 20:25:13 +02:00
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
drone
bdd1ac5419 Update Rust crate uuid to v1 2022-04-23 00:12:01 +00:00
drone
e62947ab9f Update Rust crate jwt-simple to 0.11.0 2022-04-23 00:11:57 +00:00
drone
d887e0df34 Update Rust crate clap to 3.1.12 2022-04-23 00:11:47 +00: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