Michal Zimmermann
Michal Zimmermann

Reputation: 656

How to use RESTful Geoserver?

I'd like to use REST protocol with Geoserver running on a web, but when I enter username and password used to log into web interface, I get HTTP ERROR: 401 Full authentication is required to access this resource. Do I need to create separate user with some privileges? May it be webhosting related issue?

Update: I'm able to access existing workspace with web browser, but using QGIS to create new workspace I end up with error mentioned above.

Thank you.

Upvotes: 4

Views: 1964

Answers (1)

Darkcylde
Darkcylde

Reputation: 869

Well I know this is a little late but I will answer it so that hopefully other people with this issue may find it helpful.

The REST process has its own security configuration that needs to be setup in addition to the web interface user. These are different configurations and are setup in different spots. The REST configuration does use that same users you have configured in the web interface it just doesn't use the access rules that you would have set up.

To setup the permissions you need to edit a file in the directory [Geoserver_data}/security called rest.properties.

Please see here and here on what entires to add and edit in this file to provide access to the rest services.

Upvotes: 1

Related Questions