question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[REQ] Support for withAWSV4Signature in TypeScript Axios Generator

See original GitHub issue

TypeScript generator lacks support for signing apis with AWS v4 generator.

This generator lacks withAWSV4Signature which indicates whether to include AWS v4 signature support. This feature is available in Go generator: https://openapi-generator.tech/docs/generators/go/

So, it would be great to have support for this feature in TypeScript Axios generator as well. https://openapi-generator.tech/docs/generators/typescript-axios/

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
wing328commented, Jan 7, 2021

Here is the PR to add AWS V4 signature support to the Go client generator: https://github.com/OpenAPITools/openapi-generator/pull/7326/files.

0reactions
ColeMurraycommented, May 15, 2021

Following up on this:

I see two paths forward here, we could

a) utilize the https://github.com/jamesmbourne/aws4-axios and implement as an interceptor, as seen in @jarruda’s commit b) Implement using system libraries, similar to https://github.com/mhart/aws4, implementing it similar to the existing auth methods which are added here: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-axios/common.mustache#L30 https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache#L5

Do we have a preference for this?

I’m inclined for option b, as it avoids a third-party dependency, but may require additional maintenance in the future if sigv4 were to change

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation for the typescript-axios Generator
Property, Value, Notes. generator name, typescript-axios, pass this to the generate command after -g. generator stability, STABLE.
Read more >
OpenAPI Generator `typescript-fetch` vs `typescript-node` vs ...
Based on this issue, it seems the typescrypt generator is going to be a more maintainable replacement than the generators you proposed.
Read more >
OpenAPITools/openapi-generator v6.0.0-beta on GitHub
New release OpenAPITools/openapi-generator version v6.0.0-beta v6.0.0-beta released on GitHub.
Read more >
openapi-typescript-codegen - npm
The OpenAPI generator supports Bearer Token authorization. In order to enable the sending of tokens in each request you can set the token...
Read more >
OpenAPI-generator, typescript-axios, and Vue? : r/vuejs - Reddit
core/OpenAPI'; import { request as __request } from '. ... I'm using typescript-axios, which generates API client code using the Axios ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found