Add IssuerKey method to bearer token #27

Open
opened 2023-03-08 23:37:47 +00:00 by snegurochka · 0 comments
Member

Original issue: https://github.com/nspcc-dev/neofs-sdk-go/issues/231

During update sdk in neofs-s3-gw the following code happens:

...
var btoken v2acl.BearerToken
box.Gate.BearerToken.WriteToV2(&btoken)

key, err := keys.NewPublicKeyFromBytes(btoken.GetSignature().GetKey(), elliptic.P256())
...

Maybe we should add method to get the key of the signature from bearer token along with getting the issuer?

Original issue: https://github.com/nspcc-dev/neofs-sdk-go/issues/231 During update [sdk in neofs-s3-gw](https://github.com/nspcc-dev/neofs-s3-gw/pull/409/files#diff-13f557e3b4e64696e21218c8321e293b2392bba2932cd02b8e3b43a3caeca71d) the following code happens: ``` ... var btoken v2acl.BearerToken box.Gate.BearerToken.WriteToV2(&btoken) key, err := keys.NewPublicKeyFromBytes(btoken.GetSignature().GetKey(), elliptic.P256()) ... ``` Maybe we should add method to get the key of the signature from bearer token along with getting the issuer?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#27
No description provided.