From edd37d20198ba95ebabdbdbf8030f1ec1ecffb6b Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 20 Dec 2011 18:09:20 -0600 Subject: Reload UI when the user changes. The JSON server has been modified to return the principal name in all responses. The UI has been modified to keep the principal obtained during whoami operation and check the principal returned in subsequent operations. If the principal changes the UI will reload itself. Ticket #1400 --- ipaserver/rpcserver.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ipaserver/rpcserver.py') diff --git a/ipaserver/rpcserver.py b/ipaserver/rpcserver.py index e12f2706e..2bfb8ea60 100644 --- a/ipaserver/rpcserver.py +++ b/ipaserver/rpcserver.py @@ -469,6 +469,7 @@ class jsonserver(WSGIExecutioner): result=result, error=error, id=_id, + principal=unicode(context.principal), ) response = json_encode_binary(response) return json.dumps(response, sort_keys=True, indent=4) -- cgit