Disabling Basic Authentication for Web Services

Spectrum Technology Platform supports two types of authentication for web service requests: Basic authentication and token authentication. By default, both methods are enabled.

If you want to require web service requests to use token authentication instead of Basic authentication, you can disable Basic authentication by following these steps.
Note: Be aware that disabling Basic authentication will cause existing clients to fail. For Spectrum Spatial, WMS, WMTS, and WFS clients will either be expecting Basic authentication or no authentication. Leaving only token-based authentication will likely cause those clients to fail.
  1. Stop the Spectrum Technology Platform server.
  2. Open this file in a text editor:

    SpectrumDirectory/server/conf/spectrum-container.properties

  3. Set this property to false:
    spectrum.security.authentication.webservice.basicauth.enabled=false
  4. Start the server.