Commit Graph

51 Commits

Author SHA1 Message Date
9bc36bae7f if the admin token is null then it will fail an admin login. Also added the remove scopes logic and it worked for me 2024-04-04 15:30:22 -07:00
8a43c166a8 Renamed struct to update a users scopes 2024-04-04 15:29:39 -07:00
2e0596c924 rest test file has been updated 2024-04-03 16:12:34 -07:00
7dc072e849 scopes/add now requires jwt and minor ez response methods 2024-04-03 16:12:18 -07:00
02c6f4aae7 admin jwt now follows the same schema 2024-04-03 16:11:46 -07:00
f159582d34 user repo now adds a default scope on create and scopes can be replaced for a user 2024-04-03 16:11:00 -07:00
f67ed03c9d add and remove scopes methods to user service 2024-04-03 16:10:25 -07:00
29f6dc0bb0 minor domain updates 2024-04-03 16:09:31 -07:00
d9625e0b7d updated how the err response should look to follow a pattern 2024-04-02 16:30:14 -07:00
373f7da678 auth now uses UrlFormEncoded like it should 2024-04-01 17:50:07 -07:00
c071212df5 when a user is made, the default scope is now defined 2024-04-01 17:48:54 -07:00
b3ee4e420b found a bug that would let the same username get used over and over 2024-04-01 17:48:38 -07:00
f591dadd3b adminToken validation now has its own method 2024-03-31 18:10:53 -07:00
593ce11c6b moved jwt things to its own file 2024-03-31 18:09:24 -07:00
615f1184ab if a user provides the env admin token, a token will generate with god permissions 2024-03-31 18:05:33 -07:00
8f10fbfba1 mostly reworking how the JWT is processed 2024-03-31 17:49:09 -07:00
ec24600269 mostly pushing things into domain 2024-03-31 17:48:44 -07:00
0d90db89e5 added config to the Handler and trying out a standard payload return for unauthorized 2024-03-31 17:48:23 -07:00
538ff69c00 ignoring all .env files 2024-03-31 17:47:52 -07:00
7360d429ff domain update 2024-03-31 17:47:39 -07:00
e0253f04e7 Added Scopes to the user table 2024-03-31 17:47:24 -07:00
0d253270b7 added config service on startup 2024-03-31 17:47:09 -07:00
6af8a2a0cd refactored for domain 2024-03-31 17:46:40 -07:00
09235760d2 Added a config service 2024-03-31 17:46:20 -07:00
3487feed5c moved models into domain 2024-03-31 17:46:04 -07:00
4981ef7f81 Merge pull request 'Basic JWT is now working' (#12) from features/jwt/maybe into main
Reviewed-on: #12
2024-03-29 14:51:00 -07:00
565e6112a8 The jwt token is now checked to see if it expires and will return an error 2024-03-29 14:49:57 -07:00
faf0bec069 Heck yes! jwt is working and middleware is CHECKING IT !!!!!!! 2024-03-27 21:55:25 -07:00
2508dac595 woo! I can login and confirm my password with bcrypt! 2024-03-27 17:24:23 -07:00
dbe621ca05 model structs that are not used yet 2024-03-26 17:54:46 -07:00
bbdbb38711 postman for vscode 2024-03-26 17:54:32 -07:00
d2d524ac4e playing with the handler to get jwt working 2024-03-26 17:54:22 -07:00
872db5b9e9 added a ErrorResponse struct 2024-03-26 17:53:51 -07:00
f78d78d061 added a interface and adding to CRUD 2024-03-26 17:53:22 -07:00
e08dbea213 added a shell repo for recipes 2024-03-26 17:52:38 -07:00
063e677869 trying to remove the user repo and use a service 2024-03-26 17:52:15 -07:00
13f5dba498 added Recover to help with panics 2024-03-26 17:49:01 -07:00
21c9067183 added jwt packages 2024-03-26 17:48:39 -07:00
964a06732e Merge pull request 'features/route-examples' (#5) from features/route-examples into main
Reviewed-on: #5
2024-03-23 10:29:51 -07:00
0f7787d546 trying to create some separation between sql and user tasks. This might be too close to c# for go 2024-03-23 08:27:35 -07:00
b5791cd64e Working on building out some good examples on how to handle routes 2024-03-23 08:26:49 -07:00
a2ad14d388 Merge pull request 'features/sqlite-sorta-workin' (#4) from features/sqlite-sorta-workin into main
Reviewed-on: #4
2024-03-22 12:26:54 -07:00
ab8a674988 helper files 2024-03-21 22:42:03 -07:00
3c145d66af the table accepts my record and I can rebuild it without a ORM! 2024-03-21 22:41:52 -07:00
d6f2fc3585 having goose run the first migration 2024-03-21 22:41:25 -07:00
7cf3e7943c created the initial model 2024-03-21 22:41:05 -07:00
68ab718d68 my spell checker yells about words 2024-03-21 22:40:47 -07:00
2f23e2ab91 Merge pull request 'Starting to get some basics in place.... its missing so much' (#1) from features/first-push into main
Reviewed-on: #1
2024-03-20 19:11:08 -07:00
6e2d187148 Starting to get some basics in place.... its missing so much 2024-03-20 17:54:23 -07:00
1a39ab3063 Update README.md 2024-03-19 14:13:53 -07:00