You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/api.rst
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -396,3 +396,24 @@ Code below will eleminate all schemas not required to serve the operations ident
396
396
.. autoclass:: Reduce
397
397
:members: __init__
398
398
.. autoclass:: Cull
399
+
400
+
401
+
Cookies
402
+
-------
403
+
404
+
This plugin deals with cookies from responses and adds in requests based on a policy.
405
+
406
+
There are two policies:
407
+
* securitySchemes - only cookies whose name is in the securitySchemes are used. To match authentication requirements credentials are set via OpenAPI.authenticate(name=value)
408
+
* jar - all cookies are used, basically like a browser would do. Cookies not mentioned in securitySchemes are set besides OpenAPI.authenticate() to allow using them without adjusting the description document.
Copy file name to clipboardExpand all lines: docs/source/extra.rst
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,3 +18,7 @@ Large description documents which are autogenerated by converting other service
18
18
may benefit from additional changes to the description document to eliminate conversion artifacts depending on the converter used.
19
19
20
20
As an example for additional steps based on the `Microsoft Graph API <https://github.com/microsoftgraph/msgraph-metadata>`_ refer to :aioai3:ref:`tests.extra_test.MSGraph`.
21
+
22
+
Cookies
23
+
=======
24
+
To assist in dealing with cookie requirements of some APIs, :class:`aiopenapi3.extra.Cookies` can be used.
0 commit comments