micromdm / nanodep

NanoDEP is a set of tools and a Go library powering them for communicating with Apple's Device Enrollment Program (DEP) API servers.
MIT License
33 stars 12 forks source link

Session lock #84

Open jessepeterson opened 23 hours ago

jessepeterson commented 23 hours ago

Consider adding a global token session lock for a given DEP name. This would prevent race conditions with trying to acquire a session at the same time at the expense of locking every DEP query (because we don't know if a given query will require fetching a new session token). See also micromdm/micromdm#850.