-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The new CreateAccount API is used to notify ChromeOS of new account creation during login. It is used with the existing add and confirm credential passing API. This feature is enabled by default. This associated feature flag (GaiaRecordAccountCreation) is enabled by default. DD: go/cros-gaia-info-exp-new-metric Bug: b/307590266 Change-Id: Ie5257db2732b08a49440a4ae0ebff2ad740d32df Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4977107 Commit-Queue: Thu Huong Vu <thv@chromium.org> Reviewed-by: Li Lin <llin@chromium.org> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by: Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1216578}
- Loading branch information
ThuHuong
authored and
Chromium LUCI CQ
committed
Oct 28, 2023
1 parent
8885faa
commit f11f1b0
Showing
8 changed files
with
195 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
chrome/test/data/login/saml_api_login_auth_with_new_account.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<html> | ||
<head> | ||
<script type="text/javascript"> | ||
function send_and_submit() { | ||
var form = document.forms[0]; | ||
var token = form.elements['RelayState'].value; | ||
window.setTimeout(function() { | ||
window.postMessage({ | ||
type: 'gaia_saml_api', | ||
call: {method: 'createaccount', token: token}}, '/'); | ||
}, 0); | ||
|
||
window.setTimeout(function() { | ||
window.postMessage({ | ||
type: 'gaia_saml_api', | ||
call: {method: 'confirm', token: token}}, '/'); | ||
form.submit(); | ||
}, 0); | ||
} | ||
</script> | ||
</head> | ||
<body onload="send_and_submit();"> | ||
<form method=post action="$Post"> | ||
<input type=hidden name=SAMLResponse value="fake_response"/> | ||
<input type=hidden name=RelayState value="$RelayState"> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters