Skip to content

Commit

Permalink
feat: add deauthorize rpc
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Aguilar <nickaguilarh@gmail.com>
  • Loading branch information
nickaguilarh committed Mar 30, 2024
1 parent 11e1342 commit 49cf4c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions queuer/consumers/v1/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ message AuthorizeConsumerResponse{
entities.v1.Result result = 1;
}

message DeauthorizeConsumerRequest{
string consumer_id = 1 [(validate.rules).string.uuid = true];
}

message DeauthorizeConsumerResponse{
entities.v1.Result result = 1;
}

message RetrieveConsumerCredentialsRequest{
string consumer_id = 1 [(validate.rules).string.uuid = true];
}
Expand Down
7 changes: 7 additions & 0 deletions queuer/consumers/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ service ConsumerService {
};
}

rpc DeauthorizeConsumer(DeauthorizeConsumerRequest) returns (DeauthorizeConsumerResponse) {
option (google.api.http) = {
post: "/v1/consumers/{consumer_id}/deauthorize"
body: "*"
};
}

rpc RetrieveConsumerCredentials(RetrieveConsumerCredentialsRequest) returns (RetrieveConsumerCredentialsResponse) {
option (google.api.http) = {
get: "/v1/consumers/{consumer_id}/credentials"
Expand Down

0 comments on commit 49cf4c4

Please sign in to comment.