agent: Add documentation about WISPr-enabled hotspot input request.
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 14 Jun 2011 09:55:28 +0000 (12:55 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 21 Jun 2011 09:39:01 +0000 (11:39 +0200)
doc/agent-api.txt

index c9a0b0f..14b2e50 100644 (file)
@@ -80,6 +80,16 @@ Fields               string Name
                        method, or a pin code if user wants to use the pin
                        method.
 
+               string Username
+
+                       Username for WISPr authentication. This field will be
+                       requested when connecting to a WISPr-enabled hotspot.
+
+               string Password
+
+                       Password for WISPr authentication. This field will be
+                       requested when connecting to a WISPr-enabled hotspot.
+
 Arguments      string Type
 
                        Contains the type of a field. For example "psk", "wep"
@@ -164,3 +174,16 @@ Examples   Requesting a passphrase for WPA2 network
                                }
 
                        ==> { "Identity" : "bob", "Passphrase": "secret123" }
+
+               Requesting username and password for a WISPr-enabled hotspot:
+
+                       RequestInput("/service5",
+                                { "Username"   : { "Type"        : "string",
+                                                   "Requirement" : "mandatory"
+                                                 },
+                                  "Password"   : { "Type"        : "passphrase",
+                                                   "Requirement" : "mandatory"
+                                                 }
+                                }
+
+                        ==> { "Username" : "foo", "Password": "secret" }