Commit Graph

355 Commits

Author SHA1 Message Date
Michael Mayer
01f15fa406 Backend: Update copyright notices
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-01-09 10:28:17 +01:00
Michael Mayer
9eef183323 CLI: Upgrade github.com/urfave/cli from v1 to v2 #3168
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-12-05 17:15:59 +01:00
Michael Mayer
5cd6e71fdf Backend: Add "document" media type for indexing PDF documents #4600
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-10-31 10:56:06 +01:00
Michael Mayer
735a3a2d13 Places: Use float64 for all coordinates to avoid rounding errors #3953
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-09-15 13:52:31 +02:00
Michael Mayer
fe9caaa83b OIDC: Improve CLI commands and add AuthIssuer to users and sessions #782
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-07-09 11:01:59 +02:00
Michael Mayer
11e5246e33 OIDC: Ensure subject IDs are unique and super-admins can edit them #782
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-07-08 18:16:24 +02:00
Michael Mayer
1ee04c3017 Backend: Move unix package to /pkg/time/unix
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-07-03 09:31:27 +02:00
graciousgrey
963aed43fc Tests: Add unit tests #782 2024-07-02 12:54:56 +02:00
Michael Mayer
c096382dbd Backend: Rename /internal/remote package to /internal/service
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-07-02 08:00:27 +02:00
Michael Mayer
a97f8d0795 API: Implement OIDC redirect endpoint #782
Requires further testing and refinement before it can be released.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-07-01 16:50:53 +02:00
Michael Mayer
366b738b94 Search: Update notes in search_photos.go and search_photos_geo.go #4300
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-27 09:21:55 +02:00
Michael Mayer
7430adbb33 Search: Change time_format to RFC3339 and add "edited" filter #4300
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-27 09:16:21 +02:00
Michael Mayer
b49e66ecf7 Search: Improve added/updated filter annotations #4300
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-25 19:41:18 +02:00
Michael Mayer
73e51f1887 Search: Add added/updated search filters and "updated" sort order #4300
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-25 18:50:10 +02:00
Michael Mayer
0df3feb4f1 Search: Add link on date to view photos taken on the same day #4273
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-20 12:56:45 +02:00
graciousgrey
ca52f0efa5 Tests: Add unit tests 2024-05-07 16:22:25 +02:00
Michael Mayer
c9213da4e6 Account: Generate app password from the UI #808 #4114
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-08 10:44:43 +02:00
Michael Mayer
33fac8f404 API: Implement creation and revocation of app passwords #808 #4114
Note that these changes are not production ready yet and must be tested
well before releasing them.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-07 16:44:30 +02:00
Michael Mayer
b11491c9d6 Auth: Refactor grant, method, and provider types in pkg/authn #808 #4114
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-06 15:13:15 +02:00
Michael Mayer
fdc2062d33 Account: Refactor access token API and request forms #808 #4114
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-05 14:46:11 +02:00
graciousgrey
5821ab7e2a Tests: Add unit tests #808 #3943 2024-03-27 13:24:09 +01:00
Michael Mayer
4425becb3d Auth: Implement 2FA setup and login in the web user interface #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-03-21 14:32:51 +01:00
graciousgrey
dfe7142c8f Tests: Add unit tests 2024-01-31 14:16:13 +01:00
Michael Mayer
d0ad3c23fb OAuth2: Remove client soft delete and fix client add command #213 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-29 21:08:01 +01:00
Michael Mayer
305e7bac68 OAuth2: Refactor "client add" and "client mod" CLI commands #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-29 13:54:50 +01:00
Michael Mayer
966c421cd4 Auth: Update internal/form/client_test.go #782 #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-19 15:12:47 +01:00
Michael Mayer
06a18f5818 Auth: Add "access_token" authentication provider type #782 #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-19 14:41:08 +01:00
Michael Mayer
4ba32a7220 2FA: Add two-factor authentication key model and tests #782 #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-19 13:45:30 +01:00
Michael Mayer
7e7ba69982 Auth: Add client_uid and client_name to auth_sessions table #808 #3943
This also adds the ability to change the client role if needed and
improves the usage information and output of the CLI commands.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-18 16:53:05 +01:00
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
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
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
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
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
Michael Mayer
0ca37b2c92 Docs: Update year in backend and frontend package file headers
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-05 16:38:36 +01:00
Michael Mayer
467f7b1585 OAuth2: Add Client Credentials Authentication #213 #782 #808 #3730 #3943
This adds standard OAuth2 client credentials and bearer token support as
well as scope-based authorization checks for REST API clients. Note that
this initial implementation should not be used in production and that
the access token limit has not been implemented yet.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-12-12 18:42:50 +01:00
Michael Mayer
eb19a4a893 Search: Add filter to find pictures by resolution range in MP #3896
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-11-20 11:47:23 +01:00
Michael Mayer
c2b56346b6 Search: Remove obsolete "fmin" and "fmax" filters #3818
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-10-21 16:33:00 +02:00
Michael Mayer
cca124e093 Search: Refactor GPS altitude range filter #3800
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-10-20 12:54:55 +02:00
Gilbert32
132237e47b Search: Add altitude range filter (#3800)
* Add Altitude filters using IntRange

* Rename Altitude test
2023-10-20 12:23:20 +02:00
Michael Mayer
6a452bcf43 Search: Add Filters for ISO, FNumber and Focal Length Range #3818
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-10-12 14:53:40 +02:00
graciousgrey
3788a82d91 Docs: Update search form docs 2023-09-21 18:37:33 +02:00
Michael Mayer
a865300666 Places: Add support for "label" and "category" search filters #1187
This also improves the documentation of existing search filters.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-09-20 22:07:30 +02:00
Michael Mayer
267430bf78 Places: Update assertion in search_photos_test.go #3558
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-09-20 18:39:39 +02:00
Michael Mayer
33bf0cede6 Places: Support sub-km distances when searching for locations #3558
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-09-20 18:37:41 +02:00
Michael Mayer
4d1003846c Search: Refactor "lat", "lng", and "dist" filters #1187 #3558
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-09-20 16:56:38 +02:00
Michael Mayer
06d8816a7f Search: Improve location search filters and related docs #1187 #3558
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-09-20 12:10:49 +02:00
Michael Mayer
85506f9373 Places: Improve parsing and querying of GPS boundaries #1187 #3657
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-09-20 03:18:30 +02:00
Michael Mayer
a92653d4f2 Places: Refactor cluster view overlay and backend API #1187 #3657
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-09-19 22:03:40 +02:00