Commit d2004785 authored by xiyuan@chromium.org's avatar xiyuan@chromium.org

cros: Add SAML redirect banner for enrollment.

BUG=334624

Review URL: https://codereview.chromium.org/130813009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251123 0039d316-1c4b-4281-b951-d872f2087c98
parent 0a48ae82
......@@ -90,3 +90,32 @@
#oauth-enrollment .step-contents {
-webkit-margin-after: 10px;
}
#oauth-saml-notice-container {
left: 0;
position: absolute;
right: 0;
text-align: center;
top: 62px;
}
#oauth-enrollment.saml {
padding: 97px 0 21px;
}
#oauth-enrollment.saml #oauth-enroll-signin-frame {
height: 444px;
}
#oauth-enrollment.saml #oauth-enrollment-controls,
#oauth-enrollment.saml #oauth-enroll-signin-link-container {
-webkit-padding-end: 17px;
}
#oauth-enrollment:not(.saml) #oauth-saml-notice-container {
display: none;
}
#oauth-saml-notice-message {
margin: 0 auto;
}
......@@ -58,5 +58,8 @@
</div>
</div>
</div>
<div id="oauth-saml-notice-container">
<span id="oauth-saml-notice-message"></span>
</div>
<div id="oauth-enrollment-controls" class="step-controls"></div>
</div>
......@@ -181,6 +181,7 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
$('oauth-enroll-cancel-button').textContent =
loadTimeData.getString('oauthEnrollCancelAutoEnrollmentGoBack');
}
this.classList.toggle('saml', false);
this.showStep(STEP_SIGNIN);
},
......@@ -330,6 +331,15 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
chrome.send('oauthEnrollRetrieveAuthenticatedUserEmail',
[msg.attemptToken]);
}
if (msg.method == 'authPageLoaded') {
if (msg.isSAML) {
$('oauth-saml-notice-message').textContent = loadTimeData.getStringF(
'samlNotice',
msg.domain);
}
this.classList.toggle('saml', msg.isSAML);
}
}
};
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment