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.

Insomnia is unable to import OpenApi 3 with multiple API keys

See original GitHub issue

Expected Behavior

we have an OpanApi 3 collection with multiple API keys, as described at the following link under the paragraph “multiple API keys”: https://swagger.io/docs/specification/authentication/api-keys/

When importing this, it is expected that the various endpoints will have both headers (in our case, x-api-key and x-api-secret).

Feeding the same OpenApi file to ReDoc, both authentication headers are correctly recognised: Screen Shot 2022-02-08 at 8 47 15 am

Actual Behavior

only x-api-key is present in the imported collection, while the header x-api-secret has to be created manually for each endpoint that is part of the collection. Screen Shot 2022-02-08 at 1 06 19 pm

Reproduction Steps

  1. create an OpenApi JSON file with multiple keys as explained here https://swagger.io/docs/specification/authentication/api-keys/
  2. import the file as a new collection in Insomnia
  3. select one of the endpoints in the imported collection
  4. open the request headers tab and verify that not all headers have been created

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2021.7.2

What operating system are you using?

macOS

Operating System Version

Reproduced on macOS, Win 10 and Win 11

Installation method

download from Insomnia.rest

Last Known Working Insomnia version

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
filfreirecommented, Aug 12, 2022

Hi @mastazi the fix I mentioned above is now part of our latest beta release (2022.6.0-beta.1). Feel free to report any other issues you come across!

1reaction
mastazicommented, Aug 5, 2022

Amazing, thank yuo @filfreire !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import and Export Data | Insomnia Docs
Insomnia supports importing and exporting. Currently, the supported import formats are Insomnia, Postman v2, HAR, OpenAPI, Swagger, WSDL, and cURL.
Read more >
Pipedrive API in Postman or Insomnia
Pipedrive + Insomnia​​ Open Insomnia and click on the small arrow next to "Insomnia". From the drop-down menu choose "Import/Export". From the "Import...
Read more >
Introduction – WooCommerce REST API Documentation
Pre-generated keys can be used to authenticate use of the REST API endpoints. New keys can be generated either through the WordPress admin...
Read more >
Generating and Configuring a Mastercard API Client
CopiedStep-By-Step Guide · CopiedStep 1: Create an API Project · CopiedStep 2: Download an OpenAPI Specification · CopiedStep 3: Generate an API Client...
Read more >
API Docs - GitLab Docs
You can also use a partial OpenAPI definition, to test the API ... per page ( per_page=3 ) and we request the second...
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