You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run the kmart --json /Users/Shared/Kmart/config/config.json
┌───────────────────────────────────┐
│ RETRIEVING JAMF PRO API ENDPOINTS │
└───────────────────────────────────┘
├─ Unable to find 'token' and 'expires' keys in URL response
├─ Buildings - The operation couldn’t be completed. (KMART.KmartError error 4.)
├─
├─ Unable to find 'token' and 'expires' keys in URL response
├─ Departments - The operation couldn’t be completed. (KMART.KmartError error 4.)
├─
├─ Unable to find 'token' and 'expires' keys in URL response
├─ eBooks - The operation couldn’t be completed. (KMART.KmartError error 4.)```
I have added the credentials correctly to the config.json would this happen if SSO is in place even if we have a username/password account in jamfcloud?
The text was updated successfully, but these errors were encountered:
Hi @cpeonepeloton, KMART uses your account's standard username and password to retrieve a bearer auth token via /v1/auth/tokens, which is then used for all subsequent API calls.
KMART.KmartError error 4 refers to 'token' and 'expires' keys missing from the JSON that was returned for the auth token, indicating the username and/or password may be incorrect.
In my testing, I am also able to confirm that I am receiving a HTTP 401 error every time I receive the Unable to find 'token' and 'expires' keys in URL response error message, which helps confirm an invalid username / password.
I don't suspect SSO is playing a part - as we're getting a response, just not the one we want.
Am I able to confirm your username and password are base64 encoded? You can convert to base64 via the following command:
I run the
kmart --json /Users/Shared/Kmart/config/config.json
The text was updated successfully, but these errors were encountered: