Преглед изворни кода

Merge pull request #22459 from twistlock/authorization_docs_fix

Remove response modification sections from authorization design doc
Sebastiaan van Stijn пре 9 година
родитељ
комит
8d4ccd1925
1 измењених фајлова са 1 додато и 8 уклоњено
  1. 1 8
      docs/extend/plugins_authorization.md

+ 1 - 8
docs/extend/plugins_authorization.md

@@ -195,17 +195,10 @@ should implement the following two methods:
 {
    "Allow":              "Determined whether the user is allowed or not",
    "Msg":                "The authorization message",
-   "Err":                "The error message if things go wrong",
-   "ModifiedBody":       "Byte array containing a modified body of the raw HTTP body (or null if no changes required)",
-   "ModifiedHeader":     "Byte array containing a modified header of the HTTP response (or null if no changes required)",
-   "ModifiedStatusCode": "int containing the modified version of the status code (or 0 if not change is required)"
+   "Err":                "The error message if things go wrong"
 }
 ```
 
-The modified response enables the authorization plugin to manipulate the content
-of the HTTP response. In case of more than one plugin, each subsequent plugin
-receives a response (optionally) modified by a previous plugin.
-
 ### Request authorization
 
 Each plugin must support two request authorization messages formats, one from the daemon to the plugin and then from the plugin to the daemon. The tables below detail the content expected in each message.