securedimensions / QGIS-SAML2-Plugin

OGC Testbed 13 - SAML2 Plugin for QGIS 2.18.4
0 stars 0 forks source link

WMS with unprotected GetCapabilities fails #3

Closed securedimensions closed 6 years ago

securedimensions commented 6 years ago

I have changed the configuration such that the GetCapabilities operation is OPEN. => The plugin receives the Capabilities after clicking "Connect". There is NO SAML2 ECP handshake and the Content-Type should signal that. The plugin / or the QGIS opens a popup alerting that an error occured processing the Capabilities.

Please make sure that the SAML2 ECP is only executed when Content-Type is PAOS...

jsalahov commented 6 years ago

This is strange, because there is a check whether a response is PAOS or not here Also our plugin shouldn't present popups, in case an error happens, it just prints to log and returns. Maybe it is something on server/wms provider side?

securedimensions commented 6 years ago

Please execute the WMS URL from previous issue and check yourself...

jsalahov commented 6 years ago

OK. Expect an update for around 6 p.m. I've also spotted another minor issue that needs fixing.

jsalahov commented 6 years ago

Adding content-type check fixes this issue. I was just surprised that, even on open endpoint saml2 ecp uri was present.