Azure / Azure/data-api-builder

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

Open
#842 8 comments 1 reaction 1 assignee Assigned to @seantleonard View on GitHub
auth backlog enhancement has-pr needs discussion usability
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 17h
Merged PRs (30d)
8

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.