cred should be delegated to the user's authority's authority (root or sub authority)
authorTony Mack <tmack@cs.princeton.edu>
Tue, 17 Aug 2010 21:53:56 +0000 (21:53 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 17 Aug 2010 21:53:56 +0000 (21:53 +0000)
sfa/client/sfi.py

index f298d75..e8b3b1a 100755 (executable)
@@ -738,9 +738,10 @@ class Sfi:
         else:
             cred = user_cred
             hrn = None
-      
-        delegated_cred = self.delegate_cred(cred, self.authority) 
+     
+        delegated_cred = self.delegate_cred(cred, get_authority(self.authority))
         creds = [cred, delegated_cred] 
+        #creds = [delegated_cred] 
         result = server.ListResources(creds, call_options)
         format = opts.format
         display_rspec(result, format)