4D v13.4On Web Authentication Database Method |
||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
On Web Authentication Database Method
On Web Authentication Database Method
The On Web Authentication Database Method is in charge of managing Web server engine access. It is called by 4D or 4D Server when a Web browser request requires the execution of a 4D method on the server (method called using a 4DACTION URL, a 4DSCRIPT tag, etc.). This method receives six Text parameters: $1, $2, $3, $4, $5, and $6, and returns one Boolean parameter, $0. The description of these parameters is as follows:
You must declare these parameters as follows: ` On Web Authentication Database Method Note: All the On Web Authentication database method’s parameters are not necessarily filled in. The information received by the database method depends on the options that you have previously selected in the Database Settings dialog box (please refer to the section Connection Security).
Notes:
Note: If the user name sent by the browser exists in 4D, the $6 parameter (the user’s password) is not returned for security reasons.
The On Web Connection Database Method is only executed if the connection has been accepted by On Web Authentication. WARNING: If no value is set to $0 or if $0 is not defined in the On Web Authentication Database Method, the connection is considered as accepted and the On Web Connection Database Method is executed. Notes :
The On Web Authentication Database Method is automatically called, regardless of the mode, when a request or processing requires the execution of a 4D method. It is also called when the Web server receives an invalid static URL (for example, if the static page requested does not exist). The On Web Authentication Database Method is therefore called in the following cases:
Compatibility note: The database method is also called when 4D receives a URL beginning with 4DMETHOD/. This URL is obsolete and is only kept for compatibility's sake. Note that the On Web Authentication Database Method is NOT called when the server receives a URL requesting a valid static page. Example of the On Web Authentication Database Method in BASIC mode: `On Web Authentication Database Method Example of the On Web Authentication Database Method in DIGEST mode:
// On Web Authentication Database Method The WithWildcard method is as follows: // WithWildcard Method |
PROPERTIES
Product: 4D SEE ALSO
Connection Security |
||||||||||||||||||||||||||||||||||||||