Our auth situation has been a mess of boilerplate that came from the early days in an effort to let serde_json handle the heavy lifting of reading the config files into the structs.
This rewrites the auth handling internally to be simpler, more easily extendible, and less error/bug prone
Tasks
[x] Rewrite Auth struct to remove boilerplate allows_* methods and allow direct auth checks
[x] Simplify webhook permissions to get/set
[x] Simplify meta permission to get/set
[x] Simplify stats permission to get
[x] Create JSON -> Struct trait for each section for manual JSON parsing and better error messages
Context
Our auth situation has been a mess of boilerplate that came from the early days in an effort to let serde_json handle the heavy lifting of reading the config files into the structs.
This rewrites the auth handling internally to be simpler, more easily extendible, and less error/bug prone
Tasks
allows_*
methods and allow direct auth checksget/set
get/set
get
disabled
type is respectedcc/ @ingalls