Azure / Azure/data-api-builder

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

オープン
#842 コメント 8 件 リアクション 1 件 担当者 1 名 GitHub で見る

関連するプルリクエストがすでにマージされています。

  • #899 @seantleonard による — マージ済み
auth backlog enhancement has-pr needs discussion usability
主要言語
C#
スター
1.5k
フォーク
372
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

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:

"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:

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。