The API is secured with a JWT middleware. To configure set these environment variables in a .env
file in the repository root:
AUTH_ISSUER
AUTH_AUDIENCE
ENV variable | |
---|---|
TRIFID_UI |
/sparql endpoint of a Trifid instance which will be linked from published cubes |
GITLAB_TOKEN |
(optional) GitLab project access token used to cancel concurrent deployments of same cube. Requires api scope |
GITLAB_API_URL |
(optional) GitLab address, for example https://my.gitlab.app/api/v4/ |
In the local environment it is possible to authorize requests with HTTP headers serving as a testing backdoor
X-USER
- the user idX-EMAIL
- the user emailX-PERMISSION
- authorized permissions (multiple values allowed)
When the app is running in container started by land (see root readme) the debugger can be attached to node process on port 45671
.
Make sure to map the repository root to /app
directory in the container as shown below on a screenshot from WebStorm