dockerfile/examples/standardnotes/official-src/server-main/packages/grpc/proto/auth.proto

25 lines
514 B
Protocol Buffer
Raw Normal View History

2024-03-15 14:52:38 +08:00
syntax = "proto3";
package auth;
message AuthorizationHeader {
string bearer_token = 1;
}
message SessionValidationResponse {
string cross_service_token = 1;
}
message WebsocketConnectionAuthorizationHeader {
string token = 1;
}
message ConnectionValidationResponse {
string cross_service_token = 1;
}
service Auth {
rpc validate(AuthorizationHeader) returns (SessionValidationResponse) {}
rpc validateWebsocket(WebsocketConnectionAuthorizationHeader) returns (ConnectionValidationResponse) {}
}