Hi Deen

You're almost there!  After adding authkey as an Authentication Filter, you
will need to use that filter in a Filter Chain.  So:

Under Security > Authentication > Filter Chains > default, move your
Authkey Filter from Available to Selected, close and save.

For more information see
https://docs.geoserver.org/stable/en/user/community/authkey/index.html

Regards

Peter

On Thu, 5 Dec 2019 at 15:39, Deen <kensong...@gmail.com> wrote:

> Hello all,
>
> I want to have auth keys module on production server, so I explored it a
> little bit but still quite confused for the setup.
>
> What I did:
>
> 1. Installed authkey extension to GeoServer (2.15.3)
> 2. Added a new authentication filter called *authkey*under web admin
> *Authentication Filters *
> 3. After click synchronize user/group service,  I saw authkey.properties
> genereated in */security/usergroup/default*
> 4. Then I added the service rule with *.*  ROLE_AUTHENTICATED
>
> What I expect:
>
> 1. Without authkey, I should get 401 error
>
> curl -X GET
> '
> http://localhost:8080/geoserver/wms?service=wms&version=2.0.0&request=GetCapabilities
> '
>
> 2. With authkey, I should get the correct repsonse
>
> curl -X GET
> '
> http://localhost:8080/geoserver/wms?service=wms&version=2.0.0&request=GetCapabilities&authkey=xxxx
> '
>
> However, with authkey I am getting 401, it only works when I provide basic
> auth.
>
> Any step is missing or wrong to achieve what I expect? Or am I just
> misunderstood how authkey is supposed to work in this case. Thanks in
> advance
>
> Deen
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
>
>
> _______________________________________________
> 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
>
_______________________________________________
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