Page History
...
Code Block |
---|
Response = HTTP_Authentication_Services(Service, Param1, Param2, Param3, Param4, Param5, Param6, Param7, Param8, Param9, Param10@Service, @Params) |
Returns
The meaning of the response value depends on the service.
Parameters
Parameter | Description |
---|---|
Service@Service | The name of the service being requested. Required. |
Param1 - Param10@Params | Generic parameters. Refer to a specific service to determine the actual parameters used. |
Remarks
HTTP_Authentication_Services
is an application service module that handles authentication into the API. By default this service is automatically called within the HTTP_MCP controller routine. It is recommended that this be left in place. If the developer wishes to disable authentication (either temporarily for testing purposes or permanently), it is better to set the Enable Authentication Flag to 0 in the SRP_HTTP_FRAMEWORK_SETUP configuration record.
...
As noted in the comments, HTTP_Authentication_Services supports HTTP Basic Authentication, which is an easy method to implement and is reasonably secure when used over SSL. As noted from the linked Wikipedia article, the rules for using HTTP Basic Authentication are as follows:
1. The username and password are combined into a string separated by a colon, e.g.: username:password
2. The resulting string is encoded using the RFC2045-MIME variant of Base64, except not limited to 76 char/line.
...
Service | Description |
---|---|
AuthenticateRequest | Usage: Comments: Returns: |
CleanUp | Usage: Comments: Returns: |
...
Params
The proper use of the generic arguments are defined in the definition of each service above.