-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
685 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
syntax = "proto3"; | ||
|
||
package api.rebac.v1; | ||
import "google/api/annotations.proto"; | ||
option go_package = "ciam-rebac/api/rebac/v1;v1"; | ||
option java_multiple_files = true; | ||
option java_package = "api.rebac.v1"; | ||
|
||
service Check { | ||
rpc CheckPermission (CheckPermissionRequest) returns (CheckPermissionResponse) { | ||
option (google.api.http) = { | ||
post: "/api/authz/v1/check" | ||
body: "*" | ||
}; | ||
}; | ||
} | ||
|
||
message CheckPermissionRequest { | ||
string subject = 1; | ||
string subjectid = 2; | ||
string operation = 3; | ||
string resourcetype = 4; | ||
string resourceid = 5; | ||
bool auditlog = 6; | ||
} | ||
|
||
message CheckPermissionResponse { | ||
bool result = 1; | ||
string description = 3; | ||
} | ||
|
Oops, something went wrong.