How can I do a signed url in Aidbox? #492
-
I need to create an URL for a custom operation with an access token like JWT. In the JWT token we put Composition id. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Solution could be 2 custom operations: |
Beta Was this translation helpful? Give feedback.
-
We are also thinking about new RPC for aidbox: It is yet to decide whether the signed url should be the same as the one you give access to or some kind of random string, i.e.: |
Beta Was this translation helpful? Give feedback.
Solution could be 2 custom operations:
One to generate signed url: create a jwt with url of the desired endpoint or resource id, expiration, etc
Another operation to process it: get token from the url, put it to headers
And access policy to allow access to the endpoint by checking jwt claims