2023-07-09 11:16:52 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package authentication;
|
|
|
|
|
2023-07-17 13:49:49 +00:00
|
|
|
option go_package = "../binary";
|
2023-07-09 11:16:52 +00:00
|
|
|
|
|
|
|
import "messages.proto";
|
|
|
|
import "client.proto";
|
|
|
|
|
|
|
|
message BrowserDetails {
|
|
|
|
string userAgent = 1;
|
|
|
|
client.BrowserTypes browserType = 2;
|
2023-07-16 13:19:33 +00:00
|
|
|
string OS = 3;
|
2023-07-09 11:16:52 +00:00
|
|
|
bool someBool = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AuthenticationContainer {
|
2023-07-15 22:56:11 +00:00
|
|
|
messages.AuthMessage authMessage = 1;
|
2023-07-09 11:16:52 +00:00
|
|
|
BrowserDetails browserDetails = 3;
|
|
|
|
|
|
|
|
oneof data {
|
|
|
|
KeyData keyData = 4;
|
|
|
|
CurrentDeviceData deviceData = 5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message ECDSAKeys {
|
|
|
|
int64 field1 = 1; // idk?
|
|
|
|
bytes encryptedKeys = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message KeyData {
|
|
|
|
messages.Device mobile = 1;
|
|
|
|
ECDSAKeys ecdsaKeys = 6;
|
|
|
|
WebAuthKey webAuthKeyData = 2;
|
|
|
|
messages.Device browser = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message WebAuthKey {
|
|
|
|
bytes webAuthKey = 1;
|
|
|
|
int64 validFor = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CurrentDeviceData {
|
|
|
|
messages.Device browser = 1;
|
|
|
|
}
|
|
|
|
|
2023-07-15 13:25:54 +00:00
|
|
|
message URLData {
|
2023-07-09 11:16:52 +00:00
|
|
|
bytes pairingKey = 1;
|
|
|
|
bytes AESKey = 2;
|
|
|
|
bytes HMACKey = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TokenData {
|
|
|
|
bytes tachyonAuthToken = 1;
|
|
|
|
int64 TTL = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PairedData {
|
|
|
|
messages.Device mobile = 1;
|
|
|
|
TokenData tokenData = 2;
|
|
|
|
messages.Device browser = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RevokePairData {
|
|
|
|
messages.Device revokedDevice = 1;
|
|
|
|
}
|