api-platform / api-platform/core

Support multiple oauth flows

未关闭
#4,626 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
2.6k
派生
980
平均合并
2 天 4 小时
30 天内合并 PR
49

描述

**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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。