Confirmed users
188
edits
(→FDO) |
|||
| Line 71: | Line 71: | ||
==== FDO ==== | ==== FDO ==== | ||
A Form Definition Object (FDO) describes the fields usually present in a standard HTML form and provides information on where and how to submit it in order to execute an action (currently, one of "register", "login" or "password" change). | A Form Definition Object (FDO) describes the fields usually present in a standard HTML form and provides information on where and how to submit it in order to execute an action (currently, one of "register", "login" or "password" change). | ||
An FDO MUST contain the <tt>path</tt> and <tt>params</tt> properties, and MAY contain the <tt>method</tt> property. | |||
<tt>path</tt> represents a URI endpoint on which the operation will be performed, relative to the previously described <tt>domain</tt>. | |||
<tt>method</tt> CAN be one of <tt>POST</tt> or <tt>GET</tt>. If not present, <tt>POST</tt> is assumed. This represents the HTTP method used to reach the URI endpoint for the action. | |||
<tt>params</tt> describes the data included with the <tt>POST</tt> or <tt>GET</tt> method. Each property in this object MUST correspond with a key that describes some portion of the user's identity. Key available are (they match those used in the [https://wiki.mozilla.org/Labs/Sprints/People People Store]): | |||
* userName | |||
* givenName | |||
* familyName | |||
* emailHome | |||
* emailWork | |||
* password | |||
* address1 | |||
* address2 | |||
* city | |||
* state | |||
* country | |||
* pincode | |||
* gender | |||
=== Function === | === Function === | ||