25 lines
514 B
Protocol Buffer
25 lines
514 B
Protocol Buffer
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) {}
|
|
}
|