Files
onepanel/api/auth.proto

23 lines
445 B
Protocol Buffer

syntax = "proto3";
package api;
import "google/api/annotations.proto";
import "google/protobuf/empty.proto";
service AuthService {
rpc IsValidToken(IsValidTokenRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/apis/v1beta1/auth/token"
body: "token"
};
}
}
message TokenWrapper {
string token = 1;
}
message IsValidTokenRequest {
TokenWrapper token = 1;
}