Commit Graph
36 Commits
Author SHA1 Message Date
Jannik Stehle f5990666d1 feat(auth-guest): add guest link logout endpoint 2026-11-10 10:39:05 +01:00
Alex Ababii e95ca276d2 feat(guestlinks): handling of SpaceShare unshared and expired events 2026-10-23 09:17:16 +02:00
Alex Ababii 821514d010 feat(guestauth): trigger ci 2026-10-20 09:17:37 +02:00
Alex Ababii 6ed4fd3fc1 fix(authguest): fix diagram parsing in readme 2026-10-16 16:09:33 +02:00
André Duffeck cf60057d4a Raise the default cap for guest link renewals without a session to 50
Renewals without a session can happen up to 48 times a day, so a lower cap could be used up to lock the guest out.
2026-10-16 13:18:30 +02:00
André Duffeck b7fd066c5f Keep the newest guest link while it can still be redeemed
Renewals without a valid session only need the share id, so they no longer cancel a link the guest hasn't used yet.
2026-10-16 13:07:38 +02:00
André Duffeck 564e1c0ec7 Rate limit guest link renewals with a valid session separately
Each session renewal issues a PIN with fresh attempts, so without a limit a stolen session could keep guessing. The quota is separate from the one for renewals without a session, so neither can use up the other's.
2026-10-16 13:05:38 +02:00
André Duffeck 60832cc61b Don't issue PINs for renewals with expired guest sessions
An expired session token now counts as no session, so the renewal only rotates the link.
2026-10-16 13:03:36 +02:00
Alex Ababii c9345db7f3 feat(authguest): fix codacy styling 2026-10-16 10:07:22 +02:00
Alex Ababii e931d1ab25 feat(auhguest): upd renew quota limiting logic 2026-10-16 10:07:22 +02:00
Alex Ababii 7a7f43f889 feat(authguest): fix the renew sessionValid condition 2026-10-16 10:07:22 +02:00
Alex Ababii 7eac7db12c feat(authguest): upd renewal flow to rely on sessionToken 2026-10-16 10:07:22 +02:00
Alex Ababii 4df88e7dc5 feat(authguest): fix README styling 2026-10-16 10:07:22 +02:00
Alex Ababii dc59c536da feat(authguest): upd error mappings 2026-10-16 10:07:22 +02:00
Alex Ababii ddf388a058 feat(authguest): nonce and pin ttl are now using the same value 2026-10-16 10:07:22 +02:00
Alex Ababii fd25c8c88d feat(authguest): removed session token verification on renew endpoint 2026-10-16 10:07:21 +02:00
Alex Ababii 57e72213f7 feat(authguest): per share nonce cookie name 2026-10-16 10:01:56 +02:00
Alex Ababii 9d2c3d40fd feat(authguest): fix codacy issues 2026-10-16 10:01:56 +02:00
Alex Ababii 6e6330f68c feat(authguest): upd readme 2026-10-16 10:01:56 +02:00
Andre Duffeck ddd0eda688 Merge pull request #3727 from aduffeck/guest-session-expiry
Return ExpiresAt when issueing a session token
2026-10-15 17:55:10 +02:00
André Duffeck 989a2e9f30 Add email notifications when a guest link has been renewed
The notifications service now consumes the GuestTokenRenewed event and
mails the new guest link together with the one-time PIN to the guest.
The created and renewed mails share one code path; GuestTokenRenewed
carries no resource name, so the resource is stat'ed for it.
2026-10-15 10:35:10 +02:00
André Duffeck a230d7e193 Return ExpiresAt when issueing a session token 2026-10-15 10:34:00 +02:00
Alex Ababii 1c40729dec feat(authguest): fix code style in readme 2026-10-13 09:49:22 +02:00
Alex Ababii 6198c21357 feat(authguest): /redeem endpoint rename to /verify/token 2026-10-13 09:30:52 +02:00
Alex Ababii 7cfc601ddb feat(authguest): fix codacy issues 2026-10-13 09:30:52 +02:00
Alex Ababii b266546a45 feat(authguest): upd renewal logic to verify token and session, storage has now revisions 2026-10-13 09:30:52 +02:00
Alex Ababii fb09fedc20 feat(authguest): upd README 2026-10-13 09:30:52 +02:00
Alex Ababii 69d2f7f95d feat(authguest): updated README 2026-10-13 09:30:52 +02:00
André Duffeck 10b93edded Derive the guest session key from OC_JWT_SECRET
Replace AUTH_GUEST_SESSION_JWT_SECRET with a key derived via
HMAC-SHA256 from the reva JWT secret. Guest session tokens and reva
access tokens remain unforgeable across each other without a second
secret to configure.
2026-10-07 08:46:53 +02:00
André Duffeck adc8a51657 Don't use the same secret for signing sessions and reva tokens 2026-10-06 09:52:02 +02:00
Alex Ababii c1dc12deee feat(guestauth): upd readme with guest links flow diagram 2026-10-06 08:08:28 +02:00
Alex Ababii c5879ca1b2 feat(guestauth): renaming guest ivitations to guest links for consistency with libre-graph-api 2026-10-06 08:08:28 +02:00
Alex Ababii a1a8221f68 feat(guestauth): global flag to disable the guest links feature 2026-10-06 08:08:26 +02:00
Alex Ababii 340851de70 feat(guestauth): updated redeem endpoint response and dependencies 2026-10-06 08:07:44 +02:00
Alex Ababii e17a9a3ae9 feat(guestauth): aligned readme 2026-10-06 08:07:44 +02:00
Alex Ababii cbf3ee8c0b feat(guestauth): guestauth service rename to auth-guest 2026-10-06 08:07:44 +02:00