Commit Graph

1216 Commits

Author SHA1 Message Date
Derrick Hammer 93105fe5af
refactor: add auth token to the request context 2024-03-18 17:17:52 -04:00
Derrick Hammer 040c662826
refactor: echo the auth cookie back if any exist 2024-03-18 17:03:17 -04:00
Derrick Hammer 66f73d1a53
feat: add EchoAuthCookie 2024-03-18 17:02:16 -04:00
Derrick Hammer 48dc1b9be0
Revert "fix: remove Secure property"
This reverts commit 9e5d996f20.
2024-03-18 16:54:42 -04:00
Derrick Hammer 9e5d996f20
fix: remove Secure property 2024-03-18 16:40:29 -04:00
Derrick Hammer 649e0e0011
Revert "fix: remove Secure property"
This reverts commit 044604d863.
2024-03-18 16:40:18 -04:00
Derrick Hammer 044604d863
fix: remove Secure property 2024-03-18 16:31:42 -04:00
Derrick Hammer fd53b98633
fix: allow Upload-Metadata in cors 2024-03-18 15:53:40 -04:00
Derrick Hammer 5b8a7f79f0
fix: use AllowOriginFunc in tus 2024-03-18 15:45:29 -04:00
Derrick Hammer 228cabd83b
fix: cid needs to be lowercase 2024-03-18 14:26:45 -04:00
Derrick Hammer 99d47a4d9c
fix: need to enable AllowCredentials 2024-03-18 14:19:34 -04:00
Derrick Hammer 6b51e7196c
fix: need to whitelist Authorization and Content-Type headers 2024-03-18 14:16:04 -04:00
Derrick Hammer dcab0b46cd
fix: upload cors does not support wildcard methods 2024-03-18 14:13:40 -04:00
Derrick Hammer 65278cb046
fix: add options routes for basic upload 2024-03-18 14:06:58 -04:00
Derrick Hammer 455b793db6
dep: update dashboard 2024-03-18 13:51:29 -04:00
Derrick Hammer 3b01c8642d
refactor: add cors mw for account 2024-03-18 13:50:21 -04:00
Derrick Hammer c68dc51732
refactor: add cors mw for uploads 2024-03-18 13:39:50 -04:00
Derrick Hammer e864bcb098
feat: add upload limit endpoint 2024-03-17 11:16:50 -04:00
Derrick Hammer e73ab26ebf
feat: add logout endpoint 2024-03-17 09:27:57 -04:00
Derrick Hammer 0e18f695cf
fix: name needs to be AuthTokenName, actually use jwt 2024-03-17 09:22:47 -04:00
Derrick Hammer fd75ec3f6a
fix: bad alias for authCookieName 2024-03-17 09:19:33 -04:00
Derrick Hammer 9306051812
fix: use account.SetAuthCookie 2024-03-17 09:18:31 -04:00
Derrick Hammer d893216831
fix: SetAuthCookie needs the jwt 2024-03-17 09:18:01 -04:00
Derrick Hammer 675a583422
refactor: update SetAuthCookie to use routeableApi.AuthTokenName() 2024-03-17 09:15:47 -04:00
Derrick Hammer 5861e95fb5
refactor: update use of SetAuthCookie 2024-03-17 09:15:24 -04:00
Derrick Hammer e7393085b4
refactor: implement new methods for RoutableAPI 2024-03-17 09:13:20 -04:00
Derrick Hammer 4bd2b028b7
chore: remove local setAuthCookie 2024-03-17 09:10:14 -04:00
Derrick Hammer 107118febc
refactor: switch to account.SetAuthCookie 2024-03-17 09:09:57 -04:00
Derrick Hammer 244aa89d71
refactor: use jape.Context 2024-03-17 09:09:29 -04:00
Derrick Hammer 9a899317c1
refactor: implement Domain and AuthTokenName 2024-03-17 09:02:48 -04:00
Derrick Hammer b4b211d003
feat: add BuildSubdomain helper 2024-03-17 09:01:28 -04:00
Derrick Hammer 2a8c036dc6
refactor: set auth cookie for every api, and optionally pass a specific api name to only set instead 2024-03-17 08:59:34 -04:00
Derrick Hammer 325a368dea
refactor: add AuthTokenName to RoutableAPI 2024-03-17 08:53:56 -04:00
Derrick Hammer 5223a44790
refactor: move DEFAULT_AUTH_COOKIE_NAME to account 2024-03-17 08:51:59 -04:00
Derrick Hammer 33e644f5c7
refactor: add Domain method to RoutableAPI 2024-03-17 08:51:23 -04:00
Derrick Hammer 3dfdd2d2f4
refactor: add GetAllAPIs 2024-03-17 08:42:53 -04:00
Derrick Hammer 3e48593675
refactor: register api after init 2024-03-17 08:42:25 -04:00
Derrick Hammer ae37a186a9
feat: add dedicated registry for api objects 2024-03-17 08:41:40 -04:00
Derrick Hammer a85ced7c62
refactor: change Registry name to EntryRegistry 2024-03-17 08:36:32 -04:00
Derrick Hammer 61012ae394
fix: change property name 2024-03-17 08:33:24 -04:00
Derrick Hammer 1bd4527300
fix: use middleware.DEFAULT_AUTH_COOKIE_NAME for authCookieName 2024-03-17 08:30:55 -04:00
Derrick Hammer 6c58f6bd6c
refactor: use SetAuthCookie and set both DEFAULT_AUTH_COOKIE_NAME and s5 authCookieName 2024-03-17 08:17:56 -04:00
Derrick Hammer 51c7211c39
feat: add SetAuthCookie helper 2024-03-17 08:15:27 -04:00
Derrick Hammer b03e6815e2
refactor: fall back and check for DEFAULT_AUTH_COOKIE_NAME 2024-03-17 08:13:50 -04:00
Derrick Hammer 193871f083
fix: error if user is nil 2024-03-16 21:31:09 -04:00
Derrick Hammer 3dc5c72840
fix: auth cookie needs to be at the root path 2024-03-16 21:14:43 -04:00
Derrick Hammer 1ca8d78c8e
fix: need to use develop branch for dashboard submodule 2024-03-16 21:07:57 -04:00
Derrick Hammer 57a455a17e
refactor: need to handle get requests as nested jape routers with special routing checks to ensure virtual client side app routing returns the static bundle 2024-03-16 21:05:42 -04:00
Derrick Hammer 5431cac73d
feat: initial docker file 2024-03-16 18:57:01 -04:00
Derrick Hammer 41edceb11c
chore: tidy 2024-03-16 18:16:14 -04:00