Radical radical
  • Norway
  • Joined on 2025-04-28
radical deleted branch wip/authorization-header from gorb/backend 2025-05-04 21:18:29 +00:00
radical merged pull request gorb/backend#7 2025-05-04 21:18:28 +00:00
wip/authorization-header
radical pushed to wip/authorization-header at gorb/backend 2025-05-04 21:02:23 +00:00
c61f96ffe7 feat: expire refresh_token immediately on unauthorized response
radical commented on pull request gorb/backend#7 2025-05-04 20:59:08 +00:00
wip/authorization-header

revoke will not be changed however, we'll have a separate endpoint for logout

radical commented on pull request gorb/backend#7 2025-05-04 20:57:47 +00:00
wip/authorization-header

apparently actix has a built in for this, ill implement it

let mut refresh_token_cookie = refresh_token_cookie(refresh_token);

refresh_token_cookie.make_removal();

return
radical commented on pull request gorb/backend#7 2025-05-04 20:52:44 +00:00
wip/authorization-header

@sauceyred wrote in gorb/backend#7 (comment):

@radical wrote in #7 (comment):

@sauceyred wrote in #7 (comment):

@radical wrote in #7…

radical commented on pull request gorb/backend#7 2025-05-04 20:48:55 +00:00
wip/authorization-header

also why does the backend need to set it to 0, shouldnt the frontend just remove the token if it gets a 401?

radical commented on pull request gorb/backend#7 2025-05-04 20:46:31 +00:00
wip/authorization-header

@sauceyred wrote in gorb/backend#7 (comment):

@radical wrote in #7 (comment):

@sauceyred wrote in #7 (comment):

Please add `Set-Cookie:…

radical commented on pull request gorb/backend#7 2025-05-04 20:38:55 +00:00
wip/authorization-header

@sauceyred wrote in gorb/backend#7 (comment):

Please add Set-Cookie: refresh_token={token}; HttpOnly; Secure; SameSite=None; Path=/api/; Max-Age=0 to the…

radical pushed to wip/authorization-header at gorb/backend 2025-05-04 20:13:33 +00:00
0f897dc0c6 feat: return refresh_token in cookie
ebb4286c08 refactor: move api to /api
Compare 2 commits »
radical pushed to wip/authorization-header at gorb/backend 2025-05-04 19:30:37 +00:00
f12f81d584 fix: extract auth value
radical pushed to wip/authorization-header at gorb/backend 2025-05-04 18:30:33 +00:00
a3846a2620 fix: use correct header
radical opened issue gorb/backend#8 2025-05-04 17:42:36 +00:00
Deserialization of JSON bodies
radical created pull request gorb/backend#7 2025-05-04 17:13:38 +00:00
wip/authorization-header
radical pushed to wip/authorization-header at gorb/backend 2025-05-04 17:09:26 +00:00
cbf0131d14 feat: switch to headers for auth
6c706d973e style: use created_at instead of created
Compare 2 commits »
radical created branch wip/authorization-header in gorb/backend 2025-05-04 17:05:55 +00:00
radical pushed to wip/authorization-header at gorb/backend 2025-05-04 17:05:55 +00:00
bb9c14db3d switch to headers for auth
b7a1043081 use created_at instead of created
aa865e2ed4 feat: add utils.rs
Compare 3 commits »
radical pushed to wip/messaging at gorb/backend 2025-05-04 04:25:14 +00:00
776750578d style: 🎨 restructure server folder
radical suggested changes for gorb/backend#6 2025-05-03 23:28:53 +00:00
wip/username-regex
radical commented on pull request gorb/backend#6 2025-05-03 23:28:53 +00:00
wip/username-regex

numbers dont work with this regex