Skip to content

Commit

Permalink
Merge pull request #120 from holgerstolzenberg/feature/add-security-s…
Browse files Browse the repository at this point in the history
…ection-to-openapi-specs

Add missing global 'security' declaration to openapi.proto
  • Loading branch information
tstirrat15 authored Nov 12, 2024
2 parents 8a6892e + fec64a0 commit 9ce037a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion authzed/api/v1/openapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
type: TYPE_API_KEY;
in: IN_HEADER;
name: "Authorization";
description: "SpiceDB preshared-key, prefixed by Bearer: Bearer <preshared-key>";
}
}
},
security: {
security_requirement: {
key: "ApiKeyAuth"
}
}
};

0 comments on commit 9ce037a

Please sign in to comment.