ocaml-aws icon indicating copy to clipboard operation
ocaml-aws copied to clipboard

Support for temporary credentials

Open senior opened this issue 4 years ago • 2 comments

When trying to use the ocaml-aws library, I couldn't figure out a way to supply temporary credentials using the API as it is. What I needed to support temporary credentials, was to add a "x-amz-security-token" header with a supplied token. I think it might be as easy as adding an optional parameter to sign_request that will add the appropriate header, but I think that would then need to be surfaced in places that is being called, like Aws_async.Runtime.run_request.

More info on temporary credentials: -Making Requests -REST authentication

senior avatar Mar 30 '20 22:03 senior

I haven't looked into supporting the temporary credentials functionality yet. I'll put it into the backlog of feature request. My focus with this library right now is shaking the bugs out of the currently supported bindings, like https://github.com/inhabitedtype/ocaml-aws/issues/75

If you feel strongly about it please submit a PR. Cheers 👍

tmcgilchrist avatar Apr 02 '20 09:04 tmcgilchrist

https://github.com/inhabitedtype/ocaml-aws/pull/99

jrochel avatar Mar 04 '21 13:03 jrochel