Daniel García
874f5c34bd
Formatting
6 years ago
Daniel García
253faaf023
Use users duo host when required, instead of always using the global one
6 years ago
Daniel García
fdcc32beda
Validate Duo credentials when custom
6 years ago
Daniel García
8d9827c55f
Implement selection between global config and user settings for duo keys.
6 years ago
Daniel García
cad63f9761
Auto generate akey
6 years ago
Daniel García
621f607297
Update dependencies and fix some warnings
6 years ago
Daniel García
754087b990
Add global duo config and document options in .env template
6 years ago
Daniel García
cfbeb56371
Implement user duo, initial version
TODO:
- At the moment each user needs to configure a DUO application and input the API keys, we need to check if multiple users can register with the same keys correctly and if so we could implement a global setting.
- Sometimes the Duo frame doesn't load correctly, but canceling, reloading the page and logging in again seems to fix it for me.
6 years ago
Daniel García
7d2bc9e162
Added option to force 2fa at logins and made some changes to two factor code.
Added newlines to config options to keep them a reasonable length.
6 years ago
Daniel García
10756b0920
Update dependencies and fix some lints
6 years ago
Daniel García
5ee04e31e5
Updated dependencies, removed some unnecessary clones and fixed some lints
6 years ago
Daniel García
a744b9437a
Implemented multiple U2f keys, key names, and compromised checks
6 years ago
Daniel García
93805a5d7b
Fix Yubikeys deleted on error
6 years ago
Daniel García
8b4a6f2a64
Fixed some clippy lints and changed update_uuid_revision to only use one db query
6 years ago
Daniel García
86ed75bf7c
Config can now be serialized / deserialized
6 years ago
Daniel García
a1dc47b826
Change config to thread-safe system, needed for a future config panel.
Improved some two factor methods.
6 years ago
Daniel García
d420992f8c
Update some function calls to use ?
6 years ago
Daniel García
c259a0e3e2
Save recovery code when using yubikey and stop repeating headers.user everywhere
6 years ago
Daniel García
f571df7367
Revert yubikey feature, not needed anymore
6 years ago
Daniel García
1d034749f7
Fix AArch64 build by disabling yubico
6 years ago
Daniel García
5f49ecd7f3
Updated dependencies to use u2f crate directly, and some style changes
6 years ago
Daniel García
30e768613b
Start using rustfmt and some style changes to make some lines shorter
6 years ago
Daniel García
6a99849a1e
Implemented proper error handling, now we can do `user.save($conn)?;` and it works.
In the future, maybe we can do the same with the `find_by_id` methods that return an Option.
6 years ago
Daniel García
738ad2127b
Fixed some clippy linting issues
6 years ago
Daniel García
94810c106a
Migrate to rust 2018 edition
6 years ago
Daniel García
2fde4e6933
Implemented proper logging, with support for file logging, timestamp and syslog (this last one is untested)
6 years ago
Stepan Fedorko-Bartos
f344dbaad4
Fixes NFC Response for Mobile Login
7 years ago
Stepan Fedorko-Bartos
aba9c28226
Disable Yubikey 2FA if 0 Keys Provided
7 years ago
Stepan Fedorko-Bartos
82e2b8a8c0
Code style changes
7 years ago
Stepan Fedorko-Bartos
6d735806c0
Ensures Yubico Creds are set when opening Yubikey Modal
7 years ago
Stepan Fedorko-Bartos
2433d39df5
Allows Custom Yubico OTP Server
7 years ago
Stepan Fedorko-Bartos
9e0e4b13c5
Adds Yubikey OTP Support
7 years ago
Roman Hargrave
62bc58e145
Clean up after u2f endpoint split
7 years ago
Roman Hargrave
760e0ab805
Initial u2f fix
7 years ago
Daniel García
c673370103
Updated bw_rs to Rocket version 0.4-rc1
7 years ago
janost
e985221b50
User::save() should return QueryResult instead of bool
7 years ago
Miroslav Prasil
d9457e929c
Add continuation token when we return object list
7 years ago
Daniel García
8651df8c2a
Fixed some lint issues
7 years ago
Daniel García
d3f357b708
Implemented PUT for u2f registration
7 years ago
Kumar Ankur
5f6d721c09
Implemented PUT for /two-factor/authenticator and /two-factor/disable
7 years ago
Daniel García
819622e310
Documented U2F, removed debug prints, and documented missing features
7 years ago
Daniel García
75615bb5c8
Ignore U2F challenge if not provided. Also checked that error_code has to be 0 for a successfull registration
7 years ago
Daniel García
6378d96d1a
Add some extra debug prints
7 years ago
Daniel García
dae92b9018
Implemented U2F, refactored Two Factor authentication, registering U2F device and authentication should work. Works on Chrome on MacOS with a virtual device.
7 years ago
Daniel García
483066b9a0
Some style changes, removed useless matches and formats
7 years ago
Daniel García
b0ee5f6570
Improved two factor auth
7 years ago
Daniel García
5ec728683e
Make sure the inputs are always in the same case (PascalCase, which is what upstream seems to prefer most of the time)
7 years ago
Daniel García
1a4b1a8254
Enabled unused variable warning again, fixed some possible bugs where we didn't check some parameters, and explicitly marked all unused parameters (mostly orgheaders)
7 years ago
Daniel García
2cf46e1a5f
Make sure TOTP codes can be both Numbers or Strings, fixes #30
7 years ago
Daniel García
dfefbf1f31
Fixed cipher import, created missing data structs instead of using generic Value, and fixed some warnings
7 years ago