Commit graph

8526 commits

Author SHA1 Message Date
graciousgrey
c478025513 Tests: Add unit tests #3943 2024-01-16 18:10:59 +01:00
graciousgrey
2bf65737d3 Tests: Add unit tests #3943 2024-01-16 18:10:59 +01:00
Michael Mayer
da10b30fdf API: Add auth token to vary header for caching proxies and CDNs #3931
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-16 16:42:21 +01:00
Michael Mayer
c3b9b73d1d API: Only allow CDNs to cache GET, HEAD, and OPTIONS requests #3931
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-16 16:17:16 +01:00
graciousgrey
e5aa76730f Tests: Add unit tests #3943 2024-01-16 16:10:57 +01:00
graciousgrey
121a19c58c Tests: Add unit tests #3943 2024-01-16 16:10:57 +01:00
Michael Mayer
02a1b12edb Config: Update CORS header defaults and add /api/v1/echo endpoint #3931
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-16 14:36:08 +01:00
Michael Mayer
c660c729e2 Frontend: Update deps in package-lock.json
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-16 12:52:10 +01:00
Michael Mayer
4e981536c9 Translations: Add Vietnamese (Tiếng Việt) #4004 #4007
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-16 12:51:20 +01:00
Weblate
3b9f1d1515 Weblate: Update backend translations 2024-01-16 12:39:07 +01:00
Weblate
734214f417 Weblate: Update frontend translations 2024-01-16 12:38:39 +01:00
Weblate
ccc5130a20 Weblate: Update frontend translations 2024-01-16 12:34:55 +01:00
Michael Mayer
239708f00f Config: Add options to configure CORS origin, headers and methods #3931
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-16 12:14:06 +01:00
graciousgrey
4e7a61ffe5 Tests: Add unit tests 2024-01-15 17:12:34 +01:00
Michael Mayer
2fb8684a3c Develop: Upgrade base image from 240112-mantic to 240115-mantic #4000
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-15 15:24:56 +01:00
Michael Mayer
f7a1a13aaf Docker: Create missing user accounts in entrypoint-init.sh script #4000
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-15 15:03:44 +01:00
Michael Mayer
c5f6a28448 Config: Add PHOTOPRISM_HTTP_CORS option for CDN users #3931 #3940
In addition, the Access-Control-Allow-Origin header is set to the same
URL if an Origin header is found in the request (experimental).

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-15 13:06:27 +01:00
Michael Mayer
e44262d4ea Config: Ignore configured CDN URL if the same as the Site URL #3931
see https://docs.photoprism.app/getting-started/using-a-cdn/#cloudflare

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-15 10:54:03 +01:00
Michael Mayer
c38962e469 API: Deny client access if the scope is not authorized #782 #808
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-14 19:27:38 +01:00
Michael Mayer
5dedc8a7c0 Auth: Apply same scope when session is created from auth token #782 #808
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-14 18:53:27 +01:00
Michael Mayer
fed1d8ad95 Auth: Accept access token as passwd with fail rate limit #782 #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-14 18:28:17 +01:00
Michael Mayer
9586a9ec69 Auth: Refactor API to allow auth secrets to be used as tokens #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-14 12:01:26 +01:00
Michael Mayer
b9b12fd56a Backend: Update deps in go.mod and go.sum
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-14 11:49:36 +01:00
Michael Mayer
7e964268a0 Frontend: Update deps in package.json and package-lock.json
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-14 11:49:00 +01:00
Michael Mayer
7840858b3e Frontend: Update translations.json #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-14 11:15:53 +01:00
Weblate
35fd8052b5 Weblate: Update frontend translations 2024-01-14 11:15:00 +01:00
Michael Mayer
23c0751171 Frontend: Update session.js and translations.pot #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-14 11:11:05 +01:00
Michael Mayer
d7710adce0 Auth: Improve "auth add" and "client add" CLI commands #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-14 09:51:49 +01:00
Michael Mayer
d89d3eaebf Frontend: Update deps in package.json and package-lock.json
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-13 16:31:18 +01:00
Michael Mayer
c5db7519b4 Frontend: Update translations.pot and translations.json #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-13 16:28:45 +01:00
Michael Mayer
e21e462f00 Auth: Improve "auth add" and "client add" CLI commands #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-13 16:27:05 +01:00
Weblate
94370bbc39 Weblate: Update frontend translations 2024-01-13 14:51:27 +01:00
Michael Mayer
91eadbc21f Auth: Reset existing user/browser sessions when upgrading #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-12 12:50:52 +01:00
Michael Mayer
9305f7fd68 Backend: Update deps in go.mod
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-12 12:46:47 +01:00
Michael Mayer
34b41cf606 Config: Update default wallpaper image
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-12 12:46:18 +01:00
Michael Mayer
7bdba93909 Develop: Upgrade base image from 240110-mantic to 240112-mantic
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-12 12:18:56 +01:00
Michael Mayer
93bc8996bc Entities: Update schema/mariadb.mmd
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-12 12:02:38 +01:00
Michael Mayer
c86764fa4b Entities: Update database schema SQL and mariadb.mmd
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-12 10:30:11 +01:00
Michael Mayer
cf71582e3f WebDAV: Require username when authenticating with basic auth #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-11 18:51:38 +01:00
Michael Mayer
584418cdb4 Search: Add photo.isStack() method to only flag actual stacks #3993
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-11 15:30:24 +01:00
Michael Mayer
b259d8fcd3 Frontend: Add closing div tag in component/photo/list.vue #3992
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-11 14:43:59 +01:00
Michael Mayer
e8ca9b8db2 WebDAV: Check if basic auth user matches the token, if set #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-11 12:49:31 +01:00
Michael Mayer
5bdc2a8b39 Frontend: Update deps in package.json and package-lock.json
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-11 12:10:34 +01:00
Michael Mayer
d481bc3d34 WebDAV: Add token authentication tests #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-11 12:08:39 +01:00
Michael Mayer
eff130cf90 WebDAV: Allow authentication with auth token and any username #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-11 11:37:36 +01:00
Michael Mayer
cc356abe03 WebDAV: Allow authentication with auth token and no username #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-10 18:03:38 +01:00
Michael Mayer
7d78ee803a Use human-friendly secrets & names for personal access tokens #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-10 17:23:08 +01:00
Michael Mayer
94e361a8fd WebDAV: Add authorization check based on auth tokens #782 #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-10 16:54:13 +01:00
Michael Mayer
7ef544fa53 Docs: Improve inline comments of the internal/server package #782 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-10 12:46:00 +01:00
Michael Mayer
7a05c5553b OAuth2: Add "POST /api/v1/oauth/revoke" API endpoint #782 #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-10 12:21:43 +01:00