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

unsupported security scheme type: apikey while running on a Swagger file #216

Open
I-S-Tech opened this issue Oct 31, 2024 · 2 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@I-S-Tech
Copy link

I-S-Tech commented Oct 31, 2024

When running with my swagger file, I get an error

unsupported security scheme type: apikey

running command

vulnapi scan openapi myswagger.yaml

And having vulnapi installed from .deb package of the releases, and within a docker container.

While I can't post the entire Swagger, feel free to ask any question about it.

Thanks.

@emmanuelgautier emmanuelgautier added the enhancement New feature or request label Nov 7, 2024
@emmanuelgautier
Copy link
Member

Hi @I-S-Tech,

Thank you for reporting this issue! The API key security scheme is not yet supported, but I will work on it soon. Should be included in a next release in the coming weeks.

Could you please provide more details on how the API key is being passed? For example, is it passed as a bearer token in the header or in some other way?

@I-S-Tech
Copy link
Author

I-S-Tech commented Nov 8, 2024

Hi @emmanuelgautier, thanks for the reply !

Thanks for the precision, I look forward to the next release !

For the API key, here are the corresponding lines within the swagger file :

components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants