2
0

authentication.proto 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. syntax = "proto2";
  2. enum CpuFamily {
  3. CPU_UNKNOWN = 0x0;
  4. CPU_X86 = 0x1;
  5. CPU_X86_64 = 0x2;
  6. CPU_PPC = 0x3;
  7. CPU_PPC_64 = 0x4;
  8. CPU_ARM = 0x5;
  9. CPU_IA64 = 0x6;
  10. CPU_SH = 0x7;
  11. CPU_MIPS = 0x8;
  12. CPU_BLACKFIN = 0x9;
  13. }
  14. enum Os {
  15. OS_UNKNOWN = 0x0;
  16. OS_WINDOWS = 0x1;
  17. OS_OSX = 0x2;
  18. OS_IPHONE = 0x3;
  19. OS_S60 = 0x4;
  20. OS_LINUX = 0x5;
  21. OS_WINDOWS_CE = 0x6;
  22. OS_ANDROID = 0x7;
  23. OS_PALM = 0x8;
  24. OS_FREEBSD = 0x9;
  25. OS_BLACKBERRY = 0xa;
  26. OS_SONOS = 0xb;
  27. OS_LOGITECH = 0xc;
  28. OS_WP7 = 0xd;
  29. OS_ONKYO = 0xe;
  30. OS_PHILIPS = 0xf;
  31. OS_WD = 0x10;
  32. OS_VOLVO = 0x11;
  33. OS_TIVO = 0x12;
  34. OS_AWOX = 0x13;
  35. OS_MEEGO = 0x14;
  36. OS_QNXNTO = 0x15;
  37. OS_BCO = 0x16;
  38. }
  39. enum AuthenticationType {
  40. AUTHENTICATION_USER_PASS = 0x0;
  41. AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS = 0x1;
  42. AUTHENTICATION_STORED_FACEBOOK_CREDENTIALS = 0x2;
  43. AUTHENTICATION_SPOTIFY_TOKEN = 0x3;
  44. AUTHENTICATION_FACEBOOK_TOKEN = 0x4;
  45. }
  46. message SystemInfo {
  47. required CpuFamily cpu_family = 0xa;
  48. required Os os = 0x3c;
  49. required string system_information_string = 0x5a;
  50. required string device_id = 0x64;
  51. }
  52. message LoginCredentials {
  53. required string username = 0xa;
  54. required AuthenticationType typ = 0x14;
  55. required bytes auth_data = 0x1e;
  56. }
  57. message ClientResponseEncrypted {
  58. required LoginCredentials login_credentials = 0xa;
  59. required SystemInfo system_info = 0x32;
  60. optional string version_string = 0x46;
  61. }