Changeset View
Changeset View
Standalone View
Standalone View
shared/protos/identity_client.proto
Show All 13 Lines | service IdentityClientService { | ||||
rpc RegisterPasswordUserStart(RegistrationStartRequest) returns ( | rpc RegisterPasswordUserStart(RegistrationStartRequest) returns ( | ||||
RegistrationStartResponse) {} | RegistrationStartResponse) {} | ||||
rpc RegisterPasswordUserFinish(RegistrationFinishRequest) returns ( | rpc RegisterPasswordUserFinish(RegistrationFinishRequest) returns ( | ||||
RegistrationFinishResponse) {} | RegistrationFinishResponse) {} | ||||
// Called by user to update password and receive new access token | // Called by user to update password and receive new access token | ||||
rpc UpdateUserPasswordStart(UpdateUserPasswordStartRequest) returns | rpc UpdateUserPasswordStart(UpdateUserPasswordStartRequest) returns | ||||
(UpdateUserPasswordStartResponse) {} | (UpdateUserPasswordStartResponse) {} | ||||
rpc UpdateUserPasswordFinish(UpdateUserPasswordFinishRequest) returns | rpc UpdateUserPasswordFinish(UpdateUserPasswordFinishRequest) returns | ||||
(UpdateUserPasswordFinishResponse) {} | (Empty) {} | ||||
// Called by user to register device and get an access token | // Called by user to register device and get an access token | ||||
rpc LoginPasswordUserStart(OpaqueLoginStartRequest) returns | rpc LoginPasswordUserStart(OpaqueLoginStartRequest) returns | ||||
(OpaqueLoginStartResponse) {} | (OpaqueLoginStartResponse) {} | ||||
rpc LoginPasswordUserFinish(OpaqueLoginFinishRequest) returns | rpc LoginPasswordUserFinish(OpaqueLoginFinishRequest) returns | ||||
(OpaqueLoginFinishResponse) {} | (OpaqueLoginFinishResponse) {} | ||||
rpc LoginWalletUser(WalletLoginRequest) returns (WalletLoginResponse) {} | rpc LoginWalletUser(WalletLoginRequest) returns (WalletLoginResponse) {} | ||||
// Called by a user to delete their own account | // Called by a user to delete their own account | ||||
rpc DeleteUser(DeleteUserRequest) returns (Empty) {} | rpc DeleteUser(DeleteUserRequest) returns (Empty) {} | ||||
▲ Show 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
// Request for updating a user, similar to registration but need a | // Request for updating a user, similar to registration but need a | ||||
// access token to validate user before updating password | // access token to validate user before updating password | ||||
message UpdateUserPasswordStartRequest { | message UpdateUserPasswordStartRequest { | ||||
// Message sent to initiate PAKE registration (step 1) | // Message sent to initiate PAKE registration (step 1) | ||||
bytes opaqueRegistrationRequest = 1; | bytes opaqueRegistrationRequest = 1; | ||||
// Used to validate user, before attempting to update password | // Used to validate user, before attempting to update password | ||||
string accessToken = 2; | string accessToken = 2; | ||||
string userID = 3; | |||||
// Public ed25519 key used for signing. We need this to look up a device's | |||||
// access token | |||||
string deviceIDKey = 4; | |||||
} | } | ||||
// Do a user registration, but overwrite the existing credentials | // Do a user registration, but overwrite the existing credentials | ||||
// after validation of user | // after validation of user | ||||
message UpdateUserPasswordFinishRequest { | message UpdateUserPasswordFinishRequest { | ||||
// Identifier used to correlate start and finish request | // Identifier used to correlate start and finish request | ||||
string sessionID = 1; | string sessionID = 1; | ||||
// Opaque client registration upload (step 3) | // Opaque client registration upload (step 3) | ||||
bytes opaqueRegistrationUpload = 2; | bytes opaqueRegistrationUpload = 2; | ||||
} | } | ||||
message UpdateUserPasswordStartResponse { | message UpdateUserPasswordStartResponse { | ||||
// Identifier used to correlate start request with finish request | // Identifier used to correlate start request with finish request | ||||
string sessionID = 1; | string sessionID = 1; | ||||
bytes opaqueRegistrationResponse = 2; | bytes opaqueRegistrationResponse = 2; | ||||
} | } | ||||
message UpdateUserPasswordFinishResponse { | |||||
// After validating client reponse, mint a new token | |||||
string accessToken = 1; | |||||
} | |||||
// LoginUser | // LoginUser | ||||
message OpaqueLoginStartRequest { | message OpaqueLoginStartRequest { | ||||
string username = 1; | string username = 1; | ||||
// Message sent to initiate PAKE login (step 1) | // Message sent to initiate PAKE login (step 1) | ||||
bytes opaqueLoginRequest = 2; | bytes opaqueLoginRequest = 2; | ||||
// Information specific to a user's device needed to open a new channel of | // Information specific to a user's device needed to open a new channel of | ||||
// communication with this user | // communication with this user | ||||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |