features/working-on-scopes #13

Merged
jtom38 merged 28 commits from features/working-on-scopes into main 2024-04-04 15:31:54 -07:00

28 Commits

Author SHA1 Message Date
James Tombleson e0a517a765 Added the example on how to remove a scope from someone 2024-04-04 15:31:23 -07:00
James Tombleson 69fb7a683b updated how it looks to see what scopes to add 2024-04-04 15:30:59 -07:00
James Tombleson 8f0e8e4d85 added remove scopes to the handler 2024-04-04 15:30:38 -07:00
James Tombleson 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
James Tombleson 8a43c166a8 Renamed struct to update a users scopes 2024-04-04 15:29:39 -07:00
James Tombleson 2e0596c924 rest test file has been updated 2024-04-03 16:12:34 -07:00
James Tombleson 7dc072e849 scopes/add now requires jwt and minor ez response methods 2024-04-03 16:12:18 -07:00
James Tombleson 02c6f4aae7 admin jwt now follows the same schema 2024-04-03 16:11:46 -07:00
James Tombleson 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
James Tombleson f67ed03c9d add and remove scopes methods to user service 2024-04-03 16:10:25 -07:00
James Tombleson 29f6dc0bb0 minor domain updates 2024-04-03 16:09:31 -07:00
James Tombleson d9625e0b7d updated how the err response should look to follow a pattern 2024-04-02 16:30:14 -07:00
James Tombleson 373f7da678 auth now uses UrlFormEncoded like it should 2024-04-01 17:50:07 -07:00
James Tombleson c071212df5 when a user is made, the default scope is now defined 2024-04-01 17:48:54 -07:00
James Tombleson b3ee4e420b found a bug that would let the same username get used over and over 2024-04-01 17:48:38 -07:00
James Tombleson f591dadd3b adminToken validation now has its own method 2024-03-31 18:10:53 -07:00
James Tombleson 593ce11c6b moved jwt things to its own file 2024-03-31 18:09:24 -07:00
James Tombleson 615f1184ab if a user provides the env admin token, a token will generate with god permissions 2024-03-31 18:05:33 -07:00
James Tombleson 8f10fbfba1 mostly reworking how the JWT is processed 2024-03-31 17:49:09 -07:00
James Tombleson ec24600269 mostly pushing things into domain 2024-03-31 17:48:44 -07:00
James Tombleson 0d90db89e5 added config to the Handler and trying out a standard payload return for unauthorized 2024-03-31 17:48:23 -07:00
James Tombleson 538ff69c00 ignoring all .env files 2024-03-31 17:47:52 -07:00
James Tombleson 7360d429ff domain update 2024-03-31 17:47:39 -07:00
James Tombleson e0253f04e7 Added Scopes to the user table 2024-03-31 17:47:24 -07:00
James Tombleson 0d253270b7 added config service on startup 2024-03-31 17:47:09 -07:00
James Tombleson 6af8a2a0cd refactored for domain 2024-03-31 17:46:40 -07:00
James Tombleson 09235760d2 Added a config service 2024-03-31 17:46:20 -07:00
James Tombleson 3487feed5c moved models into domain 2024-03-31 17:46:04 -07:00