From 6d780fece898f1b1c894cf26ba0b4160f8688ec8 Mon Sep 17 00:00:00 2001 From: Henri Bragge Date: Thu, 31 Mar 2011 15:49:29 +0300 Subject: [PATCH] doc: Add EAP login support in Agent API --- doc/agent-api.txt | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/doc/agent-api.txt b/doc/agent-api.txt index 98499a3..c9a0b0f 100644 --- a/doc/agent-api.txt +++ b/doc/agent-api.txt @@ -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" } -- 2.7.4