Confirmed users
188
edits
(→FDO) |
|||
| Line 41: | Line 41: | ||
{ | { | ||
path: "/register", | path: "/register", | ||
tos: "/register/tos.html", | |||
method: "POST", | method: "POST", | ||
params: | params: | ||
| Line 72: | Line 73: | ||
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> | An FDO MUST contain the <tt>path</tt> and <tt>params</tt> properties, and MAY contain the <tt>method</tt> and <tt>tos</tt> properties. | ||
<tt>path</tt> represents a URI endpoint on which the operation will be performed, relative to the previously described <tt>domain</tt>. | <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>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>tos</tt> is a URI relative to <tt>domain</tt> that describes the terms of service the user MAY be required to accept before registering an identity. If this property is present, Weave will present the page and require the user to accept its contents before proceeding with the registration. If the site requires the user to read other documents (eg. Privacy Policy), this property's value may be an array containing multiple URIs relative to <tt>domain</tt>. | |||
<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]): | <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]): | ||