Good morning!Over the weekend I have set up the MapStore2 users GeoServer integration with Authkey (https://mapstore.readthedocs.io/en/latest/developer-guide/integrations/users/geoserver/) successfully. The following two questions have occured. I hope that anyone here can answer them:1. New Role "VIEWER": I found out that it is possible to expose the FeatureEditor to the USER role by adding "USER" to "editingAllowedRoles": ["ADMIN"]. On Geoserver I have set up two Roles "VIEWER" and "EDITOR". When a "VIEWER" User edits data in MapStore2 he get's an error when saving a record (as the WFS-T is read only) for his role. Now my question: Is it possible to hide the "editing pencil" from the VIEWER-Users by adding a new role "VIEWER" to MapStore2? May this be possible with the "Application Context" tool that will be released in the upcoming version?
2. As my GeoServer Datasource is password protected I would like to implement a SSO into mapstore2 (in the normal clients and the embedded versions). As I see from geostore documentation in https://github.com/geosolutions-it/geostore/wiki/Authentication-section this could be the case. Is there an example existing? It hope that is possible to add some parameters for example authenticationToken in the JavaScript functions. To explain what I mean I created this dummy script.:<body onload="init()"><div id="container" class="ms2"></div><script id="ms2-api" src="http://localhost:6451/mapstore/dist/ms2-api.js"></script><script type="text/javascript">function init() {MapStore2.create('container',{configUrl: "http://localhost:6451/mapstore/rest/geostore/data/12",originalUrl: "http://localhost:6451/mapstore/#/viewer/openlayers/12",authenticationToken: "myToken"});}</script></body>Thanks for your feedback an have a nice day!
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
mobile: +39 393 904 1756
phone: +39 0584 962313
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.
Hi Mauro!
But the localStorage itself is set correct (see screenshot Nr. 2):
When I then swap to the normal starting page of mapstore then I am already logged in (Screenshot 3):
When I use the iFrame integration the login also does not work.
Did I do something wrong or does your suggestion not work for the embedded versions?
Thanks in advance for your feedback.
All the best,
Michael
--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/16d58950-c217-4215-8dae-48d464fc7c01o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/508b20cb-77e0-e132-6160-f60ef48fcf1d%40posteo.de.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/CAGY2-JNh0SFBuSwJkPrGB_vOmawUZgpKYCGmTdHJccdZOQrc9w%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/afee8bf0-af28-8ddc-86ff-abfdc4d4857a%40posteo.de.
Hi,
https://mapstore.readthedocs.io/en/latest/developer-guide/integrations/users/geoserver/
explains how to share users, groups and roles between MapStore and GeoServer.
There you can read: "Limits of this solution
This solution partially degradates the functionalities of user management UI of GeoServer (for users, groups and roles that belong to MapStore).
If you want to use this solution, you should use the MapStore's user mananger and avoid the GeoSever's one."
We have a GeoServer running with UserGroupService and RoleService coming from LDAP.
I would like to avoid a second UserGroupService and RoleService comming from MapStore (GeoStore).
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
mobile: +39 393 904 1756
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/CAMyxr658%3DQZ9_rsqrz7mJVZ7noMLBeWxgCQqGBJWuPLziaCMyw%40mail.gmail.com.
java.lang.NullPointerException
at it.geosolutions.geostore.services.rest.security.GeoStoreLdapAuthoritiesPopulator.addAuthority(GeoStoreLdapAuthoritiesPopulator.java:252)It seems the found Authorities can't be added, because they make problems
--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/CAMyxr67DOdjHPGMa0AKgaPMaTgHWkKp_MWh%2BJqPbByX0s8Jocw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/b5d0405f-1efe-47a2-abac-d36aa29cfcbcn%40googlegroups.com.
-- Dipl. Ing. Stefan Overkamp Laakmannsbusch 44, 42555 Velbert tel.: 0177 / 79 76 159 over...@posteo.de