issues
search
jamf
/
JAWA
Jamf Automation and Webhook Assistant
MIT License
130
stars
12
forks
source link
Webhook refactor - new receiver + basic auth
#16
Closed
ball42
closed
3 years ago
ball42
commented
3 years ago
Webhook Refactor
New webhook receiver
(_./webhook/jawa
receiver.py
)
now powered by Python! Moving the receiver into the flask application reduces dependencies on other repos and frameworks.
the new receiver uses a new validation method that allows for basic authentication (#12 & #14).
Refactored configuration files
Consolidated webhook configuration file (
./data/webhooks.json
), all configuration files moved to
data/
.
Added keys for basic auth to the conf file (#12 and #14).
Added key for tagging webhooks (Jamf Pro vs Okta at this time).
Added key to log the JAWA user that created the webhook.
General Code Refactor
Project file tree restructure
Consolidated all files within the jawa project directory, which can now be stored anywhere (todo: prompt for installation path during installation).
Organized files into new directories (
./bin/
,
./data/
&
./webhook/
) based on their function.
Relative paths
Changed all paths to relative paths.
This change allows for JAWA to be semi-functional on Windows. E.g.,
webhook features should work, but Windows doesn't have cron
.
Code Lint
New methods created to organize the code and improve readability.
Removed some cruft.
Leveraged more Python 3 features, like f strings.
Webhook Refactor
General Code Refactor