Presentation API: add support for multi-tenancy
Closed this issue · 0 comments
paullatzelsperger commented
Bug Report
Describe the Bug
Currently, the PresentationCreatorRegistryImpl
contains a mapping of credential format -> key-id. That scheme only can accommodate one key per format. As soon as there is another participant, the existing keys would get overwritten.
Expected Behavior
The PresentationCreatorRegistryImpl
returns the (first) default key for every participant.
Possible Implementation
The PresentationCreatorRegistryImpl
obtains all active (non-rotated, non-revoked) keys for a participant context where the isDefault
flag is set. If there are several, take the first one. If there is no default
key, take one at random. If there is no active key, abort with an error.
Maintaining an in-memory map is not sufficient. The KeyPairResourceService
must be consulted.