52North / sos-importer

Application to import observation data into a running SOS instance using the T-interface.
https://wiki.52north.org/SensorWeb/SosImporter
GNU General Public License v2.0
10 stars 8 forks source link

Transactional authorization token support #80

Closed BWibo closed 7 years ago

BWibo commented 7 years ago

Hello everybody,

is there currently any way to use the SOS Importer with a SOS server, that is using a transactional authorization token to limit access to transactional operations? I could not find any documentation on this on Github or here.

For instance, sending an InsertSensor request from an XML file to a token secured server from the shell using CURL works fine:

curl -v \
       -H "Content-Type: application/soap+xml;charset=UTF-8" \
       -H "Authorization: IamTheSecretToken-c1db8eb9f3f7" \
       -X POST \
       -d @insertSensor-SOAP.xml \
     http://my.sos.server:8080/52n-sos-webapp/service > response.xml

However, is there any way (I would not mind a hacky solution) to get this working with the SOS Importer at this time?

If not, this would be a very handy feature I would love to seen in a future release! One option could be a new element for a <Token> in <SOSMetadata>.

EHJ-52n commented 7 years ago

Hi, I think that this is linked #73 Provide basic authentication for secure SOS.

@glegal: can you give any updates on this issue?