MapStore2 users GeoServer integration with Authkey

88 views
Skip to first unread message

wesley...@gmail.com

unread,
Oct 19, 2020, 7:28:18 PM10/19/20
to mapstore-users
Hi,


Can I add this connection between Geoserver and Mapstore, after creating my database and adding users? I already have some users and groups created by the mapstore. It is giving an error.  

Regards,

Wesley

Tobia Di Pisa

unread,
Oct 20, 2020, 3:45:01 AM10/20/20
to mapstor...@googlegroups.com
Dear Wesley,

did you follow this guideline?

Best regards,
    Tobia Di Pisa

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.

==


Dott. Ing. Tobia Di Pisa

Senior Software Engineer


GeoSolutions S.A.S.

Via di Montramito 3/A

55054  Massarosa (LU)

Italy

phone: +39 0584 962313

mobile: +39 340 1781783

fax:      +39 0584 1660272


http://www.geo-solutions.it

http://twitter.com/geosolutions_it


-------------------------------------------------------



Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.


This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.



--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/145e8608-8209-44bf-b92e-2796f452e8abn%40googlegroups.com.

wesley mezine

unread,
Oct 20, 2020, 10:38:33 AM10/20/20
to mapstor...@googlegroups.com
Hi Tobia,

I'm following this guideline, but it arrives on this screen, I can't add the admin as a administrator role.

image.png
Regards,

Wesley 

wesley mezine

unread,
Oct 20, 2020, 10:46:39 AM10/20/20
to mapstor...@googlegroups.com
Hi Tobia,

When I click on users the following message appears:
image.png
image.png

Regards,

Wesley

Em ter., 20 de out. de 2020 às 04:45, Tobia Di Pisa <tobia....@geo-solutions.it> escreveu:

wesley mezine

unread,
Oct 21, 2020, 10:41:01 AM10/21/20
to mapstor...@googlegroups.com
Hi,

How can i passh a login and a private user on my http://localhost / geoserver / wms service?

Regards,

Wesley

Em ter., 20 de out. de 2020 às 04:45, Tobia Di Pisa <tobia....@geo-solutions.it> escreveu:

Lorenzo Natali

unread,
Oct 26, 2020, 6:00:01 AM10/26/20
to mapstore-users
Hi,
when some error like this happens, typically it is because there are some errors with the configuration following the procedure. 
I suggest to repeat the procedure.

wesley mezine

unread,
Oct 26, 2020, 10:21:28 AM10/26/20
to mapstor...@googlegroups.com
Hi Lorenzo,

I've done this several times, created a new geoestore database, created the table from the geoserver, downloaded the geoserver again. Restart the Geoserver after the step that has to select the Administrator role for ADMIN
* select the group administrator role for ADMIN, nothing appears. I restarted the geoserver and nothing. I copy the files https://github.com/geosolutions-it/geostore/tree/master/geoserver. And I can't get over that part.

Can you help me, please.

Regards,

Wesley

Mauro Bartolomeoli

unread,
Oct 26, 2020, 10:57:54 AM10/26/20
to mapstor...@googlegroups.com
Hi Wesley,

could you please send me privately a zipped copy of your geoserver data_dir/security folder? I would like to have a look at the configurations to see if I can spot any error.

Mauro

--

Regards,

Mauro Bartolomeoli

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.
==

Dott. Mauro Bartolomeoli
@mauro_bart
Technical Lead



GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy


fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Mauro Bartolomeoli

unread,
Oct 27, 2020, 2:50:44 AM10/27/20
to wesley mezine, mapstor...@googlegroups.com
Please, let's return to the mailing list, so that other people can chime in, if needed.


Il giorno lun 26 ott 2020 alle ore 20:21 wesley mezine <wesley...@gmail.com> ha scritto:
Hi Mauro,

Thans for your help. How do I add the WMS and WFS to the MAPSTORE ?

image.png

Is this correct ?

Regards,

Wesley

In theory, yes. If you want to use authkey to communicate with those services, remember to set the proper authentication rule in MapStore localConfig.json, as explained here: https://mapstore.readthedocs.io/en/latest/developer-guide/integrations/users/geoserver/

"useAuthenticationRules": true, ..., { "urlPattern": "\\/geoserver/.*", "authkeyParamName": "authkey", "method": "authkey" }],  
 

wesley mezine

unread,
Oct 27, 2020, 5:31:35 AM10/27/20
to mapstor...@googlegroups.com
Hi,

Thans for your help. How do I add the WMS and WFS to the MAPSTORE ?

image.png

Is this correct ?

Regards,

Wesley
--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.

wesley mezine

unread,
Oct 27, 2020, 6:09:13 PM10/27/20
to mapstor...@googlegroups.com
I solved.The http://localhost/geoserver/wms is correct.

Thank you.

Γιώργος Παπακυρίτσης

unread,
May 7, 2025, 8:40:13 AMMay 7
to mapstore-users
Hello,

Can I revive this thread ?
(sorry for the double posting, I added it on a different thread by mistake)

I am facing the exact same issue with Mapstore  v2024.02.02 and Geoserver 2.27.
The rest of the setup is Tomcat 9 on an RHEL9 machine and a remote psql.

I restarted the process multiple times but still no luck.
Can anyone advise ?

Screenshot 2025-05-06 171131.png

Best,
George

wesley mezine

unread,
May 7, 2025, 4:32:52 PMMay 7
to mapstor...@googlegroups.com

Lorenzo Natali

unread,
May 9, 2025, 3:54:46 AMMay 9
to mapstor...@googlegroups.com
Hi,
When you put the XML files in the data directory, you have to open this page and click again on save, to make geoserver load that files.

Then, opeining the page again, the roles should be available. 


Γιώργος Παπακυρίτσης

unread,
May 13, 2025, 5:58:00 AMMay 13
to mapstore-users
Hello,

I follow the instructions from github, I add the xml files and save, but as @wesley some years ago, on the second step (the "Setup Role Service") I cannot add ADMIN as an "Administrator role". The option is not there as show in my screenshot.
I have restarted the process, I have checked for file ownership issues, but the issue remains.

Best,
George

wesley mezine

unread,
May 14, 2025, 4:17:32 PMMay 14
to mapstor...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages