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

Unified Diff: chrome/browser/resources/chromeos/login/saml_interstitial.js

Issue 1831523003: FR: SAML Sign In - Interstitial page to send users directly to IdP login screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Xiyuan's comments and rebase Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/login/saml_interstitial.js
diff --git a/chrome/browser/resources/chromeos/login/saml_interstitial.js b/chrome/browser/resources/chromeos/login/saml_interstitial.js
new file mode 100644
index 0000000000000000000000000000000000000000..eb7d063645a28027c5231a16ebc085a043e5d1c3
--- /dev/null
+++ b/chrome/browser/resources/chromeos/login/saml_interstitial.js
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+Polymer({
+ is: 'saml-interstitial',
+
+ properties: {
+ domain: {
+ type: String,
+ observer: 'onDomainChanged_'
+ },
+
+ showDomainMessages_: {
+ type: Boolean,
+ value: false
+ },
+ },
+ onDomainChanged_: function() {
+ this.$.message.content =
+ loadTimeData.getStringF('samlInterstitialMessage', this.domain);
+ this.showDomainMessages_ = !!this.domain.length;
+ },
+ onSamlPageNextClicked_: function() {
+ this.fire('samlPageNextClicked');
+ },
+ onSamlPageChangeAccountClicked_: function() {
+ this.fire('samlPageChangeAccountClicked');
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698