NrgXnat / docker-images

Dockerfiles and metadata for XNAT's container service
18 stars 21 forks source link

SSL cert verification #5

Closed flywheel-beholt closed 2 years ago

flywheel-beholt commented 2 years ago

XNAT demands use of secure cookies, which requires SSL when used programmatically with the same session. When a self signed certificate is used, verification fails and the requests error out. If you attempt to use http the SECURE flag on the cookie invalidates it at a client level.

This pull changes the xnat-jsession lib to add a verify kwarg which, when set to False, will turn off cert verification for the purpose of JSESSIONID generation.