Skip to main content

Hi there,

 

Has anyone managed to successfully get the Jamf Pro Custom API action call card working in Okta?

I get a 401 Unauthorized error even though the bearer token is brand new and passed directly to the auth field of the custom API action card.

 

I even tried with API endpoint reference curl command and compared an invalid bearer token to a valid freshly generated one:
 

curl --request POST \                         
--url https://sandbox.jamfcloud.com/api/v1/ddm/18/sync \
--header 'accept: application/json' \
--header 'authorization: Bearer invalid_token'
{
"httpStatus" : 401,
"errors" : {
"code" : "INVALID_TOKEN",
"description" : "Unauthorized",
"id" : "0",
"field" : null
} ]
}%

 

curl --request POST \                                                                                                  
--url https://sandbox.jamfcloud.com/api/v1/ddm/24/sync \
--header 'accept: application/json' \
--header 'authorization: Bearer working_token'
{
"httpStatus" : 500,
"errors" : " ]
}%

 

Be the first to reply!