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
Describe the issue
When requesting swagger ui with query parameter "code", the configured function key from parameter "OpenApi__ApiKey" is not used to request open api file. Instead the code from url is used.
In production environment, you normally use function specific keys, so you will need a diferrent key to access swagger ui and request swagger.json. But when requesting swagger ui with a key inside of the query, the same key is used for requesting swagger.json and not the configured key from function parameters.
To Reproduce
Define parameters in local.settings.json: { "OpenApi__ApiKey": "functionKey", "OpenApi__AuthLevel__Document":"Function", "OpenApi__AuthLevel__UI":"Function" }
Describe the issue
When requesting swagger ui with query parameter "code", the configured function key from parameter "OpenApi__ApiKey" is not used to request open api file. Instead the code from url is used.
In production environment, you normally use function specific keys, so you will need a diferrent key to access swagger ui and request swagger.json. But when requesting swagger ui with a key inside of the query, the same key is used for requesting swagger.json and not the configured key from function parameters.
To Reproduce
Define parameters in local.settings.json:
{ "OpenApi__ApiKey": "functionKey", "OpenApi__AuthLevel__Document":"Function", "OpenApi__AuthLevel__UI":"Function" }
Request Swagger Ui with http://localhost:7071/api/swagger/ui#/?code=otherFunctionKey
The url for swagger.josn is now http://localhost:7071/api/swagger.json?code=otherFunctionKey
Expected behavior
The url for swagger.json should be http://localhost:7071/api/swagger.json?code=functionKey
Environment (please complete the following information, if applicable):
The text was updated successfully, but these errors were encountered: