Hi, I have managed to successfully configure Geoserver authentication
using the OAuth2 community extension, using Keycloak as Oauth2
provider. I can login in Geoserver using Keycloak and it correctly
gets the roles from the Access token.

Now, I'd like to access Geoserver OGC services using an Authentication
Bearer token, without previously going through the Geoserver login. I
have a separate application in which I have already logged in in
Keycloak and I would like to load OGC services in that application
using an access token.

I have done some tests, getting the access token from keycloak and
then injecting the Authentication header in the OGC request for
Geoserver, but Geoserver answers with a 401 Unauthorized response.

Has anyone faced such a scenario? Is there a way to achieve that goal?
Any clue is welcome.

Regards,

César Martínez

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   César Martínez Izquierdo
   GIS developer
   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
   SCOLAB: http://www.scolab.es
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to