Skip to content

Commit

Permalink
fix: update trust anchor tools - storage
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Aug 22, 2023
1 parent df09b60 commit 8895f4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyeudiw/storage/base_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def has_trust_anchor(self, entity_id: str):
def add_trust_attestation(self, entity_id: str, trust_chain: list[str], exp: datetime) -> str:
raise NotImplementedError()

def add_trust_anchor(self, entity_id: str, trust_chain: list[str], exp: datetime) -> str:
def add_trust_anchor(self, entity_id: str, entity_configuration: list[str], exp: datetime) -> str:
raise NotImplementedError()

def update_trust_attestation(self, entity_id: str, trust_chain: list[str], exp: datetime) -> str:
Expand Down
4 changes: 2 additions & 2 deletions pyeudiw/storage/db_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def has_trust_anchor(self, entity_id: str):
def add_trust_attestation(self, entity_id: str, trust_chain: list[str], exp: datetime) -> str:
return self.write("add_trust_attestation", entity_id, trust_chain)

def add_trust_anchor(self, entity_id: str, trust_chain: list[str], exp: datetime) -> str:
return self.write("add_trust_anchor", entity_id, trust_chain, exp)
def add_trust_anchor(self, entity_id: str, entity_configuration: list[str], exp: datetime) -> str:
return self.write("add_trust_anchor", entity_id, entity_configuration, exp)

def update_trust_attestation(self, entity_id: str, trust_chain: list[str], exp: datetime) -> str:
return self.write("update_trust_attestation", entity_id, trust_chain, exp)
Expand Down
2 changes: 1 addition & 1 deletion pyeudiw/tests/satosa/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
db_engine_inst = DBEngine(CONFIG['storage'])
db_engine_inst.add_trust_anchor(
entity_id=ta_ec['iss'],
trust_chain=ta_ec,
entity_configuration=ta_ec,
exp=datetime.datetime.now().isoformat()
)

Expand Down

0 comments on commit 8895f4c

Please sign in to comment.