Skip to content
Draft
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions api/auth.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ service Auth {
rpc Login(LoginReq) returns (LoginResp);
rpc Logout(google.protobuf.Empty) returns(google.protobuf.Empty);
rpc Check(TokenCheckReq)returns(TokenCheckResp);
rpc Whoami(google.protobuf.Empty) returns(WhoamiResp);
}

message LoginReq{
Expand Down Expand Up @@ -41,6 +42,14 @@ message TokenCheckResp{
map<string,google.protobuf.ListValue> permissions=5 ;
}

message WhoamiResp{
string subject =1;
string auth_type =2;
string api_key_id =3;
repeated string roles =4;
map<string,google.protobuf.ListValue> permissions=5 ;
}

option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Ceph management API";
Expand Down
228 changes: 173 additions & 55 deletions api/gen/grpc/go/auth.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading