ORLHAC Etienne [EXT]
13b7d9dff5
Fix allow referral ldap result
6 years ago
unknown
f9434b42e8
Fix actually checking auth success
6 years ago
unknown
0eaeb2d686
Add ldap connector to bitwarden
6 years ago
unknown
98a6811323
Handle ldap connection errors
6 years ago
unknown
1e976a9b56
Split ldap username + handle config
6 years ago
liberodark
7f7d53bd02
Update identity.rs
fix
6 years ago
liberodark
95fda731dc
update
6 years ago
liberodark
24d1448181
update
6 years ago
liberodark
cb133363c7
update
6 years ago
liberodark
5a1990401c
fix
6 years ago
liberodark
c2ad8ba7a7
Update identity.rs
fix
6 years ago
ORLHAC Etienne [EXT]
3541e61c21
Test replacing password with ldap connection
6 years ago
vpl
2edecf34ff
Use user_uuid instead of mut twofactor
6 years ago
vpl
18bc8331f9
Send email when preparing 2FA JsonError
6 years ago
BlackDex
ebf40099f2
Updated authenticator TOTP
- Added security check for previouse used codes
- Allow TOTP codes with 1 step back and forward when there is a time
drift. This means in total 3 codes could be valid. But only newer codes
then the previouse used codes are excepted after that.
6 years ago
vpl
ee7837d022
Add option to require new device emails
6 years ago
Daniel García
07743e490b
Ignore error sending device email
6 years ago
vpl
6d460b44b0
Use saved token for email 2fa codes
6 years ago
vpl
efd8d9f528
Remove some unused imports, unneeded mut variables
6 years ago
vpl
29aedd388e
Add email code logic and move two_factor into separate modules
6 years ago
vpl
27e0e41835
Add email authenticator logic
6 years ago
vpl
df71f57d86
Move send device email to end of password login
Send new device email after two factor authentication.
6 years ago
vpl
60e39a9dd1
Move retrieve/new device from connData to separate function
6 years ago
vpl
bc6a53b847
Add new device email when user logs in
6 years ago
Emil Madsen
e22e290f67
Fix key and type variable names for mysql
7 years ago
Daniel García
253faaf023
Use users duo host when required, instead of always using the global one
7 years ago
Daniel García
8d9827c55f
Implement selection between global config and user settings for duo keys.
7 years ago
Daniel García
754087b990
Add global duo config and document options in .env template
7 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.
7 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.
7 years ago
Daniel García
5ee04e31e5
Updated dependencies, removed some unnecessary clones and fixed some lints
7 years ago
Daniel García
9636f33fdb
Implement constant time equal check for admin, 2fa recover and 2fa remember tokens
7 years ago
Daniel García
700e084101
Add 2FA icon to admin panel
7 years ago
Daniel García
a1dc47b826
Change config to thread-safe system, needed for a future config panel.
Improved some two factor methods.
7 years ago
Daniel García
30e768613b
Start using rustfmt and some style changes to make some lines shorter
7 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.
7 years ago
Daniel García
5a9aab1a32
Implement fromform, and ignore case and underscores, fixes #298
7 years ago
algebro
e26e2319da
Close #264 . Usernames and IP addresses are logged on successful authentication
7 years ago
Daniel García
7adc045b80
Updated IP logging to use client_ip, to match old remote behavior.
Improved error logging, now it won't show a generic error message in some situations.
Removed delete device, which is not needed as it will be overwritten later.
Logged more info when an error occurs saving a device.
Added orgmanager to JWT claims.
7 years ago
Daniel García
738ad2127b
Fixed some clippy linting issues
7 years ago
Daniel García
cb930a0858
Remove some required values during login, now uses default values
7 years ago
Daniel García
94810c106a
Migrate to rust 2018 edition
7 years ago
Stepan Fedorko-Bartos
f344dbaad4
Fixes NFC Response for Mobile Login
7 years ago
Stepan Fedorko-Bartos
9e0e4b13c5
Adds Yubikey OTP Support
7 years ago
Daniel García
bc532f54d5
Improve login query parsing
7 years ago
Daniel García
c673370103
Updated bw_rs to Rocket version 0.4-rc1
7 years ago
janost
58a78ffa54
Device::save() should return QueryResult instead of bool
7 years ago
Miroslav Prasil
a28caa33ef
Implement poor man's admin panel
7 years ago
Daniel García
8651df8c2a
Fixed some lint issues
7 years ago
Daniel García
948554a20f
Added config option for websocket port, and reworked the config parsing a bit.
Added SMTP_FROM config to examples and made it mandatory, it doesn't make much sense to not specify the from address.
7 years ago