Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Key should be allowed in cookie #654

Open
JaredAAT opened this issue Dec 12, 2022 · 1 comment
Open

API Key should be allowed in cookie #654

JaredAAT opened this issue Dec 12, 2022 · 1 comment
Assignees
Labels
collection-limitation Issue can not be solved or supported due to postman collection limitations. feature New feature request, accepted for probable development importer

Comments

@JaredAAT
Copy link

JaredAAT commented Dec 12, 2022

According to the Security Scheme Object for OpenAPI 3.0.3, the API key security scheme is allowed the following values for the in field: "query", "header" or "cookie".

It seems though that you're currently limiting this to 'query' and 'header': https://github.com/postmanlabs/openapi-to-postman/blob/develop/lib/schemaUtils.js#L1205

Is there a particular reason for that?

@VShingala VShingala added the collection-limitation Issue can not be solved or supported due to postman collection limitations. label Jan 13, 2023
@VShingala
Copy link
Member

@JaredAAT Main reason for this is due to postman-collection only having query and header values for API key type of authorization. So even if the module supports cookie, the target converted protocol being collection doesn't have support for it.

image

We'll take a look at this in postman and see if collections can support the same and work on it.

@VShingala VShingala added the feature New feature request, accepted for probable development label Jan 13, 2023
@akshaydeo akshaydeo self-assigned this Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
collection-limitation Issue can not be solved or supported due to postman collection limitations. feature New feature request, accepted for probable development importer
Projects
None yet
Development

No branches or pull requests

3 participants