Description
In the Getting Started section of the README.md the example code makes use of the following line for authentication configuration
configuration.api_key['apiKeyAuth'] = "<API_KEY_PLACEHOLDER>"
This does not work with the scan request failing with the following error
{"statusCode":401,"code":"FST_BEARER_AUTH_MISSING_AUTHORIZATION_HEADER","error":"Unauthorized","message":"missing authorization header"}
The correct configuration for users who self-host, is in the next section Configure SDK (self-hosted on AWS) where the line changes to
configuration.access_token = "<API_KEY_PLACEHOLDER>"
which is able to successfully call the api.
Solution
Update the README.md and add the correct syntax/code example for the self-hosted option in the Getting Started section.
Description
In the Getting Started section of the
README.mdthe example code makes use of the following line for authentication configurationThis does not work with the scan request failing with the following error
The correct configuration for users who self-host, is in the next section Configure SDK (self-hosted on AWS) where the line changes to
which is able to successfully call the api.
Solution
Update the
README.mdand add the correct syntax/code example for the self-hosted option in the Getting Started section.