Commit Graph

26 Commits

Author SHA1 Message Date
Lennart
23007a3bda Implement Nextcloud login flow 2025-02-09 22:14:55 +01:00
Lennart
1d103ea312 user: Add name to app token 2025-02-09 17:28:15 +01:00
Lennart
d0d7a6dc78 user: Rename user_type to principal_type 2025-02-09 17:21:29 +01:00
Lennart
8948589b09 Breaking changes to auth provider, principal store outsourced to new config file 2025-02-09 17:19:08 +01:00
Lennart
aa6bd1cbc0 implement principal types 2025-02-02 15:12:15 +01:00
Lennart
bb8f2bb370 implement principal types 2025-02-02 12:27:03 +01:00
Lennart
ccae96bb17 Add principal memberships to allow group accounts 2025-02-02 11:58:58 +01:00
Lennart
031d94c9d1 Some preparations for supporting principal memberships 2025-02-02 11:34:10 +01:00
Lennart
d67efd8feb Remove accidentally pushed code 2025-02-02 10:31:34 +01:00
Lennart
21af6b0535 auth: Remove unused UserStore trait and put app_tokens into User struct 2025-01-29 10:28:07 +01:00
Lennart
577091cf02 Workaround for #10 2025-01-04 16:10:07 +01:00
Lennart
4fd32b3f33 minor cleanup stuff 2024-11-03 23:21:27 +01:00
Lennart
31c7143dd8 frontend: Add redirect to login page for unauthorized requests 2024-11-03 16:23:37 +01:00
Lennart
0f2db05a07 Add some CLI commands to generate a default configuration and password hashes 2024-11-03 13:17:38 +01:00
Lennart
3ea004f75d store auth: Fix bug that app tokens were only usable when password is set 2024-11-03 13:10:52 +01:00
Lennart
ac0206568d remove debug print 2024-10-13 19:53:25 +02:00
Lennart
7ce0fc53a4 Add authentication with session cookie 2024-10-13 19:05:57 +02:00
Lennart
c2dbd9d0b9 auth: Add tracing around token validation 2024-10-09 00:30:42 +02:00
Lennart
41aa1a2105 Add proper Unauthorized error for user extractor 2024-10-09 00:07:13 +02:00
Lennart
f7d253de85 Add app tokens (secondary passwords) to afford cheaper hashes 2024-10-06 12:54:19 +02:00
Lennart
4e85d129d1 change user.rs 2024-10-04 11:58:29 +02:00
Lennart
a47d056df0 Massive refactoring how DAV resources and routes work 2024-10-03 23:02:13 +02:00
Lennart
9c8c05eaca Fix that auth middleware should not actually throw an error when unauthorized 2024-10-03 20:24:14 +02:00
Lennart
4872d67a36 remove comment 2024-10-03 19:55:43 +02:00
Lennart
dd3d05907c Move authentication middleware into the caldav scope 2024-10-03 19:55:05 +02:00
Lennart
6f12a1d80e completely rebuilt the auth implementation to support OIDC in the future 2024-10-03 19:47:50 +02:00