Commit Graph

1132 Commits

Author SHA1 Message Date
Michael Mayer
1723ebca4f Albums: Refactor Album.YAML() method #4237
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-09 10:16:51 +02:00
Michael Mayer
0bd3349cef Places: Don't retry fetching missing locations in meta worker #4237
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-09 09:29:30 +02:00
Michael Mayer
22cb0ac1a9 Subjects: Do not use or count people tagged on private pictures #4238
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-08 15:35:30 +02:00
graciousgrey
09ca932a88 Tests: Add unit tests 2024-05-07 16:21:54 +02:00
Michael Mayer
39075efd85 Auth: Improve IP sanitization and security logs #808
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-03 15:49:48 +02:00
Michael Mayer
f968c38d61 Auth: Improve logging in auth_session_login.go 2024-05-02 15:40:08 +02:00
graciousgrey
4b4346930b Tests: Add fixtures 2024-04-30 14:47:56 +02:00
knowmost
020e9e7e19 chore: fix some comments and typos
Signed-off-by: knowmost <knowmost@outlook.com>
2024-04-28 08:19:20 +02:00
Michael Mayer
c8acfb98c0 Auth: Improve error message in auth_user.go 2024-04-25 11:36:15 +02:00
Michael Mayer
d6e969b851 Metadata: Don't ignore stop words when generating title from name #4192
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-18 11:43:33 +02:00
Michael Mayer
0134c68d2c Config: Add option to change default session cache duration #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-17 08:26:35 +02:00
Michael Mayer
ada91516f3 Metadata: Ignore lens and exposure values that are out of range #4170
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-12 13:56:39 +02:00
Michael Mayer
153bb8e564 Auth: Extend session lifetime if 2FA is enabled #808 #3943 #4114
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-12 13:30:30 +02:00
Michael Mayer
3482a199c9 Performance: Add index for file_error in the files table #4149
This also removes a likely unused index on "file_main_color".

Any help with testing these changes is much appreciated, especially in
combination with different database types and versions!

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-08 20:56:59 +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
Michael Mayer
851a7393ef WebDAV: Refactor audit log messages
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-04 11:23:09 +02:00
Michael Mayer
2185618910 API: Refactor authentication failure rate limit #808 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-04-04 11:18:05 +02:00
Michael Mayer
31d1f06ffa Security: Refactor rate limits for failed authentication request #808
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-03-31 14:45:17 +02:00
Michael Mayer
37c3c9d624 Account: Add auth-related error messages to pkg/authn #808 #4114
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-03-29 12:16:26 +01:00
Michael Mayer
1912cd54ca Account: Add GET /api/v1/users/:uid/sessions endpoint #808 #4114
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-03-28 13:24:12 +01:00
graciousgrey
afe6337bb5 Tests: Add unit tests #808 #3943 2024-03-27 17:01:17 +01:00
graciousgrey
5821ab7e2a Tests: Add unit tests #808 #3943 2024-03-27 13:24:09 +01:00
graciousgrey
67ab7bf036 Tests: Add unit tests #808 #3943 2024-03-26 13:43:43 +01:00
Michael Mayer
fc1b581442 Index: Show warning if extension does not match mimetype #3518 #4118
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-03-25 15:04:35 +01:00
graciousgrey
07e1eb0b11 Tests: Add unit tests #808 #3943 2024-03-22 14:57:32 +01:00
Michael Mayer
edac621daf Auth: Deactivate 2FA if recovery code has been used #808
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-03-21 19:26:44 +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
Michael Mayer
d9b3d4c2aa Auth: Change query limit in auth_session.go
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-02-29 11:50:08 +01:00
Michael Mayer
1e1abb4035 Index: Create a new photo record if UID was restored from YAML #4063
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-02-09 11:54:31 +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
fd0006928e OAuth2: Remove sessions when client is deleted or disabled #213 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-29 18:10:32 +01:00
Michael Mayer
fe7e342692 OAuth2: Improve authentication logs and commands #213 #3730 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-29 17:32:53 +01:00
Michael Mayer
70f8c3be6c WebDAV: Re-enable authentication with account password #782 #808
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-29 14:48:15 +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
graciousgrey
27dda3bc2b Tests: Add unit tests 2024-01-23 16:13:27 +01:00
Michael Mayer
86dc89c4b9 Config: Show error if originals and storage path seem identical #1642
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-21 14:22:16 +01:00
Michael Mayer
db9b33ddea Backend: Change alias name for map[string]interface{} from Value to Map
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-20 15:01:40 +01:00
Michael Mayer
a4e2bb33b9 2FA: Rename "Auth Secret" to "App Password" for more clarity #782 #808
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-19 18:10:01 +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
Michael Mayer
271e7243db Logs: Shorten the names of error log helper functions
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-18 11:23:59 +01:00
Michael Mayer
2912ac9464 Security: Refactor cache headers, auth token validation & UI #782 #808
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-17 14:16:02 +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
graciousgrey
4e7a61ffe5 Tests: Add unit tests 2024-01-15 17:12:34 +01:00