2
0

authentication.proto 1.4 KB

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