[js-embedded-discovery COMMIT] in /trunk: doc/RELEASE-NOTES.txt src/javascript/idpselect.js

noreply at shibboleth.net noreply at shibboleth.net
Mon Jan 5 08:08:20 EST 2015


Author: rdw
Date: Mon Jan  5 08:08:20 2015
New Revision: 115

URL: http://svn.shibboleth.net/view/js-embedded-discovery?rev=115&view=rev
Log:
EDS-40 Configurable writing of the cookie.  Allows the SP to write it instead.

Modified:
    trunk/doc/RELEASE-NOTES.txt
    trunk/src/javascript/idpselect.js

Modified: trunk/doc/RELEASE-NOTES.txt
URL: http://svn.shibboleth.net/view/js-embedded-discovery/trunk/doc/RELEASE-NOTES.txt?rev=115&r1=114&r2=115&view=diff
==============================================================================
--- trunk/doc/RELEASE-NOTES.txt (original)
+++ trunk/doc/RELEASE-NOTES.txt Mon Jan  5 08:08:20 2015
@@ -7,6 +7,7 @@
 EDS-42 Move Compressor up to 2.4.8
 EDS-39 Ship non mimimized sources
 EDS-30 Use %20 as the separator for entityIDs in the cookie, but continue to understand '+'
+EDS-40 Configurable writing of the cookie.  Allows the SP to write it instead.
 
 Changed in V1.0.3
 =============================================

Modified: trunk/src/javascript/idpselect.js
URL: http://svn.shibboleth.net/view/js-embedded-discovery/trunk/src/javascript/idpselect.js?rev=115&r1=114&r2=115&view=diff
==============================================================================
--- trunk/src/javascript/idpselect.js (original)
+++ trunk/src/javascript/idpselect.js Mon Jan  5 08:08:20 2015
@@ -34,6 +34,7 @@
     var maxResults;
     var ignoreKeywords;
     var showListFirst;
+    var noWriteCookie;
 
     //
     // The cookie contents
@@ -125,6 +126,11 @@
             showListFirst = paramsSupplied.showListFirst;
         } else {
             showListFirst = false;
+        }
+        if (paramsSupplied.noWriteCookie) {
+            noWriteCookie = paramsSupplied.noWriteCookie;
+        } else {
+            noWriteCookie = false;
         }
         defaultLogo = paramsSupplied.defaultLogo;
         defaultLogoWidth = paramsSupplied.defaultLogoWidth;
@@ -1215,6 +1221,11 @@
     var saveUserSelectedIdPs = function(idps){
         var cookieData = [];
         var length = idps.length;
+
+        if (noWriteCookie) {
+            return;
+        }
+
         if (length > 5) {
             length = 5;
         }



More information about the commits mailing list