api-platform / api-platform/core

Support multiple oauth flows

Aperta
#4,626 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
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.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.