NREL / api-umbrella

Open source API management platform
MIT License
2.03k stars 325 forks source link

Need to skip API Key check for Basic Auth APIs #494

Open atisharma1 opened 4 years ago

atisharma1 commented 4 years ago

Hello Team,

I have setup of API Umbrella and Spring boot at backend. I have 2 APIs - First, without any authentication and Second with Basic Authentication handled on Spring boot. When I am calling First API, it works fine. However, while calling second API with header 'Authorization', it throws below error: { "error": { "code": "API_KEY_INVALID", "message": "An invalid api_key was supplied. Get one at {{url}}" } }

Could you please let me know if there is any way to skip this API_KEY check while having 'Authorization' in header?

science695 commented 4 years ago

If you edit the route in Umbrella Admin, you can disable the api key checks, and even put in a 1 user basic auth setup.

You can do this either in Global request settings, or in sub-url request settings (if you want it to apply only for a matched set of routes)

atisharma1 commented 4 years ago

API key is already disabled. Tried by setting HTTP Basic Authentication on Global request settings but still getting the same issue.

mnguyen9 commented 4 years ago

We are currently seeing this issue as well on v 0.14.2. Calls with and without API Key check that uses basic authentication returns this error.