git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
using method get_self_credential to bootstrap SM credential
[sfa.git]
/
sfa
/
plc
/
api.py
diff --git
a/sfa/plc/api.py
b/sfa/plc/api.py
index
01cd8e2
..
5af31ec
100644
(file)
--- a/
sfa/plc/api.py
+++ b/
sfa/plc/api.py
@@
-185,10
+185,11
@@
class GeniAPI:
from sfa.server.registry import Registries
registries = Registries(self)
registry = registries[self.hrn]
from sfa.server.registry import Registries
registries = Registries(self)
registry = registries[self.hrn]
+ cert_string=self.cert.save_to_string(save_parents=True)
# get self credential
# get self credential
- arg_list = [
None
,type,self.hrn]
+ arg_list = [
cert_string
,type,self.hrn]
request_hash=self.key.compute_hash(arg_list)
request_hash=self.key.compute_hash(arg_list)
- self_cred = registry.get_
credential(None
, type, self.hrn, request_hash)
+ self_cred = registry.get_
self_credential(cert_string
, type, self.hrn, request_hash)
# get credential
arg_list = [self_cred,type,self.hrn]
request_hash=self.key.compute_hash(arg_list)
# get credential
arg_list = [self_cred,type,self.hrn]
request_hash=self.key.compute_hash(arg_list)