Accept a user identity forwarded by a credentialed server

オープン
#4,238 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

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

説明

PolicyEngine's web servers will call the Public API with their own server credential in Authorization (#4236). When such a server acts for a person, the signed-in user routes (/v2/me*, /v2/user-*) need to know who that person is, but Authorization is already taken by the server's token.

Done when:

  • a credentialed server can forward a signed-in user's Auth0 token in PolicyEngine-User-Authorization: Bearer <token>, or a signed-out browser's PolicyEngine-Unauthenticated-User header;
  • the user routes treat that user exactly as they treat a direct request with the same credential today, including POST /v2/me/upgrade;
  • until enforcement, a user's token sent directly in Authorization keeps working, and PolicyEngine-User-Authorization is ignored on any request without a server credential.
主要言語
Python
スター
18
フォーク
33
平均マージ
2日 14時間
マージ済み PR(30日)
116

環境構築

はじめの一歩

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

PolicyEngine/policyengine-api のほかの issue

PolicyEngine/policyengine-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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