Skip to main content
Question

jamfAuth - Make API Auth Simple and Secure

  • April 29, 2022
  • 2 replies
  • 16 views

therealmacjeezy
Forum|alt.badge.img+5

Howdy Jamf Nation!

 

Do you use Python to interact with the Jamf Pro API? If so, how are you handling the credentials?

 

I think the most common method is to base64 encode it and save it as a variable in the script. I wanted to avoid having anything credential related inside the script, so I created jamfAuth.

 


jamfAuth is a small Python 3 package that once setup, handles the API Authentication for any project you import it to and stores any API credentials in the local keychain.

jamfAuth Example and Usage 

 PyPi Page 

jamfAuth GitHub Repo 

 

 

Let me know if you have any questions about it! The next release will include Ubuntu 20.04 and RHEL/CentOS/OL 8 support (which is being tested currently :D!)

 

Cheers!

- Josh

2 replies

Hugonaut
Forum|alt.badge.img+15
  • Esteemed Contributor
  • April 29, 2022

Very Nice! Thank you!


Forum|alt.badge.img+10
  • Valued Contributor
  • April 30, 2022

Very nice 👍