summaryrefslogtreecommitdiffstats
path: root/ipaserver/rpcserver.py
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2011-12-20 18:09:20 -0600
committerEndi S. Dewata <edewata@redhat.com>2011-12-21 13:22:45 -0600
commitedd37d20198ba95ebabdbdbf8030f1ec1ecffb6b (patch)
tree0148f184369ffbb944775763d6040adcb12e0fb6 /ipaserver/rpcserver.py
parent78e93c11f680dd4bc23fd88f520fb333f0119f7f (diff)
downloadfreeipa-edd37d20198ba95ebabdbdbf8030f1ec1ecffb6b.tar.gz
freeipa-edd37d20198ba95ebabdbdbf8030f1ec1ecffb6b.tar.xz
freeipa-edd37d20198ba95ebabdbdbf8030f1ec1ecffb6b.zip
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
Diffstat (limited to 'ipaserver/rpcserver.py')
-rw-r--r--ipaserver/rpcserver.py1
1 files changed, 1 insertions, 0 deletions
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)