feat: persist link share auth rule in url hash #3336

Merged
konrad merged 11 commits from feature/persist-link-share-hash-in-url into main 2023-06-19 14:26:35 +00:00

11 Commits

Author SHA1 Message Date
34182b8bbb
fix: follow the happy path
All checks were successful
continuous-integration/drone/pr Build is passing
2023-06-19 15:28:06 +02:00
20660564c1
feat: change the link share hash name 2023-06-19 15:28:06 +02:00
c2ffe3a9dc
feat: check link share auth from store instead 2023-06-19 15:28:06 +02:00
a33e2f6c00
chore: follow the happy path 2023-06-19 15:28:06 +02:00
0ce150af23
chore: move const 2023-06-19 15:28:06 +02:00
06a1ff6f4b
chore: reduce nesting 2023-06-19 15:28:06 +02:00
7c964c29d4
fix: return redirect 2023-06-19 15:28:06 +02:00
b9f0635d9f
feat: rename link share hash prefix 2023-06-19 15:28:05 +02:00
61baf02e26
chore: import const instead of redeclaring it 2023-06-19 15:28:05 +02:00
59b05e9836
chore: rename getRedirectRoute 2023-06-19 15:28:05 +02:00
f68bb2625e
feat: persist link share auth rule in url hash
This allows sharing links to a task directly. We're using hashes instead
of query parameters because hash values are usually not logged in access
logs.

With this change, when a user uses a link share, the link share hash
will be appended to all urls while browsing. When a link share hash is
encountered in the current url and the user is not authenticated, they
will be redirected to the link share auth page, get authenticated and
then get redirected to whatever url they were previously on.
2023-06-19 15:28:05 +02:00