api-platform / api-platform/core
Support multiple oauth flows
未關閉
- 主要語言
- PHP
- 星號
- 2.6k
- 分支
- 980
- 平均合併
- 2 天 2 小時
- 30 天內合併 PR
- 51
描述
**Description**
It would be nice if we could support multiple oauth2 flows in swaggerui/openapi. Currently only one flow can be enabled.
We could expand the configuration and use the name of the flow as key. This could also simplify the part in the OpenApiFactory and could be a nice addition.
Ref: https://swagger.io/docs/specification/authentication/oauth2/
**Example**
```
oauth:
enabled: true
flows:
implicit:
clientId: foo
clientSecret: bar
authorizationUrl: 'oauth2.local'
scopes: []
client_credentials:
clientId: foo
clientSecret: bar
tokenUrl: 'oauth2.local'
scopes: []
```
貢獻指南
評估
這個 Issue 還沒有評估資料。