Changeset View
Changeset View
Standalone View
Standalone View
shared/protos/identity_client.proto
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | service IdentityClientService { | ||||
// Rotated for deniability of older messages | // Rotated for deniability of older messages | ||||
rpc RefreshUserPreKeys(RefreshUserPreKeysRequest) returns (Empty) {} | rpc RefreshUserPreKeys(RefreshUserPreKeysRequest) returns (Empty) {} | ||||
// Service actions | // Service actions | ||||
// Called by other services to verify a user's access token | // Called by other services to verify a user's access token | ||||
rpc VerifyUserAccessToken(VerifyUserAccessTokenRequest) returns | rpc VerifyUserAccessToken(VerifyUserAccessTokenRequest) returns | ||||
(VerifyUserAccessTokenResponse) {} | (VerifyUserAccessTokenResponse) {} | ||||
// Ashoat's keyserver actions | |||||
// Called by Ashoat's keyserver to add usernames to the Identity service's | |||||
// reserved list | |||||
rpc AddReservedUsername(AddReservedUsernameRequest) returns (Empty) {} | |||||
// Called by Ashoat's keyserver to remove usernames from the Identity | |||||
// service's reserved list | |||||
rpc RemoveReservedUsername(RemoveReservedUsernameRequest) returns (Empty) {} | |||||
} | } | ||||
// Helper types | // Helper types | ||||
message Empty {} | message Empty {} | ||||
message PreKey { | message PreKey { | ||||
string preKey = 1; | string preKey = 1; | ||||
▲ Show 20 Lines • Show All 248 Lines • ▼ Show 20 Lines | message VerifyUserAccessTokenRequest { | ||||
// signing ed25519 key for the given user's device | // signing ed25519 key for the given user's device | ||||
string signingPublicKey = 2; | string signingPublicKey = 2; | ||||
string accessToken = 3; | string accessToken = 3; | ||||
} | } | ||||
message VerifyUserAccessTokenResponse { | message VerifyUserAccessTokenResponse { | ||||
bool tokenValid = 1; | bool tokenValid = 1; | ||||
} | } | ||||
// AddReservedUsername | |||||
message AddReservedUsernameRequest { | |||||
// Message from Ashoat's keyserver containing the username to be added | |||||
string message = 1; | |||||
// Above message signed with Ashoat's keyserver's signing ed25519 key | |||||
string signature = 2; | |||||
} | |||||
// RemoveReservedUsername | |||||
message RemoveReservedUsernameRequest { | |||||
// Message from Ashoat's keyserver containing the username to be removed | |||||
string message = 1; | |||||
// Above message signed with Ashoat's keyserver's signing ed25519 key | |||||
string signature = 2; | |||||
} |