jamf / PPPC-Utility

Privacy Preferences Policy Control (PPPC) Utility
MIT License
735 stars 46 forks source link

113 connection to jamf pro should be updated to use bearer tokens #114

Closed macblazer closed 2 years ago

macblazer commented 2 years ago

Refactored some of the code around the networking, such as making a SemanticVersion type and moving the configuration profile API payload generation out of the networking code and over to the TCCProfile type.

Using async-await style network connections, and using an actor to synchronize getting/refreshing a bearer token.

Fixes #113

macblazer commented 2 years ago

If anybody can tell me what exactly SwiftLint is complaining about with the 6 orphaned_doc_comment errors I would be happy to fix it. The errors in GitHub action log don't have line numbers or even filenames associated with them, and locally SwiftLint v0.47.1 is happy with the code.

macblazer commented 2 years ago

I updated the GitHub action that runs SwiftLint to the latest version, modified a couple of comments in the code, and now it's happy.