doc: Add EAP login support in Agent API
authorHenri Bragge <henri.bragge@ixonos.com>
Thu, 31 Mar 2011 12:49:29 +0000 (15:49 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 1 Apr 2011 16:25:11 +0000 (18:25 +0200)
doc/agent-api.txt

index 98499a3..c9a0b0f 100644 (file)
@@ -61,10 +61,15 @@ Fields              string Name
                        Normally returning the "Name" field is the better
                        option here.
 
+               string Identity
+
+                       Identity (username) for EAP authentication methods.
+
                string Passphrase
 
-                       The passphrase for a network. For example a WEP
-                       key or a PSK passphrase.
+                       The passphrase for authentication. For example a WEP
+                       key, a PSK passphrase or a passphrase for EAP
+                       authentication methods.
 
                string WPS
 
@@ -77,8 +82,9 @@ Fields                string Name
 
 Arguments      string Type
 
-                       Contains the type of a field. For example "psk",
-                       "wep", "ssid", "wpspin" or plain "string".
+                       Contains the type of a field. For example "psk", "wep"
+                       "passphrase", "response", "ssid", "wpspin" or plain
+                       "string".
 
                string Requirement
 
@@ -132,3 +138,29 @@ Examples   Requesting a passphrase for WPA2 network
                                }
 
                        ==> { "WPS" : "123456" }
+
+               Requesting passphrase for a WPA-Enterprise network:
+
+                       RequestInput("/service4",
+                               { "Identity"   : { "Type"        : "string",
+                                                  "Requirement" : "mandatory"
+                                                },
+                                 "Passphrase" : { "Type" : "passphrase",
+                                                  "Requirement" : "mandatory"
+                                                }
+                               }
+
+                       ==> { "Identity" : "alice", "Passphrase": "secret123" }
+
+               Requesting challenge response for a WPA-Enterprise network:
+
+                       RequestInput("/service4",
+                               { "Identity"   : { "Type"        : "string",
+                                                  "Requirement" : "mandatory"
+                                                },
+                                 "Passphrase" : { "Type" : "response",
+                                                  "Requirement" : "mandatory"
+                                                }
+                               }
+
+                       ==> { "Identity" : "bob", "Passphrase": "secret123" }