Changes

Jump to navigation Jump to search
Line 42: Line 42:     
Interface:
 
Interface:
 +
 +
POST '''/client/register'''
 +
 +
Process registration on a server.
 +
 +
The input dictionary, contains (see [[#User_identity_models|identity models]] section for additional details):
 +
 +
* {{Code|nickname}}, user's Sugar nick name;
 +
* {{Code|serial}}, machine serial number, makes special sense only for anti-thief support for XO laptops,
 +
* {{Code|pubkey}}, SSH public key passed as-is.
 +
 +
The resulting dictionary, contains:
 +
 +
* {{Code|uuid}}, unique identity that needs to be used for further interaction with the server;
 +
* [http://wiki.laptop.org/go/School_server OLPC XS] backwards compatibility keys that are not being processed by sugar-client: {{Code|backupurl}}, {{Code|jabberserver}}, {{Code|backuppath}}.
    
  GET '''/client/status'''?uuid=''UUID''
 
  GET '''/client/status'''?uuid=''UUID''
Line 50: Line 65:     
* {{Code|registered}}, if {{Code|False}}, client needs to process registration;
 
* {{Code|registered}}, if {{Code|False}}, client needs to process registration;
* {{Code|jabber-url}}, Jabber server url;
+
* {{Code|jabber-url}}, if {{Code|registered}} is {{Code|True}}, Jabber server url;
* {{Code|backup-url}}, Rsync url to backup Journal to, needs to be used as-is.
+
* {{Code|backup-url}}, if {{Code|registered}} is {{Code|True}}, Rsync url to backup Journal to, needs to be used as-is.
    
Requested UUID might be not registered in cases like:
 
Requested UUID might be not registered in cases like:
Line 58: Line 73:  
* request was sent to the server not the same where UUID was created,
 
* request was sent to the server not the same where UUID was created,
 
* someone [[#Vulnerabilities|registered]] the same serial number.
 
* someone [[#Vulnerabilities|registered]] the same serial number.
  −
POST '''/client/register'''
  −
  −
Process registration on the server.
  −
  −
The input dictionary, contains (see [[#User_identity_models|identity models]] section for additional details):
  −
  −
* {{Code|nickname}}
  −
* {{Code|serial}}
  −
* {{Code|pubkey}}
  −
  −
The resulting dictionary, contains:
  −
  −
* {{Code|uuid}}, unique identity that needs to be used for further interaction with the server;
  −
* [http://wiki.laptop.org/go/School_server OLPC XS] backwards compatibility keys that are not being processed by sugar-client: {{Code|backupurl}}, {{Code|jabberserver}}, {{Code|backuppath}}.
      
Requirements:
 
Requirements:

Navigation menu