Changeset View
Changeset View
Standalone View
Standalone View
shared/protos/identity_client.proto
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | |||||
// UpdateUserPassword | // UpdateUserPassword | ||||
// 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 = 3; | string accessToken = 2; | ||||
} | } | ||||
// 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 { | message UpdateUserPasswordFinishResponse { | ||||
// After validating client reponse, mint a new token | // After validating client reponse, mint a new token | ||||
string accessToken = 2; | 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; | ||||
Show All 14 Lines | message OpaqueLoginStartResponse { | ||||
// Identifier used to correlate start request with finish request | // Identifier used to correlate start request with finish request | ||||
string sessionID = 1; | string sessionID = 1; | ||||
// Opaque challenge sent from server to client attempting to login (Step 2) | // Opaque challenge sent from server to client attempting to login (Step 2) | ||||
bytes opaqueLoginResponse = 2; | bytes opaqueLoginResponse = 2; | ||||
} | } | ||||
message OpaqueLoginFinishResponse { | message OpaqueLoginFinishResponse { | ||||
// Mint and return a new key upon successful login | // Mint and return a new key upon successful login | ||||
string accessToken = 2; | string accessToken = 1; | ||||
} | } | ||||
message WalletLoginRequest { | message WalletLoginRequest { | ||||
string siweMessage = 1; | string siweMessage = 1; | ||||
string siweSignature = 2; | string siweSignature = 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 | ||||
DeviceKeyUpload deviceKeyUpload = 3; | DeviceKeyUpload deviceKeyUpload = 3; | ||||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
// GetKeyserverKeys | // GetKeyserverKeys | ||||
// Information needed when establishing communication to a keyserver | // Information needed when establishing communication to a keyserver | ||||
message KeyserverSessionInfo { | message KeyserverSessionInfo { | ||||
IdentityKeyInfo identityInfo = 1; | IdentityKeyInfo identityInfo = 1; | ||||
PreKey identityPrekeys = 2; | PreKey identityPrekeys = 2; | ||||
optional string onetimeIdentityPrekey = 5; | optional string onetimeIdentityPrekey = 3; | ||||
} | } | ||||
// All keyserver must be registered with an existing user. | // All keyserver must be registered with an existing user. | ||||
// Conversely, one or zero keyservers can registered to a user. | // Conversely, one or zero keyservers can registered to a user. | ||||
message KeyserverKeysRequest { | message KeyserverKeysRequest { | ||||
oneof identifier { | oneof identifier { | ||||
string username = 1; | string username = 1; | ||||
string walletAddress = 2; | string walletAddress = 2; | ||||
Show All 35 Lines |