Skip to content

Only send the apiKey header in NIST API requests if a NIST_TOKEN is set #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mmaass-torc
Copy link

It used to be the case that the NIST API worked just fine if you sent a request with the apiKey header without a key set. Now days, if you add that header to a request with anything other than a valid NIST key the request fails.

This PR ensures the apiKey header is added only if a NIST TOKEN is set. This means if the configuration is not changed to add a token, there is no apiKey header included and calls will succeed but within the rate limits set by NIST.

mmaass-torc added 2 commits April 14, 2025 12:49
…e config. The NIST API now always throws an error if a key header is added without a vlid NIST key present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant