[Geoserver-users] Access to GeoServer Security Layers in front-end

Hi ALL,

I created some security settings on GeoServer, and also some users, with certain access restrictions.

However, I would not like to have to enter the login and password when calling the request to GeoServer (on the front end), for security reasons, considering that the layers are private.

Does anyone have any tips to give, how to do, in addition to the options below? I’m using the Google Maps Javascript API on the front end.

···

Best regards,

Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/

What have you tried so far Fernando, did you try oauth? I assume with google since you already had google maps in play…

···


Jody Garnett

Hi Jody,

The application today is written in PHP and uses to authenticate only the session, does not use OAuth.

I am thinking of creating a proxy (in PHP) and using it in the PROXY_BASE_URL property, to filter the requests before reaching GeoServer, and validating the authentication through token.

···

Best regards,

Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/

yes a proxy would work.
I currently have a web app using a proxy (ol4jsfproxy)

It’s a little bit old but here’s an example
http://osgeo-org.1560.x6.nabble.com/Load-GeoServer-WMS-secured-layers-with-OpenLayers-td3919938.html

Fernando Quadro <fsquadro@anonymised.com> escreveu no dia sexta, 19/06/2020 à(s) 21:20:

···

www.vfonsecaz.pt

Thanks Vitor,

I will pass this example to the development team

Best regards,

···

Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/