Skip to content

Commit d51c648

Browse files
Change headers to use Bearer auth.
1 parent c74290e commit d51c648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jamf2snipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ logging.info("The configured JAMFPro base url is: {} (Pretty sure this needs to
123123
# Headers for the API call.
124124

125125
logging.info("Creating the headers we'll need for API calls")
126-
jamfheaders = {'Accept': 'application/json'}
126+
jamfheaders = {'Authorization': 'Bearer {}'.format(jamf_apiKey),'Accept': 'application/json','Content-Type':'application/json'}
127127
snipeheaders = {'Authorization': 'Bearer {}'.format(snipe_apiKey),'Accept': 'application/json','Content-Type':'application/json'}
128128
logging.debug('Request headers for JamfPro will be: {}\nRequest headers for Snipe will be: {}'.format(jamfheaders, snipeheaders))
129129

0 commit comments

Comments
 (0)