api-platform / api-platform/core
Support multiple oauth flows
- Lenguaje dominante
- PHP
- Estrellas
- 2.6k
- Forks
- 980
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 49
Descripción
**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: []
```
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.