How to use RESTful Geoserver?

I would like to use the REST protocol with Geoserver running on the Internet, but when I enter the username and password used to enter the web interface, I get HTTP ERROR: 401 Full authentication is required to access this resource . Do I need to create a separate user with some privileges? Perhaps this is a problem with web hosting?

Update: I can access an existing workspace using a web browser, but using QGIS to create a new workspace, I get the error mentioned above.

Thanks.

+4
source share
1 answer

Well, I know that it's a little late, but I will answer it in such a way that I hope other people with this problem can be helpful.

The REST process has its own security configuration, which must be configured in addition to the user of the web interface. These are different configurations and settings in different places. The REST configuration uses the same users that you configured in the web interface, and simply does not use the access rules that you would configure.

To configure permissions, you need to edit the file in the [Geoserver_data} / security directory with the name rest.properties.

See here and here about what to add and edit in this file to provide access to other services.

+1
source

Source: https://habr.com/ru/post/1468962/


All Articles