From bea27847250fab9d6253d928c8b7810a9c754179 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Fri, 8 Dec 2023 20:26:12 +0900 Subject: [PATCH] feat: change authorization request message --- proto/spaceone/api/core/v2/handler.proto | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/proto/spaceone/api/core/v2/handler.proto b/proto/spaceone/api/core/v2/handler.proto index 408284416..578601af8 100644 --- a/proto/spaceone/api/core/v2/handler.proto +++ b/proto/spaceone/api/core/v2/handler.proto @@ -7,18 +7,19 @@ option go_package = "github.com/cloudforet-io/api/dist/go/spaceone/api/core/v2"; import "google/protobuf/struct.proto"; message AuthorizationRequest { - enum TokenType { + enum OwnerType { NONE = 0; USER = 1; APP = 2; - API_KEY = 3; } string scope = 1; - TokenType token_type = 2; - string api_key_id = 3; + OwnerType owner_type = 2; + string user_id = 3; string app_id = 4; - string domain_id = 5; + string api_key_id = 5; + string workspace_id = 6; + string domain_id = 7; } message AuthorizationResponse {