Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTP.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 credentials for the HTTP request.
 
Handled 
Indicates if the authentication attempt was successful. 

OnAuthorization is a published TIdOnAuthorization property in TIdHTTP, and represents the event handler signalled when an HTTP client connection needs to provide authentication data as part of an HTTP request / response protocol exchange. 

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 method.

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.