grahampugh / jamf-upload

Scripts for uploading packages to Jamf Cloud
Apache License 2.0
148 stars 36 forks source link

API Client authentication not working #117

Open grahampugh opened 10 months ago

grahampugh commented 10 months ago

I had made an assumption that the output of /api/oauth/token would be the same as that of /api/v1/auth/token, but it is not.

In /api/v1/auth/token, the token key is token and the expires token is expires. In /api/oauth/token, the token key is access_token and the expires token is expires_in.

Furthermore, the time outputted from the expires key differs; a timestamp vs. the number of seconds until expiry.

grahampugh commented 4 months ago

This is partially fixed but note that renewal of API Client tokens is not supported. I'll leave this open for now to check if that's an issue.