Internet Direct (Indy)
Home
PreviousUpNext
TIdOnAuthorization Type

Event signalled when authentication is required for an HTTP request.

Pascal
TIdOnAuthorization = procedure (Sender: TObject; Authentication: TIdAuthentication; var Handled: Boolean) of object;
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. 

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 identity and 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.

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.