fews-web-oc

Application Configuration

The application configuration is stored in the .env or the public/app-config.json file. All settings are provided as a key-value pair. Settings in the .env file are parsed on build time, while settings in the app-config.json are handled on run-time. The following settings can be provided:

Key Description
VITE_FEWS_WEBSERVICES_URL Url of the FewsWebServices, e.g. “https://my-server/FewsWebServices”
VITE_REQUEST_HEADER_AUTHORIZATION ‘Bearer’: pass OIDC access_token as bearer for request to the FewsWebServices
  ‘Off’: no Authorization request header
VITE_AUTH_AUTHORITY Url of the OIDC authority, e.g. “https://login.microsoftonline.com/MYTENANTID/”.
  If not configured the web oc can be accessed without authentication.
VITE_AUTH_METADATA_URL Url of the OIDC meta data, e.g. “https://login.microsoftonline.com/MYTENANTID/v2.0/.well-known/openid-configuration”.
VITE_AUTH_SCOPE Scope, e.g. “openid profile email Offline_Access api://myclientid/Delft-FEWSWebServices”.
VITE_MAPBOX_TOKEN Mapbox token. Can be retrieved from: https://account.mapbox.com/access-tokens. Optional since v1.1.0.