Commit Graph

30 Commits

Author SHA1 Message Date
Christian Andolf e08e960209 chore: add consistent type imports 2024-12-12 11:47:44 +01:00
Michael Zetterberg 4a846540c3 feat: improve handling of deployment env vars
These are now defined in Netlify UI for dedicated environments (test, stage, production):

AUTH_URL
NEXTAUTH_URL
PUBLIC_URL

Code now falls back to incoming request host. Mainly used for
deployment previews which do not have Akamai in front, meaning
we do not need the above workaround as incoming request host
matches the actual public facing host. When Akamai is in front,
we lose the public facing host in Netlify's routing layer as they
internally use `x-forwarded-for` and we can't claim it for our usage.
2024-10-15 17:03:36 +02:00
Christel Westerberg 943184c50c fix: reload window on logout 2024-09-26 13:26:21 +02:00
Christel Westerberg b9aeb8ff30 fix(SW-135): invalidate router cache on logout for my pages 2024-09-26 12:17:16 +02:00
Michael Zetterberg a33a69fb58 fix: improve auth handling and logging 2024-08-22 14:07:36 +02:00
Hrishikesh Vaipurkar 51df6bfd34 feat(SW-162): Used token instead of cookie 2024-08-14 10:44:14 +02:00
Hrishikesh Vaipurkar e7f7fb286e feat(SW-162): Updated cookie name 2024-08-14 10:44:14 +02:00
Hrishikesh Vaipurkar dde2b828cb feat: SW-162 MFA for Profile implemented 2024-08-14 10:44:10 +02:00
Michael Zetterberg 1e319fb756 fix: encode redirect url 2024-05-31 08:41:34 +02:00
Matilda Landström 0ab35679f8 fix: move logic to middleware 2024-05-31 08:18:37 +02:00
Matilda Landström 6211eda353 fix: remove clean up cookie 2024-05-31 08:18:37 +02:00
Matilda Landström 3ebe79b3c5 refactor: update logging 2024-05-31 08:18:37 +02:00
Matilda Landström 956178e6f2 chore: add redirect to Curity logout endpoint 2024-05-31 08:18:37 +02:00
Matilda Landström 9c1a24835d fix: switching null check 2024-05-31 08:18:37 +02:00
Matilda Landström 6e94d28073 fix: add back clean cookie 2024-05-31 08:18:37 +02:00
Matilda Landström b9c642a35b fix: remove returnurl since not used, remove double redirect when request coming from current web 2024-05-31 08:18:37 +02:00
Arvid Norlin 675228e4e9 chore: remove logs 2024-05-24 13:01:40 +02:00
Arvid Norlin c45380d8e2 debug: add logging 2024-05-24 11:36:00 +02:00
Matilda Landström 93cb383220 refactor: cleanup 2024-05-23 14:05:03 +02:00
Matilda Landström e3e4d6c1c8 fix: cleanup logs 2024-05-23 14:05:03 +02:00
Matilda Landström e65145687d chore: add back language specific routes 2024-05-23 14:05:03 +02:00
Matilda Landström eeceddc545 chore: remove invalidateSession 2024-05-23 14:05:03 +02:00
Matilda Landström 9a92e637b9 fix: update comment 2024-05-23 14:05:02 +02:00
Matilda Landström af1d65f4bb chore: add new endpoint for logout from current web 2024-05-23 14:05:02 +02:00
Matilda Landström 3ba78986da fix: temp logs 2024-05-23 14:05:02 +02:00
Matilda Landström 1777ed0205 chore: update logout route as login 2024-05-23 14:05:02 +02:00
Michael Zetterberg f5108d1a8e feat: improve structure and error handling 2024-05-20 00:51:16 +02:00
Michael Zetterberg a8d685c949 fix(auth): use public url for redirect 2024-05-19 11:54:03 +02:00
Michael Zetterberg 14e93eba7c chore: lint fix 2024-04-23 14:43:17 +02:00
Michael Zetterberg ca7afd3eb8 feat: logout endpoint 2024-04-17 15:51:36 +02:00