Internet Direct (Indy)
Home
PreviousUpNext
TIdCustomHTTP.OnAuthorization Event

Event handler for authentication of an HTTP connection.

Pascal
property OnAuthorization: TIdOnAuthorization;
Parameters 
Description 
Sender 
HTTP Client generating the event notification.
 
VUserName 
User identity for the HTTP request.
 
VPassword 
User authorization for the HTTP request.
 
Handled 
Indicatesd if the authentication was successful. 

OnAuthorization is a TIdOnAuthorization property that represents the event handler signalled when an HTTP client connection needs to provide authentication data as part of an HTTP request. 

VUserName and VPassword are the authentication credentials found in the HTTP Request, and can be updated in the event handler. Handled indicates if the event handler has successfully authenticated using the client account credentials and authentication method. Set Handled to False if any condition in the authentication process is not satisfied. 

Applications must assign a procedure to the event handler to allow responding to the event notification, or to allow the in-process authentication permitted using TIdHTTP.HTTPOptions.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.