grahampugh / jamf-upload

Scripts for uploading packages to Jamf Cloud
Apache License 2.0
147 stars 37 forks source link

Add oauth token handling to package deletion step #155

Closed mhrono closed 5 months ago

mhrono commented 5 months ago

Fixes #135

Currently, the loop handling deletion of packages only attempts to retrieve an authentication token using basic authentication. If preferences have been set for client_id and client_secret, oauth should instead be used to get a token. This is handled using the added if/else block, which takes different actions based on configured preferences. The added block is identical to that found higher up on line 194 in this script.

grahampugh commented 5 months ago

Thanks!

grahampugh commented 5 months ago

Now merged into autopkg/grahampugh-recipes