Michael Pasternak has posted comments on this change.

Change subject: sdk: Send session header
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.ovirt.org/#/c/26843/2/src/ovirtsdk/web/connection.py
File src/ovirtsdk/web/connection.py:

Line 109:             # In order to protect itself from CSRF attacks, the 
server requires
Line 110:             # a header containing the same value that the session 
cookie:
Line 111:             session_id = self.__getCookie(SESSION_ID)
Line 112:             if session_id is not None:
Line 113:                 request_headers[SESSION_ID] = session_id
SESSION_ID header exist in api response, you can just copy it from there.
Line 114: 
Line 115:             # Every request except the last one should indicate that 
we prefer
Line 116:             # to use persistent authentication:
Line 117:             if persistent_auth and not last:


-- 
To view, visit http://gerrit.ovirt.org/26843
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Idb4fa7788d7c4c0824f5d4b95205d2f043bc6a93
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to