Authentication
This section of the user guide describes how you can programmatically interact with the MetaDefender Software Supply Chain REST API. Below are some common tasks that can be done using the available REST APIs:
- Log in at
/api/v1/user/login. The response sets the accessToken cookie, prefixed byTOKEN_COOKIE_PREFIXwhen set. - Other clients can send the access token as
Authorization: Bearer <token>. - Start or stop a process(scan)
- Add / remove service units
About this REST API
The exposed endpoint is located by default at http(s)://mdssc-server/api/ (for example, the authentication endpoint is available at http(s)://mdssc-server/api/v1/user/login). All requests are handled by the NGINX web server before being proxied to the backend API Gateway service.
All endpoints perform authentication and authorization checks. Send the access token cookie set by the login endpoint, an access token in the Authorization: Bearer <token> header, or an API key in the ApiKey header.
Useful links
Server
http://localhost:8001
Server Variables