You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for a new authentication scheme: -ApiKey.
This should allow for an API key to be supplied in either a Header, Cookie, or Query string (-Location), and the name of the property should be settable (-LocationName - potentially no default).
This will also need testing via Swagger, to make sure the output is correct.
For example, to get an API key from an X-API-KEY header:
If the Header/Query/Cookie is missing, or if the value is empty, then a 401 HTTP response should be returned. Otherwise, no further validation and the key should be supplied to the Add-PodeAuth scriptblock.
The text was updated successfully, but these errors were encountered:
Add support for a new authentication scheme:
-ApiKey
.This should allow for an API key to be supplied in either a Header, Cookie, or Query string (
-Location
), and the name of the property should be settable (-LocationName
- potentially no default).This will also need testing via Swagger, to make sure the output is correct.
For example, to get an API key from an
X-API-KEY
header:Or, to get an
app_id
key from query string:If the Header/Query/Cookie is missing, or if the value is empty, then a 401 HTTP response should be returned. Otherwise, no further validation and the key should be supplied to the
Add-PodeAuth
scriptblock.The text was updated successfully, but these errors were encountered: