vpl
3b7a5bd102
Move 2FA email config to after SMTP config
5 years ago
vpl
2edecf34ff
Use user_uuid instead of mut twofactor
5 years ago
vpl
18bc8331f9
Send email when preparing 2FA JsonError
5 years ago
BlackDex
603a964579
Fixed issue #663 .
...
During the 2fa activation there is no twofactor record yet.
Changed the layout a bit so that it will generate a new twofactor record
when it does not exists yet. Else it will just update the already
existing record.
5 years ago
Daniel García
dc515b83f3
Merge pull request #657 from BlackDex/totp-timedrift
...
Updated authenticator TOTP
5 years ago
BlackDex
9466f02696
Recoded TOTP time drift validation
5 years ago
BlackDex
2cde814aaa
Fixed a bug with the sqlite backup feature.
...
When a custom path is used the backup feature does not work.
Changed it so it will take the path of the sqlite file and use that.
5 years ago
BlackDex
d989a19f76
Merge branch 'master' of https://github.com/dani-garcia/bitwarden_rs into totp-timedrift
5 years ago
Daniel García
d292269ea0
Make the blacklist logic be cached
5 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.
5 years ago
BlackDex
edc482c8ea
Changed HIBP Error message.
...
- Moved the manual link to the check to the top.
- Clearified that hibp is a payed service.
- Changed error logo to hibp logo.
5 years ago
BlackDex
6e5c03cc78
Some modification when no HIBP API Key is set
...
- Added an URL with the useraccount for manual check.
- Added support for HTTP(S)_PROXY for hibp.
5 years ago
Daniel García
881c1978eb
Error when the URL scheme doesn't match the database type
5 years ago
Daniel García
662bc27523
Updated dependencies and fixed disable_admin_token description
5 years ago
Daniel García
e6b763026e
Merge branch 'master' into icon-security
5 years ago
Daniel García
c182583e09
Merge pull request #644 from BlackDex/issue-565
...
Fixed issue #565
5 years ago
Daniel García
d821389c2e
Merge pull request #639 from vverst/cors-update
...
Change CORS headers
5 years ago
BlackDex
be2916333b
Fixed issue #565
...
Issue fixed by omitting the cookie header when cookie_str is empty
5 years ago
BlackDex
9124d8a3fb
Updated icon blacklisting.
...
- Blacklisting was not effective for redirects and rel href
- Able to blacklist non global IP's like RFC1918, multicast etc...
5 years ago
vpl
7b1da527a6
Change CORS headers
...
Only add Allow-Origin to all requests and move the others to preflight OPTIONS request.
If Origin is `file://` change it to the wildcard.
5 years ago
Miro Prasil
d6e9af909b
Remove the unnecessary check for sqlite
...
The binary we use is called `sqlite3` so no need to check for other
name variants as we won't use those anyways.
5 years ago
Miro Prasil
acdd42935b
Add sqlite binary into the docker images
...
This is done to enable backup functionality in the admin interface while
we're waiting for the libsqlite-sys 0.17 to bubble up in the upstream
dependencies. Then we can start using `VACUUM INTO`
This also extends the check for the sqlite binary to also try `sqlite3`
as this is the name of the binary in baseimage distributions we use.
5 years ago
vpl
56f12dc982
Use Access-Control-Allow-Method
5 years ago
Daniel García
4c07f05b3a
Remove Result<T, E: Debug> in preparation of deprecation as Rocket responder.
...
Removed unnecessary returns
5 years ago
Michael Powers
f5f9861a78
Adds support for PostgreSQL which resolves #87 and is mentioned in #246 .
...
This includes migrations as well as Dockerfile's for amd64.
The biggest change is that replace_into isn't supported by Diesel for the
PostgreSQL backend, instead requiring the use of on_conflict. This
unfortunately requires a branch for save() on all of the models currently
using replace_into.
5 years ago
Daniel García
df8114f8be
Updated client kdf iterations to 100000 and fixed some lints
5 years ago
vpl
5a2f968d7a
Set correct response headers, status code
5 years ago
vpl
16d88402cb
Initial version of CORS support
5 years ago
Daniel García
7dcf18151d
Fix onsubmit
5 years ago
Daniel García
e3404dd322
Use the local scripts instead of cloudflare, remove jquery and update config so disabling a master toggle doesn't remove the values
5 years ago
Daniel García
bfc517ee80
Remove unused warning
5 years ago
Daniel García
4a7d2a1e28
Rename static files endpoint
5 years ago
Daniel García
c07c9995ea
Merge pull request #555 from vverst/email-codes
...
Add Email 2FA login
5 years ago
ViViDboarder
672a245548
Remove unecessary clone
5 years ago
vpl
5d50b1ee3c
Merge remote-tracking branch 'upstream/master' into email-codes
5 years ago
vpl
c99df1c310
Compare token using crypto::ct_eq
5 years ago
vpl
591ae10144
Get token from single u64
5 years ago
ViViDboarder
2d2745195e
Allow explicitly defined smtp auth mechansim
5 years ago
Daniel García
026f9da035
Allow removing users two factors
5 years ago
Daniel García
d23d4f2c1d
Allow editing HIBP key in the admin panel
5 years ago
Daniel García
515b87755a
Update HIBP to v3, requires paid API key, fixes #583
5 years ago
vpl
ee7837d022
Add option to require new device emails
5 years ago
Daniel García
07743e490b
Ignore error sending device email
5 years ago
BlackDex
e7b6238f43
Added reqwest proxy support
5 years ago
vpl
ad2225b6e5
Add configuration options for Email 2FA
5 years ago
vpl
5609103a97
Use ring to generate email token
5 years ago
vpl
6d460b44b0
Use saved token for email 2fa codes
5 years ago
vpl
efd8d9f528
Remove some unused imports, unneeded mut variables
5 years ago
vpl
29aedd388e
Add email code logic and move two_factor into separate modules
5 years ago
vpl
27e0e41835
Add email authenticator logic
5 years ago
vpl
0b60f20eb3
Add email message for twofactor email codes
5 years ago
Daniel García
c9c3f07171
Updated dependencies and fixed panic getting icons
5 years ago
vpl
df71f57d86
Move send device email to end of password login
...
Send new device email after two factor authentication.
5 years ago
vpl
60e39a9dd1
Move retrieve/new device from connData to separate function
5 years ago
vpl
bc6a53b847
Add new device email when user logs in
5 years ago
Daniel García
05a1137828
Move backend checks to build.rs to fail fast, and updated dependencies
5 years ago
Nick Fox
2e300da057
Fix #468 - Percent-encode the email address in invite link
5 years ago
Cubity_First
6989fc7bdb
Corrected Spelling
...
Changed it from Chache to Cache on Line 207
6 years ago
Daniel García
76f38621de
Update dependencies and remove unwraps from Cipher::to_json
6 years ago
Daniel García
12af32b9ea
Don't print DB URL
6 years ago
Daniel García
9add8e19eb
Update dependencies and remove travis unused feature
6 years ago
Daniel García
5710703c50
Make sure the backup option only appears when using sqlite
6 years ago
Daniel García
1322b876e9
Merge pull request #493 from endyman/feature/initial_mysql_support
...
Initial support for mysql
6 years ago
Daniel García
9ed2ba61c6
Merge pull request #475 from TheMardy/master
...
Create Backup funcitonality
6 years ago
Nils Domrose
62a461ae15
remove syslog from ci, make features flag more clear
6 years ago
Nils Domrose
4859932d35
fixed typo
6 years ago
Nils Domrose
dc36f0cb6c
re-added sqlite check_db code, cleanup
6 years ago
Nils Domrose
ff759397f6
initial mysql support
6 years ago
Emil Madsen
233b48bdad
Fix missing joinable in schema
6 years ago
Emil Madsen
e22e290f67
Fix key and type variable names for mysql
6 years ago
Emil Madsen
ab95a69dc8
Rework migrations for MySQL
6 years ago
Emil Madsen
85c8a01f4a
Merge branch 'master' of github.com:Skeen/bitwarden_rs
6 years ago
Emil Madsen
42af7c6dab
MySQL database
6 years ago
Daniel García
4f45cc081f
Update ring to 0.14, jwt to 6.0, and u2f
6 years ago
TheMardy
ef551f4cc6
Create Backup funcitonality
...
Added create backup functionality to the admin panel
6 years ago
Daniel García
5521a86693
Change path for served images to avoid collision with vault images
6 years ago
Daniel García
3160780549
Merge pull request #401 from TheMardy/master
...
Images in Email Templates
6 years ago
TheMardy
f0701657a9
Changed to Bitwarden_RS Logo
6 years ago
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
3d843a6a51
Merge pull request #460 from janost/organization-vault-purge
...
Fixed purging organization vault
6 years ago
janost
03fdf36bf9
Fixed purging organization vault
6 years ago
Daniel García
fdcc32beda
Validate Duo credentials when custom
6 years ago
Daniel García
bf20355c5e
Merge branch 'duo'
6 years ago
Daniel García
0136c793b4
Implement better user status API, in the future we'll probably want a way to disable users.
...
We should migrate from the empty password hash to a separate column then.
6 years ago
Daniel García
2e12114350
Always create the user when inviting from admin panel
6 years ago
ViViDboarder
d3a8a278e6
Add new endpoint for retrieving all users
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
bf446f44f9
Enable DATA_FOLDER to affect default CONFIG_FILE path
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
c5832f2b30
With the latest fern, syslog can be a config option instead of a build flag
6 years ago
Daniel García
2475c36a75
Implement log_level config option
6 years ago
Daniel García
c384f9c0ca
Set default log level to Info, we don't use debug anyway and it just fills the logs with other crates info.
6 years ago
BlackDex
6b686c18f7
Fixed long e-mail message extending 1000 lines.
...
- Added quoted_printable crate to encode the e-mail messages.
- Change the way the e-mail gets build to use custom part headers.
6 years ago
Nick Fox
7976d39d9d
Adjust whitespace
6 years ago
Nick Fox
5ee9676941
Break up long line to stop SMTP from breaking
6 years ago
Daniel García
4b40cda910
Added domain blacklist regex for icons service and improved valid domain check.
...
Reorganized the icons code a bit.
6 years ago