The Access Evaluation API defines the message exchange pattern between a client (PEP) and an authorization service (PDP) for executing a single access evaluation.
6.アクセス評価API
アクセス評価 API は、単一のアクセス評価を実行するためのクライアント (PEP) と認可サービス (PDP) 間のメッセージ交換パターンを定義します
まずはリクエストからです。
6.1. The Access Evaluation API Request
The Access Evaluation request is a 4-tuple constructed of the four previously defined entities:
subject: REQUIRED. The subject (or principal) of type Subject
action: REQUIRED. The action (or verb) of type Action.
resource: REQUIRED. The resource of type Resource.
context: OPTIONAL. The context (or environment) of type Context.
In addition to a "decision", a response may contain a "context" field which can be any JSON object. This context can convey additional information that can be used by the PEP as part of the decision evaluation process. Examples include:
A Reason Object specifies a particular reason. It is a JSON object that has the following fields:
id: REQUIRED. A string value that specifies the reason within the scope of a particular response.
reason_admin: OPTIONAL. The reason, which MUST NOT be shared with the user, but useful for administrative purposes that indicates why the access was denied. The value of this field is a Reason Field object (Section 6.2.3.1.1).
reason_user: OPTIONAL. The reason, which MAY be shared with the user that indicates why the access was denied. The value of this field is a Reason Field object (Section 6.2.3.1.1).
The following is a non-normative example of a Reason Object:
0 件のコメント:
コメントを投稿