Commit Graph

1238 Commits

Author SHA1 Message Date
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
Derrick Hammer fd6c3e8604
fix: wrong embed path 2024-03-16 17:46:36 -04:00
Derrick Hammer cc1efd5d85
feat: add dashboard as a submodule and register embed and routing in account api 2024-03-16 17:13:29 -04:00
Derrick Hammer f6b28b0ee0
chore: temp disable email verification for testing 2024-03-16 15:43:52 -04:00
Derrick Hammer 971c72ada9
fix: add 401 status code 2024-03-16 11:37:42 -04:00
Derrick Hammer f558d87b36
fix: update /s5/account/pins response 2024-03-16 11:36:38 -04:00
Derrick Hammer ccae147398
feat: implement a basic account pins json api without paging 2024-03-16 11:14:06 -04:00
Derrick Hammer 8a2f501e8e
refactor: rename accountPins to accountPinsBinary 2024-03-16 11:00:27 -04:00
Derrick Hammer 86c53d3c54
refactor: add default for auth_type 2024-03-15 07:39:43 -04:00
Derrick Hammer cafe863350
fix: add missing mapstructure tags 2024-03-15 07:39:18 -04:00
Derrick Hammer 41f9947429
fix: ensure AuthType is uppercase 2024-03-15 07:37:44 -04:00
Derrick Hammer 8b687d506f
fix: set to and from 2024-03-15 07:31:47 -04:00
Derrick Hammer 52f462e03e
refactor: add from to mail config 2024-03-15 07:30:39 -04:00
Derrick Hammer 2d571e3484
fix: remove minutes from template copy 2024-03-15 07:27:45 -04:00
Derrick Hammer ba0d32bb63
fix: update how ExpireTime is computed 2024-03-15 07:27:24 -04:00
Derrick Hammer 7c6fec61b6
fix: remove tpl extension 2024-03-15 07:03:35 -04:00
Derrick Hammer fae98f3d52
refactor: fix gob paths and template prefix/suffixes 2024-03-15 07:01:22 -04:00
Derrick Hammer e11340ad2b
refactor: ensure we set a cookie, auth header and json response in both login and otp validate 2024-03-14 12:54:41 -04:00
Derrick Hammer e380dacced
fix: loop needs to start at 1 so it's not outside the history range, else it tries to always create a date on boot 2024-03-14 07:40:12 -04:00
Derrick Hammer 37708c91f2
fix: don't compute by usd the contract price 2024-03-14 07:20:11 -04:00
Derrick Hammer 7d87ed6ad7
refactor: switch to using newRat 2024-03-14 07:19:14 -04:00
Derrick Hammer 19afa09c4d
refactor: split computeByRate to newRat 2024-03-14 07:17:58 -04:00
Derrick Hammer cc63ff2c6e
dep: update libs5 2024-03-14 06:54:54 -04:00
Derrick Hammer 358d5fdf60
feat: add account info endpoint 2024-03-14 06:42:38 -04:00
Derrick Hammer d946e969bc
fix: update to check for ErrDuplicatedKey and return a more specific but generic error if so 2024-03-13 18:53:45 -04:00
Derrick Hammer 6ff84bbc1a
refactor: use dedicated auth mw for ping 2024-03-13 18:45:14 -04:00
Derrick Hammer d5118beb58
refactor: allow purpose to be none 2024-03-13 18:44:09 -04:00
Derrick Hammer 749a932663
fix: give login a dedicated authMiddleware instance 2024-03-13 17:35:26 -04:00
Derrick Hammer 4f891e067c
refactor: rename pong to ping 2024-03-13 17:34:10 -04:00