From 44452f2c32b39035d65c42296e8a2d95d6239b25 Mon Sep 17 00:00:00 2001 From: Kush Sharma Date: Tue, 1 Aug 2023 20:26:46 +0530 Subject: [PATCH] fix(frontier): rename shield file to frontier - add bearer jwt as security defination Signed-off-by: Kush Sharma --- .../frontier/v1beta1/{shield.proto => frontier.proto} | 10 ++++++++++ 1 file changed, 10 insertions(+) rename raystack/frontier/v1beta1/{shield.proto => frontier.proto} (99%) diff --git a/raystack/frontier/v1beta1/shield.proto b/raystack/frontier/v1beta1/frontier.proto similarity index 99% rename from raystack/frontier/v1beta1/shield.proto rename to raystack/frontier/v1beta1/frontier.proto index 451197fb..6e0b263f 100644 --- a/raystack/frontier/v1beta1/shield.proto +++ b/raystack/frontier/v1beta1/frontier.proto @@ -114,9 +114,19 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { description: "Client ID/Secret authentication"; } } + security: { + key: "Bearer"; + value: { + type: TYPE_API_KEY + in: IN_HEADER + description: "The Authorization header must be set to Bearer followed by a space and a token." + name: "Authorization" + } + } } security: { security_requirement: {key: "Basic"} + security_requirement: {key: "Bearer"} } }; service FrontierService {