Skip to main content
Skip table of contents

REST API call is no longer working after a version upgrade

 Problem

After the censhare server was upgraded to a newer version the REST API calls redirect to a different page or show an 403 unauthorized error.

Solution

As of censhare 2021.2 censhare is released as censhare WP, including additional components that change the way web services are exposed. After an upgrade from earlier versions, or on newly installed versions, the REST API is not longer accessible.

If you attempt to use the server URL and port from before the upgrade it will now redirect to Keycloak for authentication. It is necessary to expose the http service for external access:

  1. Adjust your jetty settings to expose the server URL and the corresponding http service port.

  2. Make sure your user is set to use internal authentication instead of Keycloak.

The REST API works with standard authentication, going directly against the censhare application server. Any user set to use external authentication won't work.

📎 Related articles

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.