* Partial implementation of Bootstrap Token
Fetching the token from the db and sending it back to the client when the client asks for it ie sends the GetBootstrapTokenRequest is not implemented
Also earlier code for Bootstrap Token from commit 58c3782 "mdm: add SetBootstrapToken command." is removed
* implements rest of the bootstrap token feature - micromdm now sends bootstrap token back to the client, when client requests it
* regenerate some proto files
* use original proto generator versions
checkin.pb.go: golang/protobuf@v1.2.0
mdm.pb.go: gogo/protobuf@v1.3.2
device.pb.go: golang/protobuf@v1.0.0
* cleanup syntax
* use more idiomatic naming
* clean up BootstrapToken storage
* add GetBootstrapToken test
* remove extra newline
Co-authored-by: Jesse Peterson <jessepeterson@users.noreply.github.com>
* add doc comments
Co-authored-by: Ilkka Vanhatalo <ilkka.vanhatalo@helsinki.fi>
Co-authored-by: Jesse Peterson <jessepeterson@users.noreply.github.com>
* add ActivationLockBypassCode Request
* Update mdm.pb.go
fixed typo
* Update mdm.pb.go
add Size method
* Update unmarshal_proto.go
remove pbc
* add api script for activation_lock_bypass_code
* update Changelog
* Simplify Code
I was able to simplify the code as ActivationLockBypassCode does not have any additional fields.
* Update command.go
Remove ActivationLockBypassCode struct as ActivationLockBypassCode does not include any extra fields.
The ApplicationConfiguration setting is implemented by storing the values for Configuration as a plist, and then marshaling it into the settings command as a dictionary.
* base64 -> openssl base64 -A
output base64 encoded data on one line, on both linux and macos
* base64 -> openssl base64 -A
output base64 encoded data on one line, on both linux and macos
* Update install_profile
* Update install_provisioning_profile
Previously the github.com/micromdm/mdm library was used, but the code there was a bit naive and had a few issues as it grew to support the full library of MDM Commands.
All the request types have been moved to `package mdm`.