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

[Bug]: Incorrect OpenAPI Specifiaction causes error in Swagger #2486

Open
1 task done
MartinGadd opened this issue Dec 3, 2024 · 0 comments
Open
1 task done

[Bug]: Incorrect OpenAPI Specifiaction causes error in Swagger #2486

MartinGadd opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working triage issues to be triaged

Comments

@MartinGadd
Copy link

MartinGadd commented Dec 3, 2024

What happened?

I am running DAB in development mode in Azure Redhat Openshift with AzureAD as AuthenticationProvider and "authenticated:*" on all Entities.

When testing the Rest API using Swagger DAB is adding a "Authorization" of type Header parameter on all endpoints.
Image

However, when using the [Try It Out] feature the Authorization parameter is not added to the request header. This seem to be because parameters of name "Authorization" and type Header should be ignored according to the OpenAPI specification. The incorrect behaviour and how to handle it in swagger is documented here:

swagger-api/swagger-ui#5643 (comment)

Version

1.1.7

What database are you using?

Azure SQL

What hosting model are you using?

Custom Docker host

Which API approach are you accessing DAB through?

REST

Relevant log output


Code of Conduct

  • I agree to follow this project's Code of Conduct
@MartinGadd MartinGadd added bug Something isn't working triage issues to be triaged labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage issues to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant