Files
standardnotes-server/packages/grpc/proto/auth.proto
T
Karol Sójko 1a57c247b2 chore: release latest changes (#1056)
* chore: release latest changes

* update yarn lockfile

* remove stale files

* fix ci env

* remove mysql command overwrite

* remove mysql overwrite from example

* fix cookie cooldown in memory
2024-06-18 09:29:24 +02:00

32 lines
663 B
Protocol Buffer

syntax = "proto3";
package auth;
message Cookie {
string name = 1;
string value = 2;
}
message RequestValidationOptions {
string bearer_token = 1;
repeated Cookie cookie = 2;
optional string shared_vault_owner_context = 3;
}
message SessionValidationResponse {
string cross_service_token = 1;
}
message WebsocketConnectionAuthorizationHeader {
string token = 1;
}
message ConnectionValidationResponse {
string cross_service_token = 1;
}
service Auth {
rpc validate(RequestValidationOptions) returns (SessionValidationResponse) {}
rpc validateWebsocket(WebsocketConnectionAuthorizationHeader) returns (ConnectionValidationResponse) {}
}