19 lines
356 B
Protocol Buffer
19 lines
356 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package auth.v1;
|
|
|
|
service AuthService {
|
|
// Validates a session token
|
|
rpc ValidateSession (ValidateSessionRequest) returns (ValidateSessionResponse) {}
|
|
}
|
|
|
|
message ValidateSessionRequest {
|
|
string token = 1;
|
|
}
|
|
|
|
message ValidateSessionResponse {
|
|
bool valid = 1;
|
|
string uuid = 2;
|
|
repeated string scopes = 3;
|
|
string error = 4;
|
|
} |