Indy 9 | Content | Index | Reference

TIdOnAuthorization
See Also, Unit: IdHTTP
Event signalled when authentication is required for an HTTP request.

    TIdOnAuthorization = procedure (Sender: TObject; Authentication: TIdAuthentication; var Handled: boolean) of object;

Unit
IdHTTP
Parameters
Handled
Indicatesd if the authentication was successful.
Sender
HTTP Client generating the event notification.
VPassword
User authorization for the HTTP request.
VUserName
User identity for the HTTP request.
Description
TIdOnAuthorization is an event type signalled when an HTTP client connection needs to provide authentication data as part of an HTTP request. TIdOnAuthorization is the event type signalled to the TIdHTTP.OnAuthorization property.

VUserName and VPassword are the authentication credentials found in the HTTP request, and can be updated by the TIdOnAuthorization event handler. Handled indicates if the event handler has successfully authenticated using the client account credentials and method.

TIdOnAuthorization is used after a TIdOnSelectAuthorization event has been signalled to select and create the authentication method for the HTTP client.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.