You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
paullatzelsperger
changed the title
PresentationCreatorRegistryImpl: invert key-id mapping to enable multi-tenancy
Presentation API: add support for multi-tenancy
Feb 5, 2024
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 theisDefault
flag is set. If there are several, take the first one. If there is nodefault
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.The text was updated successfully, but these errors were encountered: