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

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: Rename to ActiveDirectoryPlayActivity Created 3 years, 11 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
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.
1197 // 403 Forbidden HTTP error code is returned if the device can't get Managed
1198 // Google Play accounts.
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.
Thiemo Nagel 2017/01/24 16:59:02 Nit: I'd suggest to mention in the comment that th
Marton Hunyady 2017/01/24 17:40:05 Done.
1204 optional string user_id = 2;
1205 }
1206
1207 // Reports that a Managed Google Play account is used. This makes it possible to
1208 // detect accounts which are no longer present on the device.
1209 message ActiveDirectoryPlayActivityRequest {
1210 // The user id which identifies the user.
1211 optional string user_id = 1;
1212 }
1213
1214 // Response to the Play account activity request.
1215 message ActiveDirectoryPlayActivityResponse {}
1216
1189 // Request from the DMAgent on the device to the DMServer. This is 1217 // Request from the DMAgent on the device to the DMServer. This is
1190 // container for all requests from device to server. The overall HTTP 1218 // container for all requests from device to server. The overall HTTP
1191 // request MUST be in the following format: 1219 // request MUST be in the following format:
1192 // 1220 //
1193 // * HTTP method is POST 1221 // * HTTP method is POST
1194 // * Data mime type is application/x-protobuffer 1222 // * Data mime type is application/x-protobuffer
1195 // * See GoogleContentTypeEnum.java 1223 // * See GoogleContentTypeEnum.java
1196 // * HTTP parameters are (all required, all case sensitive): 1224 // * HTTP parameters are (all required, all case sensitive):
1197 // * request: MUST BE one of 1225 // * request: MUST BE one of
1198 // * api_authorization 1226 // * api_authorization
1199 // * cert_upload 1227 // * cert_upload
1200 // * check_device_pairing 1228 // * check_device_pairing
1201 // * device_pairing 1229 // * device_pairing
1202 // * device_state_retrieval 1230 // * device_state_retrieval
1203 // * enterprise_check 1231 // * enterprise_check
1204 // * ping 1232 // * ping
1205 // * policy 1233 // * policy
1206 // * register 1234 // * register
1207 // * status 1235 // * status
1208 // * unregister 1236 // * unregister
1209 // * remote_commands 1237 // * remote_commands
1210 // * attribute_update_permission 1238 // * attribute_update_permission
1211 // * attribute_update 1239 // * attribute_update
1212 // * gcm_id_update 1240 // * gcm_id_update
1213 // * check_android_management 1241 // * check_android_management
1214 // * certificate_based_register 1242 // * certificate_based_register
1243 // * active_directory_enroll_play_user
1244 // * active_directory_play_activity
1215 // 1245 //
1216 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS. 1246 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS.
1217 // * apptype: MUST BE Android or Chrome. 1247 // * apptype: MUST BE Android or Chrome.
1218 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E]. 1248 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E].
1219 // * agent: MUST BE no more than 64-char long. 1249 // * agent: MUST BE no more than 64-char long.
1220 // * HTTP Authorization header MUST be in the following formats: 1250 // * HTTP Authorization header MUST be in the following formats:
1221 // * For register, ping and check_android_management requests 1251 // * For register, ping and check_android_management requests
1222 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync> 1252 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync>
1223 // 1253 //
1224 // * For unregister, policy, status, cert_upload, remote commands requests, 1254 // * For unregister, policy, status, cert_upload, remote_commands,
1225 // and gcm id update requests 1255 // gcm_id_update, active_directory_enroll_play_user and
1256 // active_directory_play_activity requests
1226 // Authorization: GoogleDMToken token=<dm token from register> 1257 // Authorization: GoogleDMToken token=<dm token from register>
1227 // 1258 //
1228 // * The Authorization header isn't used for enterprise_check or for 1259 // * The Authorization header isn't used for enterprise_check or for
1229 // certificate_based_register requests, nor for register requests 1260 // certificate_based_register requests, nor for register requests
1230 // using OAuth. In the latter case, the OAuth token is passed in the 1261 // using OAuth. In the latter case, the OAuth token is passed in the
1231 // "oauth" parameter. 1262 // "oauth" parameter.
1232 // 1263 //
1233 // DeviceManagementRequest should only contain one request which matches the 1264 // DeviceManagementRequest should only contain one request which matches the
1234 // HTTP query parameter - request, as listed below. Other requests within the 1265 // HTTP query parameter - request, as listed below. Other requests within the
1235 // container will be ignored. 1266 // 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. 1330 // Update the GCM id to device_id mapping.
1300 optional GcmIdUpdateRequest gcm_id_update_request = 16; 1331 optional GcmIdUpdateRequest gcm_id_update_request = 16;
1301 1332
1302 // Check if user is a managed Android-for-Work user with DPC enforcement. 1333 // Check if user is a managed Android-for-Work user with DPC enforcement.
1303 optional CheckAndroidManagementRequest check_android_management_request = 17; 1334 optional CheckAndroidManagementRequest check_android_management_request = 17;
1304 1335
1305 // Request to register with a registration certificate. 1336 // Request to register with a registration certificate.
1306 optional CertificateBasedDeviceRegisterRequest 1337 optional CertificateBasedDeviceRegisterRequest
1307 certificate_based_register_request = 18; 1338 certificate_based_register_request = 18;
1308 1339
1340 // Gets an enrollment token to a Managed Google Play Account for using it with
1341 // Active Directory.
1342 optional ActiveDirectoryEnrollPlayUserRequest
1343 active_directory_enroll_play_user_request = 19;
1344
1345 // Reports that a Play account is used.
1346 optional ActiveDirectoryPlayActivityRequest
1347 active_directory_play_activity_request = 20;
1309 } 1348 }
1310 1349
1311 // Response from server to device. 1350 // Response from server to device.
1312 // 1351 //
1313 // For release clients, DMServer returns errors using HTTP Status Code, so that 1352 // 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 1353 // 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 1354 // to perform log analysis and customer support since HTTP Status Code is easily
1316 // visible in the logs. 1355 // visible in the logs.
1317 // 1356 //
1318 // The following list defines the error code returned by this API: 1357 // The following list defines the error code returned by this API:
1319 // 1358 //
1320 // 200 OK: valid response is returned to client. 1359 // 200 OK: valid response is returned to client.
1321 // 400 Bad Request: invalid argument. 1360 // 400 Bad Request: invalid argument.
1322 // 401 Unauthorized: invalid auth cookie or DM token. 1361 // 401 Unauthorized: invalid auth cookie or DM token.
1323 // 403 Forbidden: device management is not allowed. 1362 // 403 Forbidden: device management is not allowed.
1324 // 404 Not Found: the request URL is invalid. 1363 // 404 Not Found: the request URL is invalid.
1325 // 410 Device Not Found: the device id is not found. 1364 // 410 Device Not Found: the device id is not found.
1326 // 491 Request Pending: the request is pending approval. 1365 // 491 Request Pending: the request is pending approval.
1327 // 500 Internal Server Error: most likely a bug in DM server. 1366 // 500 Internal Server Error: most likely a bug in DM server.
1328 // 503 Service Unavailable: most likely a backend error. 1367 // 503 Service Unavailable: most likely a backend error.
1329 // 902 Policy Not Found: the policy is not found. 1368 // 902 Policy Not Found: the policy is not found.
1369 // 903 Arc Disabled: ARC is not enabled on the domain.
1330 message DeviceManagementResponse { 1370 message DeviceManagementResponse {
1331 // TODO(hong): move error handling to HTTP level. 1371 // TODO(hong): move error handling to HTTP level.
1332 // Error code to client. 1372 // Error code to client.
1333 enum ErrorCode { 1373 enum ErrorCode {
1334 SUCCESS = 0; 1374 SUCCESS = 0;
1335 // Returned for register request when device management is not supported 1375 // Returned for register request when device management is not supported
1336 // for the domain. 1376 // for the domain.
1337 DEVICE_MANAGEMENT_NOT_SUPPORTED = 1; 1377 DEVICE_MANAGEMENT_NOT_SUPPORTED = 1;
1338 // Returned when the device is not found. 1378 // Returned when the device is not found.
1339 DEVICE_NOT_FOUND = 2; 1379 DEVICE_NOT_FOUND = 2;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 1442
1403 // Response to update device attribute. 1443 // Response to update device attribute.
1404 optional DeviceAttributeUpdateResponse device_attribute_update_response = 16; 1444 optional DeviceAttributeUpdateResponse device_attribute_update_response = 16;
1405 1445
1406 // Response to GCM id update request. 1446 // Response to GCM id update request.
1407 optional GcmIdUpdateResponse gcm_id_update_response = 17; 1447 optional GcmIdUpdateResponse gcm_id_update_response = 17;
1408 1448
1409 // Response to check Android management request. 1449 // Response to check Android management request.
1410 optional CheckAndroidManagementResponse 1450 optional CheckAndroidManagementResponse
1411 check_android_management_response = 18; 1451 check_android_management_response = 18;
1452
1453 // Response to an Active Directory Play user enrollment request.
1454 optional ActiveDirectoryEnrollPlayUserResponse
1455 active_directory_enroll_play_user_response = 19;
1456
1457 // Response to a Play activity request.
1458 optional ActiveDirectoryPlayActivityResponse
1459 active_directory_play_activity_response = 20;
1412 } 1460 }
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