From e69e9ba6777cd0186c58db2699e6419449d3c22a Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 17 Apr 2014 17:01:27 +0100 Subject: [PATCH] Publish identity realm, as well as displayName, in "authenticated" events. --- src/mkws-core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index 07a4b2d..d6433f4 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -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(); -- 1.7.10.4