The XML Server will authorise all incoming connections if the following function
is defined:
This function uses the supplied attribute/value list of user-supplied details
to check whether access is to be allowed or denied. If access is denied,
the function must throw an Error. This will be returned
across the communications link to the remote client.
(defun String xmlAuthorise ( (info List) )
(local (greeting String)
)
# do the authorisation checking here...
(return greeting)
)
If the Server is configured for authorisation, the remote XML client must
send the following command:
The attributes list of the supplied
<invoke command='authorise'>
<security .... />
</invoke>
security object are
passed to the xmlAuthorise function for validation.
Some examples of such invocations are as follows:
<invoke command='authorise'>
<security user='fred' password='secret' />
</invoke>
<invoke command='authorise'>
<security user='fred' password='872auesw47' encryptionKey='e48trd'/>
</invoke>
| Contents | Current topic: videotex | Related topics: Carapace Hub |