Publish identity realm, as well as displayName, in "authenticated" events.
authorMike Taylor <mike@indexdata.com>
Thu, 17 Apr 2014 16:01:27 +0000 (17:01 +0100)
committerMike Taylor <mike@indexdata.com>
Thu, 17 Apr 2014 16:01:27 +0000 (17:01 +0100)
src/mkws-core.js

index 07a4b2d..d6433f4 100644 (file)
@@ -299,8 +299,10 @@ mkws.pagerNext = function(tname) {
            log("Service proxy auth successfully done");
            mkws.authenticated = true;
            var authName = $(data).find("displayName").text();
+           // You'd think there would be a better way to do this:
+           var realm = $(data).find("realm:not(realmAttributes realm)").text();
            for (var teamName in mkws.teams) {
-               mkws.teams[teamName].queue("authenticated").publish(authName);
+               mkws.teams[teamName].queue("authenticated").publish(authName, realm);
            }
 
            runAutoSearches();