Azure / Azure/data-api-builder

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

Ouverte
#842 8 commentaires 1 réaction 1 personne assignée Assignée à @seantleonard Voir sur GitHub
auth backlog enhancement has-pr needs discussion usability
Langage dominant
C#
Étoiles
1.5k
Forks
372
Merge moyen
3 j 22 h
PR mergées (30 j)
9

Description

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"
}
}
}
}
}
}
```

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.