Users integration with the keycloak Single Sign On (SSO) not working properly

142 views
Skip to first unread message
Assigned to lorenzo...@geosolutionsgroup.com by me

harry cr7

unread,
Oct 15, 2023, 3:52:23 AM10/15/23
to mapstor...@googlegroups.com
I followed this link for setting keyclock integration: Khttps://docs.mapstore.geosolutionsgroup.com/en/latest/developer-guide/integrations/users/keycloak/

I doesn't seem to be working properly 

1- For the mapstore client configuration(see the screenshot mapstore_client_configuration.png attached here)

2-For the mapstore server configuration(see the screenshot mapstore_server_configuration.png attached here)

3-For the mapstore server configuration(see the screenshot mapstore_user_configuration.png attached here)

4-I have also attached my mapstore-ovr.properties file created in that directory  C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\webapps\mapstore\WEB-INF\classes

5- I have attached my localConfig.json file with the authentication part already set up


6- I don't know if the mistake is related to the third part of this page(https://docs.mapstore.geosolutionsgroup.com/en/latest/developer-guide/integrations/users/keycloak/) , i mean the part where they said "3- Activate the functionality via system property". 

In my case i just add to my file setenv.bat located here C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\bin this : set JAVA_OPTS= %JAVA_OPTS% -Dsecurity.integration=keycloak-direct  -Xms1024m -Xmx1024m -XX:MetaspaceSize=5000000000000000M -XX:MaxMetaspaceSize=360000000m  -XX:MaxPermSize=10000m -XX:+UseParallelGC  -XX:+UseParNewGC 


I 'am not able to connect with Keycloack 


mapstore_client_configuration.png
mapstore_server_configuration.png
mapstore_user_configuration.png
mapstore-ovr.properties
localConfig.json

Lorenzo Natali

unread,
Oct 16, 2023, 4:15:13 AM10/16/23
to mapstor...@googlegroups.com
Hi,
 thank you for all the information. We will do a test as soon as possible. The information you provided is useful to try to replicate
To make sure, could you please share also:
1) the mapstore.log file, making sure to have the parts for startup and when you try to login. 
2) explain the exact behavior, so what exactly happens (e.g. you click on the button, you are redirected to keycloak page, you have an error...)

This information can help identify the issue quickly.
Thank you in advance


--
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/CAKbHErKB9o6PdCHJLOimFzHD7Vsv_ASqN6FstMWLcXFGDPLj6Q%40mail.gmail.com.

harry cr7

unread,
Oct 17, 2023, 3:44:04 AM10/17/23
to mapstor...@googlegroups.com
Dear, 
Here is the mapstore.log file attached, i found the file in  the folder :  C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\logs

The behaviour is : when i try to log to mapstore , the application start dancing, but when i remove the kecloack authentification part set up in the localConfig.json file, everything become normal

mapstore.log
Reply all
Reply to author
Forward
0 new messages