[GeoNetwork-users] Password-protected WMS

Dear all,

I'm wondering if it is possible to add a password-protected WMS link of a specific workspace in the map viewer of Geonetwork. I tried an URL such as

http://my_server.be/geoserver/my_workspace/wms?service=WMS&version=1.3.0&username=blobloblo&password=blablabla <http://sigalion.rbins.be/geoserver/mareco/wms?service=WMS&version=1.1.0&username=mareco&password=Marecogs2021&gt;

But it doesn't work.

Does anyone knows if it is possible and if yes what is the correct syntax?

Many thanks!

Best regards,

Nicolas de Ville

--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be
https://metadata.naturalsciences.be/

Hi, if sharing the same "type" of users in GeoNetwork and GeoServer side
you could play with this
https://github.com/geonetwork/core-geonetwork/pull/3673 and then the other
options is probably to use SSO ...
I think also, some browser (FF ?) was popping up a sign in form to
authenticate on GeoServer ... but it was not the case on all browsers.

Francois

Le mar. 11 mai 2021 à 10:38, Nicolas De Ville de Goyet via GeoNetwork-users
<geonetwork-users@lists.sourceforge.net> a écrit :

Dear all,

I'm wondering if it is possible to add a password-protected WMS link of
a specific workspace in the map viewer of Geonetwork. I tried an URL
such as

http://my_server.be/geoserver/my_workspace/wms?service=WMS&version=1.3.0&username=blobloblo&password=blablabla
<
http://sigalion.rbins.be/geoserver/mareco/wms?service=WMS&version=1.1.0&username=mareco&password=Marecogs2021
>

But it doesn't work.

Does anyone knows if it is possible and if yes what is the correct syntax?

Many thanks!

Best regards,

Nicolas de Ville

--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be
https://metadata.naturalsciences.be/

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Hello Francois,

Thank your for your answer. SSO is outside my knowledge and probably too much work to learn/implement for my use case.

However, an idea you gave me would be to create a simple user in Geonetwork with access to a private WMS service metadata. I see that when I harvest a new WMS in Geonetwork, there is the option to do a remote authentication (in the "Advanced options for protocol ogcwxs")

Is this option meant to access protected workspace (e.g. https://spatial.naturalsciences.be/geoserver/MYWORKSPACE/wms?service=WMS&version=1.3.0)? I don't find the information in the documentation.

It would solve my issue if I can write a Service URL that query only a password-protected specific workspace.

Thanks,

Nicolas

On 11/05/2021 10:51, Francois Prunayre wrote:

Hi, if sharing the same "type" of users in GeoNetwork and GeoServer side you could play with this https://github.com/geonetwork/core-geonetwork/pull/3673 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgeonetwork%2Fcore-geonetwork%2Fpull%2F3673&data=04|01|ndeville%40naturalsciences.be|960931fe79fa42455e4208d91459fff2|4da8d35db472419c9e15665786aadbfb|0|0|637563199045338222|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=5LyilhUOL9vUYzWSNqt%2Fhb2NlxzITnlo%2BOg8m%2F%2FJU9A%3D&reserved=0&gt; and then the other options is probably to use SSO ...
I think also, some browser (FF ?) was popping up a sign in form to authenticate on GeoServer ... but it was not the case on all browsers.

Francois

Le mar. 11 mai 2021 à 10:38, Nicolas De Ville de Goyet via GeoNetwork-users <geonetwork-users@lists.sourceforge.net <mailto:geonetwork-users@lists.sourceforge.net>> a écrit :

    Dear all,

    I'm wondering if it is possible to add a password-protected WMS
    link of
    a specific workspace in the map viewer of Geonetwork. I tried an URL
    such as

    http://my_server.be/geoserver/my_workspace/wms?service=WMS&version=1.3.0&username=blobloblo&password=blablabla
    <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmy_server.be%2Fgeoserver%2Fmy_workspace%2Fwms%3Fservice%3DWMS%26version%3D1.3.0%26username%3Dblobloblo%26password%3Dblablabla&data=04|01|ndeville%40naturalsciences.be|960931fe79fa42455e4208d91459fff2|4da8d35db472419c9e15665786aadbfb|0|0|637563199045338222|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=FTWMcaTvSakBpsFD%2FpxHle2T573If49fEKX5GoQ%2FMRw%3D&reserved=0&gt;

    <http://sigalion.rbins.be/geoserver/mareco/wms?service=WMS&version=1.1.0&username=mareco&password=Marecogs2021
    <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsigalion.rbins.be%2Fgeoserver%2Fmareco%2Fwms%3Fservice%3DWMS%26version%3D1.1.0%26username%3Dmareco%26password%3DMarecogs2021&data=04|01|ndeville%40naturalsciences.be|960931fe79fa42455e4208d91459fff2|4da8d35db472419c9e15665786aadbfb|0|0|637563199045338222|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=MRKs4h5xSlRNdAXvlzlal7XAMqFTfoAS99s7fiJ77E0%3D&reserved=0&gt;&gt;

    But it doesn't work.

    Does anyone knows if it is possible and if yes what is the correct
    syntax?

    Many thanks!

    Best regards,

    Nicolas de Ville

    -- Nicolas de Ville
    Belgian Marine Data Centre (BMDC)
    OD-Nature, Royal Belgian Institute of Natural Sciences
    02/627.42.79
    www.bmdc.be
    <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.bmdc.be%2F&data=04|01|ndeville%40naturalsciences.be|960931fe79fa42455e4208d91459fff2|4da8d35db472419c9e15665786aadbfb|0|0|637563199045348177|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=QNLmPtSm%2FR8QiUDGM%2BshhKeKMl9criQ4rR3P67ApIqU%3D&reserved=0&gt;
    https://metadata.naturalsciences.be/
    <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmetadata.naturalsciences.be%2F&data=04|01|ndeville%40naturalsciences.be|960931fe79fa42455e4208d91459fff2|4da8d35db472419c9e15665786aadbfb|0|0|637563199045348177|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=EfeJHe%2BjXDtsuCp%2BFY6k4FlJ6u%2BjFOrsZLfBY4kvYdQ%3D&reserved=0&gt;

    _______________________________________________
    GeoNetwork-users mailing list
    GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fgeonetwork-users&data=04|01|ndeville%40naturalsciences.be|960931fe79fa42455e4208d91459fff2|4da8d35db472419c9e15665786aadbfb|0|0|637563199045358133|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=jzI%2BUrqaqjFDw5z5kq4vz37gHocpZNqkRLpAPKeJpmI%3D&reserved=0&gt;
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork
    <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fgeonetwork&data=04|01|ndeville%40naturalsciences.be|960931fe79fa42455e4208d91459fff2|4da8d35db472419c9e15665786aadbfb|0|0|637563199045358133|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=63oq0nxBTWOEzqC89Rc1xZT2lde3D8lbgSC%2By%2BkIyVs%3D&reserved=0&gt;

--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be
https://metadata.naturalsciences.be/