Commit Graph

2989 Commits

Author SHA1 Message Date
1168f7acdf Merge pull request #1056 from scala-steward/update/bitpeace-core-0.9.0-M3
Update bitpeace-core to 0.9.0-M3
2021-09-06 22:36:02 +00:00
a391cb5a6e Update emil-common, emil-doobie, ... to 0.10.0-M3 2021-09-07 00:24:40 +02:00
e76c5f6066 Update bitpeace-core to 0.9.0-M3 2021-09-07 00:24:27 +02:00
9386b66e43 Merge pull request #1054 from scala-steward/update/flyway-core-7.15.0
Update flyway-core to 7.15.0
2021-09-06 16:24:38 +00:00
a9b227f77e Update flyway-core to 7.15.0 2021-09-06 18:12:05 +02:00
e943b4c60d Merge pull request #1053 from eikek/feature/openid
Feature/openid
2021-09-06 12:56:46 +00:00
cc9e3a31d8 Add openid to the nixos module 2021-09-06 14:47:42 +02:00
11de82402e Add cross checks for the server config 2021-09-06 14:47:42 +02:00
4237caa755 Add some documentation for OIDC 2021-09-06 14:24:52 +02:00
28fdeb5a93 Fixing http redirect status codes 2021-09-06 11:40:47 +02:00
468ba90158 Fix OTP authentication for external accounts 2021-09-06 01:07:31 +02:00
8158e36d40 Improve logging and rename oauth->openid 2021-09-06 00:29:19 +02:00
984dda9da0 Add OpenID support to webapp 2021-09-05 23:43:07 +02:00
f8362329a9 Authenticate with external accounts using OIDC
After successful authentication at the provider, an account is
automatically created at docspell and the user is logged in.
2021-09-05 21:39:30 +02:00
7edb96a297 Register external accounts
This creates the account if it doesn't exist yet; otherwise it's a
noop. Only valid for non-local accounts.
2021-09-05 21:38:14 +02:00
aa099a340e Remove unused code 2021-09-05 21:38:14 +02:00
aef56233a5 Add a new column to distinguish local from external users 2021-09-05 21:38:14 +02:00
b73c252762 Implement authentication via OpenIdConnect and OAuth2
The new subproject "oidc" handles all the details for working with an
OpenID Connect provider (like keycloak) or only OAuth2 - only
supporting the "Authorization Code Flow" for both variants.
2021-09-05 17:32:15 +02:00
7677340fa6 Merge pull request #1051 from scala-steward/update/scalafmt-core-3.0.2
Update scalafmt-core to 3.0.2
2021-09-03 20:33:04 +00:00
177dc1fd10 Update scalafmt-core to 3.0.2 2021-09-03 22:19:45 +02:00
25e5f487ca Merge pull request #1050 from scala-steward/update/http4s-blaze-client-0.23.3
Update http4s-blaze-client, ... to 0.23.3
2021-09-02 22:29:20 +00:00
b4ab4f6d83 Update http4s-blaze-client, ... to 0.23.3 2021-09-03 00:16:02 +02:00
48b35e175f Merge pull request #1049 from scala-steward/update/sbt-openapi-schema-0.8.2
Update sbt-openapi-schema to 0.8.2
2021-09-02 20:32:56 +00:00
9f13058b23 Update sbt-openapi-schema to 0.8.2 2021-09-02 22:21:37 +02:00
4e57be6dfd Fix endpoint path in openapi spec 2021-09-02 22:06:33 +02:00
93f6f5c8c9 Merge pull request #1048 from scala-steward/update/flyway-core-7.14.1
Update flyway-core to 7.14.1
2021-09-01 22:45:48 +00:00
21ecee4f87 Update flyway-core to 7.14.1 2021-09-02 00:34:46 +02:00
73de1330f3 Merge pull request #1047 from scala-steward/update/http4s-blaze-client-0.23.2
Update http4s-blaze-client, ... to 0.23.2
2021-09-01 18:50:50 +00:00
25ce18cdef Update http4s-blaze-client, ... to 0.23.2 2021-09-01 20:40:01 +02:00
ec6ebb9e96 Merge pull request #1046 from eikek/minor-cleanups
Minor cleanups
2021-08-31 23:07:54 +00:00
3a5ef62715 Add missing sql changesets 2021-09-01 00:57:03 +02:00
9dfe7f30a0 Remove unused contact kind 2021-09-01 00:57:03 +02:00
b0d676d70d Merge pull request #1045 from scala-steward/update/scodec-bits-1.1.28
Update scodec-bits to 1.1.28
2021-08-31 20:36:30 +00:00
fecd9d0d7a Update scodec-bits to 1.1.28 2021-08-31 22:23:37 +02:00
b2589b9104 Merge pull request #1044 from eikek/feature/762-2fa
Add two-factor authentication using TOTP
2021-08-31 19:43:54 +00:00
1afc005a6c Adopt login process for two-factor auth 2021-08-31 21:29:07 +02:00
999c39833a Add user setting page for totp 2021-08-31 21:28:17 +02:00
309a52393a Initial impl for totp 2021-08-31 16:45:39 +02:00
2b46cc7970 Add a simple module for totps
This is a wrapper around the nice and minimal java-otp library [0].

[0] https://github.com/jchambers/java-otp
2021-08-31 16:45:39 +02:00
60c5120785 Merge pull request #1043 from scala-steward/update/munit-0.7.29
Update munit, munit-scalacheck to 0.7.29
2021-08-31 08:38:15 +00:00
3210195062 Update munit, munit-scalacheck to 0.7.29 2021-08-31 10:26:12 +02:00
0dc43efa9f Merge pull request #1042 from scala-steward/update/doobie-core-1.0.0-RC1
Update doobie-core, doobie-hikari to 1.0.0-RC1
2021-08-31 00:34:18 +00:00
aeeb0c252a Merge pull request #1041 from scala-steward/update/testcontainers-scala-mariadb-0.39.7
Update testcontainers-scala-mariadb, ... to 0.39.7
2021-08-31 00:32:54 +00:00
9c6329a5c6 Update doobie-core, doobie-hikari to 1.0.0-RC1 2021-08-31 02:22:13 +02:00
c1c0bcbd6b Update testcontainers-scala-mariadb, ... to 0.39.7 2021-08-31 02:22:09 +02:00
68f3d6101b Merge pull request #1040 from eikek/query-improvements
Query improvements
2021-08-30 18:30:25 +00:00
733096f979 Improve querying item results
The join to retrieve the attachment count per item turned out to be
very expensive. And it is not used anymore for the result, only to
support fulltext search. It is now removed from the query. The
DISTINCT keyword is also removed, because it is not necessary and it
is expensive. With the DISTINCT removed, a new index (provided in the
previous commit) can now be used to avoid sorting items.
2021-08-29 11:09:06 +02:00
a5a8c2553b Add indexes to better support certain queries 2021-08-29 00:38:12 +02:00
9812b8f6c8 Set new version to 21.12-SNAPSHOT 2021-08-28 12:54:44 +02:00
5cc2ad92a2 Update nix setup
Removes the consumedir module, use the module in the dsc project [0]
instead.

[0] https://github.com/docspell/dsc/blob/master/nix/module.nix
2021-08-28 12:52:43 +02:00