Topic Path: Symbol Reference > Classes > TIdHTTP Class > TIdHTTP Events > OnAuthorization Event
ContentsIndexHome
PreviousUpNext
TIdHTTP.OnAuthorization Event

Event handler for authentication of an HTTP connection.

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.