I'm a third-party MDM developer using the Automated Device Enrollment (DEP) cloud service API.
My flow is the standard token exchange: I upload my public key to Apple Business Manager, download the encrypted server token, and store the resulting OAuth credentials (consumer_key, consumer_secret, access_token, access_secret) to authenticate and fetch device information.
Recently I've started seeing authentication failures on tokens whose access_token_expiry still has 6+ months of validity remaining.
The credentials were working fine and then began getting rejected, with no change on my side.
My questions for anyone who has seen this:
Has anyone else observed DEP/ADE server tokens being rejected well before their stated access_token_expiry?
What are the known triggers for early invalidation? (e.g., the ABM user who created the MDM server being deactivated or having a role change, the token being re-downloaded/regenerated, edits to the MDM server record, or Apple-side session invalidation.)
Is there a supported way to detect that a still-unexpired token has been invalidated, other than catching the auth failure at request time?
I want to confirm whether this is expected behavior tied to the ABM account/server lifecycle rather than the token's expiry date, so I can handle it correctly (i.e., prompt for a token re-download) instead of treating it as a bug.
Any confirmation, similar reports, or official guidance would be appreciated. Thanks.
Topic:
Business & Education
SubTopic:
Device Management
Tags:
Apple Business Manager
Device Management
1
0
244