Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function setupExpressApp(app) {
*/
// eslint-disable-next-line no-unused-vars
async function validateOperationKey(request, scopes, schema) {
const operationUuid = await operationServerInterface.getOperationServerUuidAsync(request.url);
let pathDefinedInOpenApi = request.openapi.openApiRoute;
const operationUuid = await operationServerInterface.getOperationServerUuidAsync(pathDefinedInOpenApi);
const operationKeyFromLoadfile = await operationServerInterface.getOperationKeyAsync(operationUuid);
const isAuthorized = operationKeyFromLoadfile === request.headers['operation-key'];
return isAuthorized;
Expand Down