30 Commits

Author SHA1 Message Date
Graham Gilbert
c4a1cd97ef Add endpoint for inspecting the MDM command queue (#895) 2023-07-11 18:07:42 -05:00
Kory Prince
3d0746f3e3 Add raw command and clear device queue endpoints (#864) 2023-04-23 14:47:42 -07:00
Emre Biberoglu
3c80097cce adding a script to install VPP apps (#865) 2023-03-17 10:50:21 -07:00
hrgbcxd
1e49dc2585 Feature/add lom commands (#839) 2022-07-20 08:27:24 -07:00
meta-github
b5609adc48 Updated schedule_os_update to support more parameters. (#828)
Co-authored-by: Thomas Esser <meta.regist@gmail.com>
2022-07-15 10:14:14 -07:00
Ayush Sharma
96e15ff9f2 Added RefreshCellularPlans support (#809) 2022-03-19 14:25:15 -07:00
Kory Prince
fcf1d185fc Bootstrap Token (#781)
* 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>
2021-10-05 10:43:46 -07:00
tomaswallentinus
1dfa0a8fd0 Added SetRecoveryLock support (#757) 2021-06-16 13:48:47 -07:00
meta-github
9e0d5ed6f8 Pass username and password more securely to curl. Fix a quoting bug in remove_profile. (#709) 2020-10-01 10:03:29 -04:00
Ryunosuke Sato
a7ad62ea6c $ chmod +x tools/api/commands/* (#668)
Added executive permission to `tools/api/commands/*` due to run these scripts easily.
2020-05-20 10:01:58 -07:00
tomaswallentinus
e2acfb977e Add EnableRemoteDesktop and DisableRemoteDesktop (#651)
Add ability to send EnableRemoteDesktop and DisableRemoteDesktop mdm-commands:
https://developer.apple.com/documentation/devicemanagement/enable_remote_desktop

Add test for EnableRemoteDesktop and DisableRemoteDesktop mdm-commands:
https://developer.apple.com/documentation/devicemanagement/enable_remote_desktop
2020-03-10 08:50:03 -04:00
Victor Vrantchan
ea393e9804 add new values for AccountConfiguration (#627)
Updates the AccountConfiguration command with options for 10.15.
Had to update protobuf to a newer version too.
2019-11-26 15:01:49 -05:00
Victor Vrantchan
afcf5466a5 add erase_device script 2019-06-28 20:56:23 -04:00
Victor Vrantchan
54859c9482 tools: add device_configured script 2019-06-22 18:54:03 -04:00
Victor Vrantchan
58c37822c5 mdm: add SetBootstrapToken command. 2019-06-22 18:50:12 -04:00
jenjac
8e0d722d61 Handle ActivationLockBypassCode Request (#578)
* 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.
2019-03-04 15:55:51 -05:00
Tobias Baube
f909214f88 Adds command to install apps from the AppStore (#545) 2018-11-23 00:14:18 -05:00
Jon Crain
94db5f75a4 Updating to allow spaces in variable (#542) 2018-10-31 06:46:40 -04:00
Victor Vrantchan
8af0ef7bd1 Add support for the ApplicationConfiguration setting (#521)
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.
2018-10-13 13:54:43 -04:00
jenjac
3370b9cb11 GET to POST (#522)
Changed GET to POST as a GET with a request body is not preferred.
2018-10-10 12:32:02 -04:00
Gerard Kok
653e9ac2d0 Output base64 encoded data on one line in command examples (#477)
* 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
2018-08-10 13:21:50 -04:00
Erik Gomez
3b12474931 Sync dep devices tool (#481)
* add DS_Store files to gitignore

* add sync_dep_devices tool
2018-08-07 10:34:30 -07:00
Derick Naef
464e00a251 DeviceInformation command API example support query strings (#469) 2018-07-24 19:18:59 +00:00
Jesse Peterson
8f5838ceea Allow setting curl options in environment variable (#455) 2018-07-12 11:35:42 +00:00
Victor Vrantchan
8ab19a93e8 add support for InstallEnterpriseApplication command (#452) 2018-07-09 22:48:10 -04:00
Victor Vrantchan
bbabd751b7 add device_information and security_info commands with curl API (#448) 2018-06-22 22:25:06 -04:00
Scott Knight
05344403a5 Add software update command examples (#442)
Add support for the OSUpdateStatus command
Add example Software Update API commands
2018-06-21 08:07:56 -04:00
Mike Arpaia
6dd045e5b8 Remove superfluous whitespace from markdown files (#438) 2018-06-13 23:33:53 -04:00
Victor Vrantchan
6da097ec78 move MDM types to micromdm/micromdm (#341)
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`.
2018-05-12 15:54:04 -04:00
Victor Vrantchan
f843041cbc add ngrok developemnt and curl request helpers (#392) 2018-04-07 19:35:27 -04:00