Azure / Azure/data-api-builder

[Bug]: Incorrect OpenAPI Specifiaction causes error in Swagger

オープン
#2,486 コメント 1 件 リアクション 2 件 担当者 2 名 @JerryNixon が担当を希望しています GitHub で見る
2.2 bug open-api security
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

### 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](https://github.com/user-attachments/assets/c9c70644-4e36-49e7-8797-5e03807d8368)

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:

https://github.com/swagger-api/swagger-ui/issues/5643#issuecomment-538412105

### 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

```Text

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。