summaryrefslogtreecommitdiffstats
path: root/chromeos
diff options
context:
space:
mode:
authorafakhry <afakhry@chromium.org>2016-03-08 14:25:49 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-08 22:27:47 +0000
commit40f5bfd9396369bea37404e60f11d28556633907 (patch)
tree61a5a41d6b3a179befaba7609fbd698c0150bdd0 /chromeos
parentb3b898416e25dffa09716e70d6e79cf9fd668158 (diff)
downloadchromium_src-40f5bfd9396369bea37404e60f11d28556633907.zip
chromium_src-40f5bfd9396369bea37404e60f11d28556633907.tar.gz
chromium_src-40f5bfd9396369bea37404e60f11d28556633907.tar.bz2
Add a chromeos device policy to control the login authentication behavior
This will enable admins to set the behavior of the login authentication flow for the enrolled device. The behavior will be one of the following. * The normal GAIA authentication flow. * An interstitial screen that offers the user to go forward with SAML IdP endpoint authentication, or go back to the normal GAIA flow. * Automatic redirection to the SAML IdP endpoint without user confirmation. BUG=587900 Review URL: https://codereview.chromium.org/1713683002 Cr-Commit-Position: refs/heads/master@{#379938}
Diffstat (limited to 'chromeos')
-rw-r--r--chromeos/settings/cros_settings_names.cc8
-rw-r--r--chromeos/settings/cros_settings_names.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/chromeos/settings/cros_settings_names.cc b/chromeos/settings/cros_settings_names.cc
index f6de5ca..cce908b 100644
--- a/chromeos/settings/cros_settings_names.cc
+++ b/chromeos/settings/cros_settings_names.cc
@@ -183,4 +183,12 @@ const char kExtensionCacheSize[] = "cros.device.extension_cache_size";
// 3 = 270 degrees clockwise rotation
const char kDisplayRotationDefault[] = "cros.display_rotation_default";
+// An integer pref that sets the behavior of the login authentication flow.
+// 0 = authentication using the default GAIA flow.
+// 1 = authentication using an interstitial screen that offers the user to go
+// ahead via the SAML IdP of the device's enrollment domain, or go back to the
+// normal GAIA login flow.
+const char kLoginAuthenticationBehavior[] =
+ "cros.device.login_authentication_behavior";
+
} // namespace chromeos
diff --git a/chromeos/settings/cros_settings_names.h b/chromeos/settings/cros_settings_names.h
index 2045b9e..cd9cd85 100644
--- a/chromeos/settings/cros_settings_names.h
+++ b/chromeos/settings/cros_settings_names.h
@@ -94,6 +94,8 @@ CHROMEOS_EXPORT extern const char kExtensionCacheSize[];
CHROMEOS_EXPORT extern const char kDisplayRotationDefault[];
+CHROMEOS_EXPORT extern const char kLoginAuthenticationBehavior[];
+
} // namespace chromeos
#endif // CHROMEOS_SETTINGS_CROS_SETTINGS_NAMES_H_