Azure / Azure/data-api-builder

Authentication provider: `Simulator` -> Customize token claims in config

Aperta
#842 8 commenti 1 reazione 1 assegnatario Assegnata a @seantleonard Vedi su GitHub
auth backlog enhancement has-pr needs discussion usability
Lingua principale
C#
Stelle
1.5k
Fork
370
Merge medio
3g 22h
PR unite (30g)
9

Descrizione

When running in development mode, there should be an option to tell DAB to automatically assume that the request is authenticated and consider any role passed in via X-MS-API-ROLE valid, to facilitate debugging and testing of defined permissions. For example, this could be a configuration that defines what I just described:

```json
"runtime": {
"host": {
"mode": "development",
"authentication": {
"provider": "emulator",
}
}
}
```

The `emulator` provide could also, in future, allow for more configuration so that also claims could be injected in the context that is available to the developer, in order to also more easily debug policies.

For example:

```json
"runtime": {
"host": {
"mode": "development",
"authentication": {
"provider": {
"name": "emulator",
"settings": {
"claims": {
"email":"john.doe@contoso.com"
}
}
}
}
}
}
```

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.