Skip to content

endpoint.Service: Bind multiple ephemeral identities at the same time #1009

@adecaro

Description

@adecaro

Currently, the endpoint service platform/view/services/endpoint allows us to one ephemeral identity at the time using the function

Bind(ctx context.Context, longTerm view.Identity, ephemeral view.Identity) error

In the Token-SDK, we need to binds per pseudonym generated. This means two queries.
This Issues asks to modify the function to get in input multiple ephemeral identities in order to have only one DB query.
The suggested change is to

Bind(ctx context.Context, longTerm view.Identity, ephemeralIDs ...view.Identity) error

This way we will have minimum disruption in the rest of the code.
The implementation of the function will check also that len( ephemeralIDs) != 0 before proceeding.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions