api-platform / api-platform/core
Support multiple oauth flows
- Lingua principale
- PHP
- Stelle
- 2.6k
- Fork
- 980
- Merge medio
- 2g 4h
- PR unite (30g)
- 49
Descrizione
**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: []
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.