Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: components/policy/proto/device_management_backend.proto

Issue 2633363002: Add request and response messages related to AD Play user enrollment (Closed)
Patch Set: Add comment about user_id usage. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package enterprise_management; 9 package enterprise_management;
10 10
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 // the certificate provided must be DER-encoded and may be supplied in binary 1179 // the certificate provided must be DER-encoded and may be supplied in binary
1180 // or printable (Base64) encoding. If the certificate is provided in Base64 1180 // or printable (Base64) encoding. If the certificate is provided in Base64
1181 // encoding, it must be bounded at the beginning by 1181 // encoding, it must be bounded at the beginning by
1182 // -----BEGIN CERTIFICATE-----, and must be bounded at the end by 1182 // -----BEGIN CERTIFICATE-----, and must be bounded at the end by
1183 // -----END CERTIFICATE-----. 1183 // -----END CERTIFICATE-----.
1184 optional bytes device_certificate = 2; 1184 optional bytes device_certificate = 2;
1185 // regular device registration request 1185 // regular device registration request
1186 optional DeviceRegisterRequest device_register_request = 3; 1186 optional DeviceRegisterRequest device_register_request = 3;
1187 } 1187 }
1188 1188
1189 // Gets an enrollment token to a Managed Google Play Account for using it with
Thiemo Nagel 2017/01/24 18:10:21 Optional nit: Suggest "Managed Google Play Account
Marton Hunyady 2017/01/24 18:25:21 Done.
1190 // Active Directory. Sent when a new user logs in with Active Directory and
1191 // opens Play Store for the first time.
1192 message ActiveDirectoryEnrollPlayUserRequest {}
1193
1194 // The result when a new user logs in to Play Store with Active Directory.
1195 // 903 Arc Disabled HTTP error code is returned if the reason of the failure is
1196 // that ARC is not enabled for the domain.
Thiemo Nagel 2017/01/24 18:10:21 Optional nit: Suggest to add 4 blanks before "that
Marton Hunyady 2017/01/24 18:25:21 Done.
1197 // 403 Forbidden HTTP error code is returned if the device can't get Managed
1198 // Google Play accounts.
Thiemo Nagel 2017/01/24 18:10:21 Optional nit: Suggest to add 4 blanks before "Goog
Marton Hunyady 2017/01/24 18:25:21 Done.
1199 message ActiveDirectoryEnrollPlayUserResponse {
1200 // The enrollment token which can be used to fetch a Managed Google Play
1201 // account.
1202 optional string enrollment_token = 1;
1203 // The user id which identifies the user enrolled by this token. This user id
1204 // is opaque to the client and is only used in the ActiveDirectoryPlayActivity
1205 // requests.
1206 optional string user_id = 2;
1207 }
1208
1209 // Reports that a Managed Google Play account is used. This makes it possible to
Thiemo Nagel 2017/01/24 18:10:21 Optional nit: Suggest merging both sentences: "Rep
Marton Hunyady 2017/01/24 18:25:22 Changed the comment to "Reports that a managed Goo
1210 // detect accounts which are no longer present on the device.
1211 message ActiveDirectoryPlayActivityRequest {
1212 // The user id which identifies the user.
Thiemo Nagel 2017/01/24 18:10:21 Optional nit: Suggest to refer to the ActiveDirect
Marton Hunyady 2017/01/24 18:25:22 Done.
1213 optional string user_id = 1;
1214 }
1215
1216 // Response to the Play account activity request.
1217 message ActiveDirectoryPlayActivityResponse {}
1218
1189 // Request from the DMAgent on the device to the DMServer. This is 1219 // Request from the DMAgent on the device to the DMServer. This is
1190 // container for all requests from device to server. The overall HTTP 1220 // container for all requests from device to server. The overall HTTP
1191 // request MUST be in the following format: 1221 // request MUST be in the following format:
1192 // 1222 //
1193 // * HTTP method is POST 1223 // * HTTP method is POST
1194 // * Data mime type is application/x-protobuffer 1224 // * Data mime type is application/x-protobuffer
1195 // * See GoogleContentTypeEnum.java 1225 // * See GoogleContentTypeEnum.java
1196 // * HTTP parameters are (all required, all case sensitive): 1226 // * HTTP parameters are (all required, all case sensitive):
1197 // * request: MUST BE one of 1227 // * request: MUST BE one of
1198 // * api_authorization 1228 // * api_authorization
1199 // * cert_upload 1229 // * cert_upload
1200 // * check_device_pairing 1230 // * check_device_pairing
1201 // * device_pairing 1231 // * device_pairing
1202 // * device_state_retrieval 1232 // * device_state_retrieval
1203 // * enterprise_check 1233 // * enterprise_check
1204 // * ping 1234 // * ping
1205 // * policy 1235 // * policy
1206 // * register 1236 // * register
1207 // * status 1237 // * status
1208 // * unregister 1238 // * unregister
1209 // * remote_commands 1239 // * remote_commands
1210 // * attribute_update_permission 1240 // * attribute_update_permission
1211 // * attribute_update 1241 // * attribute_update
1212 // * gcm_id_update 1242 // * gcm_id_update
1213 // * check_android_management 1243 // * check_android_management
1214 // * certificate_based_register 1244 // * certificate_based_register
1245 // * active_directory_enroll_play_user
1246 // * active_directory_play_activity
1215 // 1247 //
1216 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS. 1248 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS.
1217 // * apptype: MUST BE Android or Chrome. 1249 // * apptype: MUST BE Android or Chrome.
1218 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E]. 1250 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E].
1219 // * agent: MUST BE no more than 64-char long. 1251 // * agent: MUST BE no more than 64-char long.
1220 // * HTTP Authorization header MUST be in the following formats: 1252 // * HTTP Authorization header MUST be in the following formats:
1221 // * For register, ping and check_android_management requests 1253 // * For register, ping and check_android_management requests
1222 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync> 1254 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync>
1223 // 1255 //
1224 // * For unregister, policy, status, cert_upload, remote commands requests, 1256 // * For unregister, policy, status, cert_upload, remote_commands,
1225 // and gcm id update requests 1257 // gcm_id_update, active_directory_enroll_play_user and
1258 // active_directory_play_activity requests
1226 // Authorization: GoogleDMToken token=<dm token from register> 1259 // Authorization: GoogleDMToken token=<dm token from register>
1227 // 1260 //
1228 // * The Authorization header isn't used for enterprise_check or for 1261 // * The Authorization header isn't used for enterprise_check or for
1229 // certificate_based_register requests, nor for register requests 1262 // certificate_based_register requests, nor for register requests
1230 // using OAuth. In the latter case, the OAuth token is passed in the 1263 // using OAuth. In the latter case, the OAuth token is passed in the
1231 // "oauth" parameter. 1264 // "oauth" parameter.
1232 // 1265 //
1233 // DeviceManagementRequest should only contain one request which matches the 1266 // DeviceManagementRequest should only contain one request which matches the
1234 // HTTP query parameter - request, as listed below. Other requests within the 1267 // HTTP query parameter - request, as listed below. Other requests within the
1235 // container will be ignored. 1268 // container will be ignored.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 // Update the GCM id to device_id mapping. 1332 // Update the GCM id to device_id mapping.
1300 optional GcmIdUpdateRequest gcm_id_update_request = 16; 1333 optional GcmIdUpdateRequest gcm_id_update_request = 16;
1301 1334
1302 // Check if user is a managed Android-for-Work user with DPC enforcement. 1335 // Check if user is a managed Android-for-Work user with DPC enforcement.
1303 optional CheckAndroidManagementRequest check_android_management_request = 17; 1336 optional CheckAndroidManagementRequest check_android_management_request = 17;
1304 1337
1305 // Request to register with a registration certificate. 1338 // Request to register with a registration certificate.
1306 optional CertificateBasedDeviceRegisterRequest 1339 optional CertificateBasedDeviceRegisterRequest
1307 certificate_based_register_request = 18; 1340 certificate_based_register_request = 18;
1308 1341
1342 // Gets an enrollment token to a Managed Google Play Account for using it with
1343 // Active Directory.
1344 optional ActiveDirectoryEnrollPlayUserRequest
1345 active_directory_enroll_play_user_request = 19;
1346
1347 // Reports that a Play account is used.
1348 optional ActiveDirectoryPlayActivityRequest
1349 active_directory_play_activity_request = 20;
1309 } 1350 }
1310 1351
1311 // Response from server to device. 1352 // Response from server to device.
1312 // 1353 //
1313 // For release clients, DMServer returns errors using HTTP Status Code, so that 1354 // For release clients, DMServer returns errors using HTTP Status Code, so that
1314 // clients only need to check one place for all error codes. It is also easier 1355 // clients only need to check one place for all error codes. It is also easier
1315 // to perform log analysis and customer support since HTTP Status Code is easily 1356 // to perform log analysis and customer support since HTTP Status Code is easily
1316 // visible in the logs. 1357 // visible in the logs.
1317 // 1358 //
1318 // The following list defines the error code returned by this API: 1359 // The following list defines the error code returned by this API:
1319 // 1360 //
1320 // 200 OK: valid response is returned to client. 1361 // 200 OK: valid response is returned to client.
1321 // 400 Bad Request: invalid argument. 1362 // 400 Bad Request: invalid argument.
1322 // 401 Unauthorized: invalid auth cookie or DM token. 1363 // 401 Unauthorized: invalid auth cookie or DM token.
1323 // 403 Forbidden: device management is not allowed. 1364 // 403 Forbidden: device management is not allowed.
1324 // 404 Not Found: the request URL is invalid. 1365 // 404 Not Found: the request URL is invalid.
1325 // 410 Device Not Found: the device id is not found. 1366 // 410 Device Not Found: the device id is not found.
1326 // 491 Request Pending: the request is pending approval. 1367 // 491 Request Pending: the request is pending approval.
1327 // 500 Internal Server Error: most likely a bug in DM server. 1368 // 500 Internal Server Error: most likely a bug in DM server.
1328 // 503 Service Unavailable: most likely a backend error. 1369 // 503 Service Unavailable: most likely a backend error.
1329 // 902 Policy Not Found: the policy is not found. 1370 // 902 Policy Not Found: the policy is not found.
1371 // 903 Arc Disabled: ARC is not enabled on the domain.
1330 message DeviceManagementResponse { 1372 message DeviceManagementResponse {
1331 // TODO(hong): move error handling to HTTP level. 1373 // TODO(hong): move error handling to HTTP level.
1332 // Error code to client. 1374 // Error code to client.
1333 enum ErrorCode { 1375 enum ErrorCode {
1334 SUCCESS = 0; 1376 SUCCESS = 0;
1335 // Returned for register request when device management is not supported 1377 // Returned for register request when device management is not supported
1336 // for the domain. 1378 // for the domain.
1337 DEVICE_MANAGEMENT_NOT_SUPPORTED = 1; 1379 DEVICE_MANAGEMENT_NOT_SUPPORTED = 1;
1338 // Returned when the device is not found. 1380 // Returned when the device is not found.
1339 DEVICE_NOT_FOUND = 2; 1381 DEVICE_NOT_FOUND = 2;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 1444
1403 // Response to update device attribute. 1445 // Response to update device attribute.
1404 optional DeviceAttributeUpdateResponse device_attribute_update_response = 16; 1446 optional DeviceAttributeUpdateResponse device_attribute_update_response = 16;
1405 1447
1406 // Response to GCM id update request. 1448 // Response to GCM id update request.
1407 optional GcmIdUpdateResponse gcm_id_update_response = 17; 1449 optional GcmIdUpdateResponse gcm_id_update_response = 17;
1408 1450
1409 // Response to check Android management request. 1451 // Response to check Android management request.
1410 optional CheckAndroidManagementResponse 1452 optional CheckAndroidManagementResponse
1411 check_android_management_response = 18; 1453 check_android_management_response = 18;
1454
1455 // Response to an Active Directory Play user enrollment request.
1456 optional ActiveDirectoryEnrollPlayUserResponse
1457 active_directory_enroll_play_user_response = 19;
1458
1459 // Response to a Play activity request.
1460 optional ActiveDirectoryPlayActivityResponse
1461 active_directory_play_activity_response = 20;
1412 } 1462 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698